Ulysses

Ulysses Stuff => General Chat & Help and Support => Topic started by: darkdeath on February 10, 2006, 03:06:06 PM

Title: Server Gravity
Post by: darkdeath on February 10, 2006, 03:06:06 PM
ok i made up alot of configurations in your mod.
but now i am currently wan't to set up gravity!
ive got a new menu like this:
Quote
1client
2admin
3map
4weapons
5client limits
6other

0quit
i have in other
some gravity settings but...
it must always be 0. (i found out) like this example below:
Quote
      if _GetConVar_Bool( "sv_gravity" ) then
         addOption( userid, "Very Hig Gravity Off", "sv_gravity 0", ACCESS_CVAR )   
      else
         addOption( userid, "Very Hig Gravity On", "sv_gravity 1200", ACCESS_CVAR )   
      end
as u can see "sv_gravity 0" the gravity is 0 becouse otherwise it won't work if u make it 600 of it then it won't work. But if u match it with the text what i wan't it to be it won't fit :P... if u adjust 0 to 600 then the text will be correct!

AND MY QUESTION IS WHY it always have to be 0?
AND HOW TO CHANGE IT ?
Title: Re: Server Gravity
Post by: Megiddo on February 10, 2006, 03:32:46 PM
Code: [Select]
if _GetConVar_Bool( "sv_gravity" ) then
You're checking if it's 0
Title: Re: Server Gravity
Post by: darkdeath on February 11, 2006, 01:25:51 AM
so when i say this:
Quote
      if _GetConVar_Bool( "sv_gravity 600" ) then
         addOption( userid, "Very Hig Gravity Off", "sv_gravity 600", ACCESS_CVAR )   
      else
         addOption( userid, "Very Hig Gravity On", "sv_gravity 1200", ACCESS_CVAR )   
      end
it should work ?
Title: Re: Server Gravity
Post by: Megiddo on February 11, 2006, 09:08:41 AM
Code: [Select]
      if _GetConVar_Float( "sv_gravity" ) == 1200 then
         addOption( userid, "Very Hig Gravity Off", "sv_gravity 600", ACCESS_CVAR )   
      else
         addOption( userid, "Very Hig Gravity On", "sv_gravity 1200", ACCESS_CVAR )   
      end
Title: Re: Server Gravity
Post by: darkdeath on February 16, 2006, 02:10:44 AM
thank u alot :)  ;D
i LOVE YOU :) (no just kidding)