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

Veterancy - Grant Weapon. More...

#include <dp88_veterancy.h>

Detailed Description

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

This is a companion script to dp88_veterancyUnit which grants an additional weapon to a unit upon spawning and replaces the weapon with a (presumably) more powerful version when the unit gets promoted. Alternatively it can grant an additional weapon to a unit when it reaches veteran or elite level, without granting anything to a rookie unit.

Similar to the m00_GrantPowerup_Created stock script, with the additional veterancy logic added.

Note
Whilst this script is designed to be used for granting additional weapons there's no technical reason it can't also be used to grant other powerup types. If non-weapon powerups are granted their effects will not be removed when the next veterancy level is reached.
Parameters
powerupPresetThe name of a powerup preset to grant to the unit when it is spawned at rookie level
powerupPreset_veteranThe name of a powerup preset to grant to the unit when it is promoted to veteran level
powerupPreset_eliteThe name of a powerup preset to grant to the unit when it is promoted to elite level