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

Apocalypse Rising Prism Tower. More...

#include <dp88_ar.h>

Additional Inherited Members

- Public Member Functions inherited from dp88_customAI
virtual void ResetAllActions (GameObject *obj)
 
- Protected Member Functions inherited from dp88_AI_ChargedTurret
virtual void StartCharging (GameObject *pSelf)
 
virtual void StartDischarging (GameObject *pSelf)
 
virtual GameObject * GetAnimationObject (GameObject *pSelf)
 
virtual void ApplyIdleAnimation (GameObject *pSelf)
 
- Protected Attributes inherited from dp88_AI_ChargedTurret
unsigned int m_myObjId
 My own GameObject ID, used by the observer callbacks.
 
bool m_bIsCharging
 
bool m_bIsDischarging
 
bool m_bIsPreReloading
 
int m_chargeAnimObjId
 
bool m_bPowerState
 
LoopedAnimationControllerm_pLoopedAnimCtrl
 
dp88_AI_ChargedTurret_AnimationObserverm_pAnimationObserver
 

Detailed Description

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

\arscript

This script implements the prism tower logic for Apocalypse Rising on top of the generic charged turret implementation provided by dp88_AI_ChargedTurret.

Parameters
Priority_InfantryBase targetting priority for infantry targets, or 0 to ignore infantry
Splash_InfantryDetermines if we should try to damage infantry with splash instead of hitting them directly. This is useful for slow / inaccurate weapons which do splash damage: 1 to enable, 0 to disable
Priority_Light_VehicleBase targetting priority for light vehicle targets, or 0 to ignore light vehicles
Priority_Heavy_VehicleBase targetting priority for heavy vehicle targets, or 0 to ignore heavy vehicles
Priority_VTOLBase targetting priority for flying targets, or 0 to ignore flying targets
Min_Attack_RangeMinimum distance at which the turret can engage enemies when using primary fire
Max_Attack_RangeMaximum distance at which the turret can engage enemies when using primary fire
Animation_ModelOptional name of a W3D model file to spawn and attach to the turret upon which the charge animations defined in this script will be applied. This allows the turret itself to be running a different set of animations, such as damage states via dp88_damageAnimation
Animation_Model_BoneIf you specify an Animation_Model above then you must also specify the a bone on the parent to which that model should be attached. This allows the animation model to be moved by the animation set executing on the turret.
AnimationName of the animation which contains the frames for the various charge states
Animation_Idle_Start_FrameFirst frame number for the idle animation, which will loop continually whilst the turret is powered and not currently attacking a target
Animation_Idle_End_FrameFinal frame number for the idle animation
Animation_Unpowered_Start_FrameFirst frame number for the unpowered animation, which will loop continually whilst the turret is in the unpowered state. This is not used if Requires_Power is disabled (see below).
Animation_Unpowered_End_FrameFinal frame number for the unpowered animation
Animation_Charge_Start_FrameFirst frame number for the charging animation, which will be played once each time the turret reloads its weapon. Once this animation completes the turret will fire again, therefore the length of this animation must be greater than the weapon reload time.
Animation_Charge_End_FrameFinal frame number for the charging animation
Charge_SoundOptional sound effect to be played each time the turret starts charging up
Modifier_DistancePriority modification to apply based on distance to target. Higher values will favour targets which are closer to the turret, good for less accurate weapons
Modifier_Target_DamagePriority modification to apply based on damage a target has already sustained. Higher values will favour targets which have already been damaged in combat, picking them off first
Modifier_Target_ValuePriority modification to apply based on the value of the target. Higher values will favour targets with a higher purchase cost, good for hard hitting weapons
Requires_PowerSpecify whether this turret requires base power to operate: 1 to require power, 0 to ignore
DebugSpecify whether to produce a debug logfile about the turrets targetting decisions, this is useful for fine tuning your base priorities and modifiers: 1 to enable, 0 to disable
Detects_StealthDetermine whether this turret can detect stealthed enemies or not: 1 to enable, 0 to disable