Vehicles in GTA 2 Coding
Cars are very easy to create and I'm sure you'll have alot of them in your maps! Below is how you can place a parked car in your map:
PARKED_CAR_DATA uniquename = ( X , Y , Z ) remap rotation model
or:
PARKED_CAR_DATA uniquename = ( X , Y , Z ) remap rotation model trailermodel
The second is only for use with trucks and trailers (since when did you see a Z-Type driving around with a tanker?).
So, you could have one similar to the one below.
PARKED_CAR_DATA fastcar ( 34.5 , 45.5 , 2.0 ) 28 0 STRATOS
or:
PARKED_CAR_DATA truck ( 35.5 , 47.5 , 2.0 ) 19 270 TRUKCAB2 TANKER
The second declares that when the game loads, the trailer is automatically attached. To create a mini style car, set the trailer model to be MINI_CAR which is best used for remote control missions!
Car Remaps
Taken straight from the official documentation. Default colour is usually a medium brown.
- Default Setting
- AlpBlue
- Black
- Black3
- Blue
- BlueGrey
- BrGreen
- BriteRed
- Brown
- Browner
- BSilver
- BYellow
- Cream
- Cyan
- DBeige
- DBlue
- DeepBlue
- DGreen
- DRed
- DRust
- Gold
- Green
- Grey
- LBrown
- Olive
- Orange
- PaleBlue
- PinkRed
- Purple
- Red
- Rust
- Silver
- Skyblue
- Turquoiz
- White
- Whiter
- Yellow
- zzgbank
Car List
Below is a table detailing every car in GTA 2 with their script name as well as their in-game name.
| Script Code | Game Car |
|---|---|
ALFA
| Romero |
ALLARD
| Wellard |
AMDB4
| Aniston BD4 |
APC
| Pacifier6 |
BANKVAN
| G4 Bank Van |
BMW
| Beamer |
BOXCAR
| Game Crashes1 |
BOXTRUCK
| Box Truck |
BUG
| Bug |
BUICK
| Bulwark4 |
BUS
| Bus7 |
COPCAR
| Cop Car6 |
DART
| Minx |
EDSEL
| Eddy |
EDSELFBI
| Special Agent Car6 |
FIAT
| Panto |
FIRETRUK
| Firetruck6 |
GRAHAM
| Shark |
GT24640
| GT-A15 |
GTRUCK
| Garbage Truck |
GUNJEEP
| Armed Land Roamer6 |
HOTDOG
| Hot Dog Van |
HOTDOG_D1
| Hot Dog Van Dummy 13 |
HOTDOG_D2
| Hot Dog Van Dummy 23 |
HOTDOG_D3
| Hot Dog Van Dummy 33 |
HOTDOG_D4
| Hot Dog Van Dummy 43 |
ICECREAM
| Ice-Cream Van |
ISETLIMO
| Dementia Limousine |
ISETTA
| Dementia4 |
JEEP
| Land Roamer6 |
JEFFREY
| Jefferson |
KRSNABUS
| Karma Bus4 |
LIMO
| Stretch Limousine |
LIMO2
| Sports Limousine |
MEDICAR
| Medicar6 |
MERC
| Benson |
MESSER
| Schmidt |
MIURA
| Miara4 |
MONSTER
| Monster Bug |
MORGAN
| Morton |
MORRIS
| Maurice |
PICKUP
| Pickup4 |
RTYPE
| A-Type |
SPIDER
| Arachnid |
SPRITE
| Spritzer |
STINGRAY
| Stinger |
STRATOS
| Meteor4 |
STRATOSB
| Meteor |
STYPE
| B-Type |
STYPECAB
| Taxi Xpress7 |
SWATVAN
| SWAT Van6 |
T2000GT
| Michelli Roadster |
TANK
| Tank6 |
TANKER
| Truck Cab Tanker2 |
TAXI
| Taxi7 |
TBIRD
| T-Rex |
TOWTRUCK
| Tow Truck |
TRAIN
| Game Crashes1 |
TRAINCAB
| Game Crashes1 |
TRAINFB
| Game Crashes1 |
TRANCEAM
| Trance-AM |
TRUKCAB1
| Truck Cab |
TRUKCAB2
| Truck Cab SX |
TRUKCONT
| Truck Cab Container2 |
TRUKTRNS
| Truck Cab Flatbed2 |
TVVAN
| TV Van |
VAN
| Van |
VESPA
| U-Jerk Truck |
STRIPETB
| Hachura |
VTYPE
| Z-Type4 |
WBTWIN
| Rumbler |
WRECK0
| Various Wreckage3 |
WRECK1
| Various Wreckage3 |
WRECK2
| Various Wreckage3 |
WRECK3
| Various Wreckage3 |
WRECK4
| Various Wreckage3 |
WRECK5
| Various Wreckage3 |
WRECK6
| Various Wreckage3 |
WRECK7
| Various Wreckage3 |
WRECK8
| Various Wreckage3 |
WRECK9
| Various Wreckage3 |
XK120
| Jagular XK |
ZCX5
| Furore GT |
Goes on a bit doesn’t it? If you are wandering what the numbers are for, here they are:
- Game Crashes.
- Guess what, you can’t enter a Truck Cab Container!
- Useless, don’t even bother putting them in unless it is for a special mission.
- Default gang car.
- Primarily used for the Wang Car bonuses.
- Emergency vehicles.
- Public transport.
If you try to use the WRECK vehicles and actually destroy them via weapons, the game will crash. In this way, you should make them all weapon proof (machine gun, rocket launcher and flame-thrower) for added security. Unfortunately, it is still affected by the Electro Gun. Furthermore, they cannot be driven by the player or the AI so you cannot spawn characters inside them. You have been warned!
Preventing A Model Type From Spawning
If you don’t want a certain vehicle to drive around on the map, use the code below:
SUPPRESS_THIS_CAR_MODEL ( model-name )
Only one car can ever be suppressed, and if you try another, it will update with the new one. If you want to stop this later on, such as after a mission, set the model-name to NONE.
Vehicle Door Locks
To make your game cars locked, you need to add the following commands:
CHANGE_CAR_LOCK ( car-name , lock-type )
Change car-name to any previously created car, and the 'lock-type' to one of the following:
| Description | |
|---|---|
NO_LOCK | Car has no lock whatsoever. |
LOCKED | Locks out everyone, including players. |
UNLOCKED | Car is unlocked. |
LOCKED_PERMANENTLY | Car is always locked for everyone. |
LOCKOUT_THIEF_ONLY | Only locks out car thieves, this is the default for created cars. |
LOCKOUT_PLAYER | Only locks out players. |
Vehicle Alarms
If you want to give a car an alarm, just add the following code:
GIVE_CAR_ALARM ( car-name )
Set the car name to a previously made car. The alarm will go off if you steal the car or shoot at it.
(Originally written by Chris “Pyro” Hockley and formatted by Ben “Cerbera” Millard with full permission.)