[RELEASE]Remove Weapons/Ammunition/Thermal from Vehicle EPOCH VERSION

J3T

Valued Member!
Remove Weapons/Ammunition from Vehicle EPOCH VERSION
vers. 1.0.2
Remove Thermal/Nightvision from vehicle guns
vers. 1.0.0

Removes selected weapons and/or ammunition from selected vehicles. It does it for every spawned vehicle on server restart, for every vehicle bought at trader, for every vehicle random spawned by Epoch (this is not 100% confirmed, because you only can buy those vehicles on our server)

Requirements (inc. Tools(must include dowload link)/ Expected Time/Difficulty)
  • Moderate <10
  • Notepad++ (recommended) Download
  • a PBO-Manager (I recommend this one: Download)
Installation Steps:
  1. Download the Files
  2. Extract the files into your workspace, get your Server.pbo also extracted here.
  3. Open your server_monitor.sqf (found in the system folder), your server_functions.sqf (found in the init folder), your server_publishVehicle2.sqf and your server_publishVehicle3.sqf (both are in the compile folder)
  4. Copy the fnc_remWepSG.sqf into the compile folder of your server.pbo
  5. Go to your server_functions.sqf and add this right after the fnc_plyrHit......
    Code:
    //Fnc for removing weapon by SiothieGaming
    fnc_remWepSG =                compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\fnc_remWepSG.sqf";

  6. Go to your server_monitor.sqf, server_publishVehicle2.sqf and server_publishVehicle3.sqf and add this
    Code:
                //Remove Weapon by SiothieGaming start
                call fnc_remWepSG;
                //Remove Weapon by SiothieGaming end
    right before this (the location IS important!)
    Code:
        clearWeaponCargoGlobal  _object;
  7. Save everything, pack it upload it and you are good to go :).

The Thermalscript is right now enabled in the files. It is still in beta testing and could screw up your whole Server.
To disable it put // infront of everything related to it in the fnc_remWepSG.sqf.



FAQ -
  • Just follow the same scheme for removing/adding weapons i already use in the examples i gave you in the fnc_remWepSG.sqf -- for further Explaination go here: OpenDayzLink
Credits: Gorsy for the Mainscript, Starfish for testing help, Mondfunke for the Thermalpart, oshydaka for the second version.

Discussion\Helpthread
Download
second download from mediafire:
Download
 
Last edited:
Rolling Changelog "Remove Weapon/AmmunitionScript":
[FIXED] Installation guide

1.0.1
[NEW] Can now remove weapons/ammunition from diffrent seats. (Yes you can unarm Combat-Chopper like the Apache or the Lb with this :))
1.0.2
New Method for removing the complete ammunition from a seat. Credits to oshydaka for the idea (No need for the Ammo Classnames with this)---Download Updated
 
Last edited:
Rolling Changelog Thermalscript:
1.0.0
[NEW] Added it to the remWepSG script. Still beta testing use at your own risk.
 
Last edited:
Back
Top