First time landing (pev_flags) bug
First of all, I know you'll ask why I didn't do any debugging, well, how am I supposed to?
Basically, this code checks 2 things: - Player has landed on ground / in water, if so, stop changing his velocity - Player's velocity[2] < 0.0, means he's still in the air The problem is that sometimes even after I have landed on the ground, my velocity keeps getting changed (so check #2 gets executed) Any ideas? PHP Code:
|
Re: First time landing (pev_flags) bug
When are you setting g_bLandedPlayer[ id ] to false when the player is not FL_ONGROUND or FL_INWATER? You need to show more code.
|
Re: First time landing (pev_flags) bug
Quote:
BTW: Here's an explanation of what I'm trying to accomplish: Player spawns in max height, he jumps from a plane then he must have a parachute to fall slowly, once he lands, we need to get rid of the parachute. |
| All times are GMT -4. The time now is 12:28. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.