problem with setting gravity
this does not work me
set_pev(id, pev_gravity, g_zclass_grav[g_zombieclass[id]] + gravityupgrade) it gets stuck into the roof if u wanna know, gravityupgrade = -180 already tried with positive numbers... dont work if i remove the gravityupgrade it works |
Re: problem with setting gravity
set_pev(id, pev_gravity, 1.0)
gravity = 800 Other ie: new Float:gravity = 0.5 set_pev(id, pev_gravity, gravity) gravity = 450 |
Re: problem with setting gravity
Quote:
900 * 0.5 = 450, but 800 * 0.5 = 400 Also your example only happens if sv_gravity is the default 800. In pev_gravity, 3rd parameter is a factor for the sv_gravity cvar. Example: sv_gravity = 200 set_pev(player_index, pev_gravity, 0.5); Player's gravity is 200 * 0.5 = 100 |
Re: problem with setting gravity
but with yours examples it says tag mismatch :S
thanks for answering |
Re: problem with setting gravity
Quote:
|
Re: problem with setting gravity
Quote:
|
Re: problem with setting gravity
Quote:
my problem was this i was using static float: gravityupgrade instead of static Float: gravityupgrade fucking pawn case sensitive.. LOL |
Re: problem with setting gravity
Quote:
Float: float ( value ) |
| All times are GMT -4. The time now is 01:41. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.