--
I need to add air resistance for a particular entity's movement.
However, there is nothing the SDK which contains the movement code for
non-player entities(PM_* is Player Movement only).  Basically I need to
modify MOVETYPE_TOSS to add a
VectorScale(velocity,1.0-frametime*DRAG_COEF,velocity)
As the SDK doesn't contain non-player movement code, how should I go
about doing this?  I was thinking about using the entity's Think
function, and just have it called every frame.  To do this, what should
nextthink be set to? One last comment.. it appears that the HL movement
code is inconsistent.  The gravity calculations in the SDK PM code is
correct - it multiplies 0.5*gravity*frametime, however in the non-player
movement code, there is no 0.5 multiplication.  This is the reason for
hacks such as setting gravity to 0.5 in grenade.c, and should probably
be made more consistent...

 Jonah
--
[ Content of type application/pgp-signature deleted ]
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to