Gravity on demand
I am trying to make a plugin so that if you are falling from a high ledge, you can use this command and have gravity go lower for you. But when ever i press it in the air, nothing happens. when im on the ground, i hop a little
Code:
#include <amxmodx> |
Try this:
Code:
|
that worked, except when i press it the gravity stays like that, its toggling it, is there a way to make it so you must hold down the button? or must it be toggled on and off?
|
Try this. Please be aware that I don't know the default value of gravity. I tried 800.0, but it's probably either that or 1.0. Try both if 800.0 doesn't work.
Code:
|
Lol, Now it is acting like brakes, i bound +parachute to uparrow and -parachute to downarrow, so when i hold down arrow i stop moving, but not in the air
|
That's not how it works. Bind a key to +parachute and -parachute will automatically be executed.
|
i tried again, i didnt fall any slower, i tried holding it and i tried pressing it.
|
Try this:
Code:
|
everything is perfect, except after i use it, the gravity stays. I cant jump anymore :?
|
Quote:
|
| All times are GMT -4. The time now is 16:24. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.