mirror of
https://github.com/Bones50/ammoSave.git
synced 2024-08-30 17:22:11 +00:00
1.6 KiB
1.6 KiB
ammoSave
Enables Ammo to be Saved to the Databse for Exile servers. Reverse Engineered from Rod Serlings excellent AVS Script http://www.exilemod.com/topic/7268-avs-advanced-vehicle-system/ All credit to Rod for the original work. Currently works with extDB2, haven't done anything with ExtDB3 but feel free to do try and edit yourself, should be pretty easy to work out.
Install:
- Stop your server.
- Run the enclosed SQL script on your database.
- Replace the exile.ini file (exilsever\extDB) on your server with the provided one, or merge if you have changed it for other scripts.
- Download your mission file from the server and un-PBO it.
- Create a folder called Custom\ammoSave in your mission PBO (you can change the location but will need to redo all the scripts to use the new location).
- Open config.cpp in your mission file and add the following under "class CfgExileCustomCode" ExileServer_object_vehicle_database_update = "Custom\ammoSave\ExileServer_object_vehicle_database_update.sqf"; ExileServer_object_vehicle_database_load = "Custom\ammoSave\ExileServer_object_vehicle_database_load.sqf"; ExileServer_object_vehicle_database_insert = "Custom\ammoSave\ExileServer_object_vehicle_database_insert.sqf"; ExileServer_object_vehicle_carefulCreateVehicle = "Custom\ammoSave\ExileServer_object_vehicle_carefulCreateVehicle.sqf";
- If you don't have an init.sqf file in your mission copy the provided one into the root fold of the mission. If you do copy the contents of the provided file and add it.
- re-PBO and push edited mission file to your server.
- Restart the server.... profit!!