|
Tiberian Technologies Scripts Reference Revision: 9000
|
Repair Zone (Extended) More...
#include <jfwzone.h>
This script should be attached to a script zone to create an area in which vehicles can be repaired for a fee based on the price of the vehicle, or for free if Credits is set to 0.
When WaitForKeyhook is set to 1 (the default) the driver must press the button on their keyboard which is bound to the "Repair" event to start repairing their vehicle, otherwise the vehicle will start being repaired as soon as it enters the repair zone. Note that only one vehicle can be repaired at a time.
| Player_Type | Specify which teams can repair vehicles in this zone... 0 for Nod, 1 for GDI, 2 for both |
| Repair_Distance | The maximum distance from the center of the script zone the vehicle can move before repairs stop. This should be greater than the size of the actual zone or you might find vehicles trigger the script beyond this distance and then bug out, requiring the driver to leave and re-enter the zone |
| Repair_Health | The amount of health to restore every second |
| Sound | The name of a sound preset to be played to the vehicle driver when the keyhook is installed, unless WaitForKeyhook is set to 0 |
| Credits | A divisor applied to the cost of the vehicle to determine the cost of each repair tick... see the notes below, it's not exactly a straightforward calculation to figure out the actual cost |
| RepairSound | The name of a sound preset to be played to the vehicle driver when repairing begins |
| RepairStopSound | The name of a sound preset to be played to the vehicle driver once their vehicle is repaired |
| WaitForKeyhook | Set to 1 to wait for the player to press the key bound to the "Repair" event on their keyboard or 0 to repair as soon as they enter the zone |