Ulysses

General => Developers Corner => Topic started by: XxLMM13xX on April 02, 2015, 05:59:23 AM

Title: How to make a ULX convar
Post by: XxLMM13xX on April 02, 2015, 05:59:23 AM
Ok so i searched the website for "make convar" and found nothing... how would i make a convar like ulx_votekickSuccessratio

What file would i put this in so i can make a convar like ulx_voterestartSuccessratio

Thanks!
Title: Re: How to make a ULX convar
Post by: JamminR on April 03, 2015, 07:51:23 PM
https://github.com/Nayruden/Ulysses/blob/a72cb4dfc6a91c25d53baf7bd59da0f06caa5553/ulx/lua/ulx/base.lua#L21
ulx.convar
You can also search the repo for various convars in our code to find out how we set them.
Title: Re: How to make a ULX convar
Post by: Aaron113 on April 03, 2015, 09:22:28 PM
I must be blind... I never realized you could search the repository on github until now.
Title: Re: How to make a ULX convar
Post by: JamminR on April 04, 2015, 11:59:06 AM
It's a pain to search sometimes because it strips punctuation like periods and other common non-alphanumeric characters, which comprise a huge chunk of variable and function names in almost any code, not just Lua.
But, it's better than trying to find just the needle in the haystack.