Tiberian Technologies Scripts Reference Revision: 9000
Loading...
Searching...
No Matches
List of all members
dp88_turretSound Class Reference

Turret Rotation Sound Effect. More...

#include <dp88_misc.h>

Detailed Description

Author
Daniel Paul (danpa.nosp@m.ul88.nosp@m.@yaho.nosp@m.o.co.nosp@m..uk)

This script plays a 3d sound at a vehicles turret bone when that bone is being rotated and stops the sound when the rotation stops. The sound will be looped whilst the turret is being rotated.

Note
This script uses the difference between the vehicle rotation and the turret bone rotation to determine if the turret is rotating. This means simply aiming in one direction and spinning on the spot will cause the sound to be played, since the turret is rotating relative to the vehicle
Parameters
Sound_PresetThe name of a 3D sound preset to be played whilst the turret is rotating
Min_Differential_RadThe minimum difference in the turret rotation, in radians, to be considered as "rotating", this helps to filter out tiny movements caused by driving along uneven terrain.