> Player's upward velocity is what I'm after.

pev->velocity.z is the upward component of the player's velocity vector.

Setting pev->velocity.z to a value won't necessarily thrust the player up
into the air.  The player needs to be off the ground first or the engine
won't let the player move upwards.

pev->flags &= ~FL_ONGROUND;

...will "lift" the player off the ground.  You can then apply an upward
velocity by setting pev->velocity.z to some value...

pev->velocity.z = 800.0f;  // upwards at 800 units per second

Jeffrey "botman" Broome

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to