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

Weapon Switch on Keyhook - Vehicle. More...

#include <jfwweap.h>

Detailed Description

Author
jonwil

This script allows the driver of a vehicle to swap the weapon being used by the vehicle for an alternative one by pressing a key. Pressing the key again will restore the original weapon.

Parameters
PowerupThe name of a powerup preset which grants the alternative weapon
KeyhookThe name of the keyhook binding to trigger the weapon swap
SwitchTimeThe amount of time the weapon swap takes, in seconds. During this time the player will be able to fire either weapon.
OldSoundThe name of a sound preset to play when switching to the original vehicle weapon
NewSoundThe name of a sound preset to play when switching to the alternative weapon