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

Remote Control Vehicle Console. More...

#include <dp88_ar.h>

Detailed Description

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

This script is attached to consoles to allow players to take remote control of a drone vehicle which is spawned by the console on demand. The vehicle preset which is spawned must have the dp88_RemoteControlVehicle script attached with a matching remoteControlID parameter to work correctly

Precondition
A preset with the name "Invisible_Object_2" must exist to allow the dummy character to be created. You can create this by making a copy of the stock Invisible_Object preset and unticking the "IsHiddenObject" parameter to enable it to be damagable.
Parameters
remoteControlIDShared ID used by the console and drones to enable them to be linked correctly - each vehicle preset should use a unique ID, but multiple consoles can share that vehicles ID
vehiclePresetName of the vehicle preset to spawn as the drone
costCost of purchasing a drone when non exists
teamID of the team permitted to use this console (0: Nod, 1: GDI, 2: Both)
chargeTimeMinimum time, in seconds, for the console to charge up before the purchase of a drone is permitted and to recharge between drone purchases. Set to 0 to disable charging.
accessDeniedSound2D sound to play for a player of the wrong team who tries to use the console
consoleOfflineSound2D sound to play for a player trying to use a disabled console
consoleChargingSound2D sound to play for a player trying to use a console which is charging
insufficientFundsSound2D sound to play for a player trying to purchase a drone with insufficient credits
connectionEstablishedSound2D sound to play for a player when they successful take control of a drone
animationNameName of the animation for the state frames
animFrameAvailable1First frame of the animation to play when the console is available (drone ready to purchase)
animFrameAvailable2Last frame of the animation to play when the console is available (drone ready to purchase)
animFrameCharging1First frame of the animation to play when the console is charging
animFrameCharging2Last frame of the animation to play when the console is charging
animFrameActive1First frame of the animation to play when the console is in use
animFrameActive2Last frame of the animation to play when the console is in use
animFrameIdle1First frame of the animation to play when the console is available (drone idle in field)
animFrameIdle2Last frame of the animation to play when the console is available (drone idle in field)
animFrameDisabled1First frame of the animation to play when the console is disabled
animFrameDisabled2Last frame of the animation to play when the console is disabled