Author Topic: Server Gravity  (Read 4047 times)

0 Members and 1 Guest are viewing this topic.

Offline darkdeath

  • Jr. Member
  • **
  • Posts: 55
  • Karma: 2
Server Gravity
« 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 ?
« Last Edit: February 10, 2006, 03:08:34 PM by darkdeath »

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Server Gravity
« Reply #1 on: February 10, 2006, 03:32:46 PM »
Code: [Select]
if _GetConVar_Bool( "sv_gravity" ) then
You're checking if it's 0
Experiencing God's grace one day at a time.

Offline darkdeath

  • Jr. Member
  • **
  • Posts: 55
  • Karma: 2
Re: Server Gravity
« Reply #2 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 ?

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Server Gravity
« Reply #3 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
Experiencing God's grace one day at a time.

Offline darkdeath

  • Jr. Member
  • **
  • Posts: 55
  • Karma: 2
Re: Server Gravity
« Reply #4 on: February 16, 2006, 02:10:44 AM »
thank u alot :)  ;D
i LOVE YOU :) (no just kidding)