Gravity


(zeus) #1

Hi, Im trying to make a gravity generator for maps, so that if u destroy it, people can fly.
Ive been testing with this subroutine:


...
death
	{
                      cvar g_gravity inc "-300"
...

but it doesnt seem to make any effect.
Any idea?


(cementoske) #2

euhm only the server can change the gravity


(chavo_one) #3

Although "cvar<variable> inc <value>"accepts a value, it is hard coded to increment the cvar by one.

I would suggest you use “cvar <variable> set <value>”, however, the set command is actually broken in the code.