[FilterScript] Dynamic Vehicles - GTA's Spawns
#1

Dynamic Vehicles FS by NaS

What does this FS do?

This FS spawns vehicles just like in SinglePlayer.

There are Vehicle Slots around whole SA with different types of vehicles - rich cars, poor cars or simply a static model for special vehicles (airplanes, NRGs, helis).

Instead of just respawning, the cars will now respawn to a different model of the same group - eg an infernus will respawn to a banshee.

You can dynamically add, remove and edit Slots as you wish during run-time (Look at the Commands).

Which groups are there?

Look into the script, the array "VGroups" contains the groups, I made comments with the name.

Commands (RCON-only):
  • /dv_AddSlot - Park a vehicle where you want the Slot to be and type the CMD, you can then select the type of Slot - pretty self-explaining.
  • /dv_EditSlot - Be near a Slot and you can change its Group, define a static Model or delete it!
  • /dv_SlotInfo - Near a Slot: Show info about the Slot (such as ID, model or group), Elsewhere: Show general info about the system.
How to install?

- Put dyn_vehicles.pwn into your filterscripts folder and open it, then compile it - if you get errors about the sccanf2.inc, view this thread to install it. Make sure it is loaded!

- Create a folder called dyn_vehicles inside your scriptfiles folder, and paste vehicles.txt into it, if you wish to use the default vehicle slots.

- Open your server.cfg and add dyn_vehicles to filterscripts

- Start the server!

Is there anything else I should know?

I also implemented a feature to have some default tuning (like Nos, Hydraulics or random body kits) which are randomly put on spawned vehicles (DISABLED by default).

To enable this, set the define DEFAULT_TUNING to true.

You can adjust the spawn delay and timer tick, look into the script and search for SPAWN_DELAY or VTIMER_TICK. The timer tick should not be higher than the spawn delay.

The original vehicles.txt (Original GTA Coords, gathered by Slice) is in the folder dyn_vehicles too. But there are many bugged slots (wrong Z-Coordinate) and some areas are completely left out.

I made many comments to help anyone understanding this a bit.

Download:

Code (GitHub)

scriptfiles (GitHub)

Credits:
Slice - I took his array to have the Singleplayer Slot positions which he took from an IPL, the rest of this script is entirely made by me or taken from GTA's files).
****** - sscanf2 Plugin

Do not re-release this under your name. You can edit this or take out arrays as you like, but please don't remove the credits.

If you have any suggestions, found a bug or need a different hoster, please post it here!
Reply


Messages In This Thread
Dynamic Vehicles - GTA's Spawns - by NaS - 14.01.2014, 13:29
Re: Dynamic Vehicles - GTA's Spawns - by AIped - 14.01.2014, 14:58
Re: Dynamic Vehicles - GTA's Spawns - by LMagnifico - 15.01.2014, 09:00
Re: Dynamic Vehicles - GTA's Spawns - by KingServerIRAN - 15.01.2014, 09:25
AW: Dynamic Vehicles - GTA's Spawns - by NaS - 15.01.2014, 15:43
Re: Dynamic Vehicles - GTA's Spawns - by kiss - 15.01.2014, 15:59
Re: Dynamic Vehicles - GTA's Spawns - by Tass007 - 26.07.2016, 04:16
Re: Dynamic Vehicles - GTA's Spawns - by NaS - 26.07.2016, 14:36
Re: Dynamic Vehicles - GTA's Spawns - by marley - 11.11.2016, 20:32
Re: Dynamic Vehicles - GTA's Spawns - by Mike861 - 06.11.2018, 15:23
Re: Dynamic Vehicles - GTA's Spawns - by NaS - 09.11.2018, 13:31
Re: Dynamic Vehicles - GTA's Spawns - by Ejikin91 - 16.11.2018, 07:13
Re: Dynamic Vehicles - GTA's Spawns - by NaS - 16.11.2018, 10:40

Forum Jump:


Users browsing this thread: 1 Guest(s)