r8223 - trunk/dpmod/qc
dresk at icculus.org
dresk at icculus.org
Sat Mar 22 23:27:11 EDT 2008
Author: dresk
Date: 2008-03-22 23:27:11 -0400 (Sat, 22 Mar 2008)
New Revision: 8223
Modified:
trunk/dpmod/qc/dpextensions.qc
Log is attached.
Added DP_SV_MOVETYPESTEP_LANDEVENT field function.
This field function, when provided, is triggered on a MOVETYPE_STEP entity when it experiences "land event".
The standard engine behavior for this event is to play the sv_sound_land CVar sound.
The parameter provides the velocity of the entity at the time of the impact. The z value may therefore be used to calculate how "hard" the entity struck the surface.
NOTE: If this field function is provided on a MOVETYPE_STEP entity, the standard sv_sound_land sound IS SUPPRESSED to allow for authors to create their own feedback.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 20080323.032711.diff
URL: <http://icculus.org/pipermail/twilight-commits/attachments/20080322/0b71e687/attachment.diff>
More information about the twilight-commits
mailing list