Styles
04-21-2008, 15:25
I have a problem, I have one plugin that is allowing users to set their velocity at certian times. But sometimes, I want to keep them grounded. But they velocity might keep them up in the air. How would I do this? If I set their velocity to 0.0, it just puts them where they are. I want them on the ground, I don't care if they move, just keep them on the ground. I have though of a few ways just now reading through other posts, but have yet to come up with a solution. It is not an option to go into the other plugin and callfunc or something.
I though mabye setting their pev_flags to FL_ONGROUND might shove them to the ground, I'm not sure though.
if(pev(id, pev_flags) != FL_ONGROUND)
set_pev(id, pev_flags, FL_ONGROUND)
Or mabye there is a velocity solution? But I don't know.
Any suggestions are welcome :)
Thank You
I though mabye setting their pev_flags to FL_ONGROUND might shove them to the ground, I'm not sure though.
if(pev(id, pev_flags) != FL_ONGROUND)
set_pev(id, pev_flags, FL_ONGROUND)
Or mabye there is a velocity solution? But I don't know.
Any suggestions are welcome :)
Thank You