Tutorial- Remove weapons/Replace weapons on vehicles

Gorsy

Valued Member!
Very Simple - Credit goes to the biplane guy for figuring it out, I just changed his addweapon to remove weapon lol
and thanks to Zombz.net Player 2, Ghost and KindSir

I take no credit for this whatsoever, While I did figure out you can remove the weapons ages ago, I only shared this as a tutorial because of the other post asking, and users wont have to scroll through pages to find it
Removing Weapons

Open your Server_monitor.sqf

Search for the following lines

Code:
                clearWeaponCargoGlobal  _object;
                clearMagazineCargoGlobal  _object;

Underneath the lines paste the following code
//## LAND VEHICLES
//GAZ Vodnik remove weapons
if (_object isKindOf "GAZ_Vodnik_HMG") then {
_object removeWeapon "2A42";
_object removeMagazine "1500Rnd_762x54_PKT";
};


This is how to remove the weapons from say a GAZ_Vodnik_HMG

To Modify this script simply Change the green text to the class name of the vehicle, the weapon name, and the ammo name. You have to add the ammo multiple times to remove multiple clips
-------------------------------------------------------------------------------------------------





Removing Multiple weapons/ammo

Add the extra weapons and ammo as shown below in red
//## LAND VEHICLES
//GAZ Vodnik
if (_object isKindOf "GAZ_Vodnik_HMG") then {
_object removeWeapon "2A42";
_object removeWeapon "2A42";
_object removeMagazine "1500Rnd_762x54_PKT";
_object removeMagazine "1500Rnd_762x54_PKT";
};

Thats all you have to do
---------------------------------------------------------------------------


Replacing the weapons

You would just change the green text to whatever vehicle gun you choose, and this should replace the gun on the vodnik

//## LAND VEHICLES
//GAZ Vodnik add weapon
if (_object isKindOf "GAZ_Vodnik_HMG") then {
_object addWeapon "2A42";
_object addMagazine "1500Rnd_762x54_PKT";
};

--------------------------------------------------------------------------------------------
I have done this with most of my vehicles on my server, Use this WEBSITE to find weapon names
Enjoy
 
Any problems feel free to post, and I will reply. But I am busy atm with my new dedi server, and doing the PBO's with the new dayz code sooooo I may take awhile
 
So if you remove the weapons and the ammo you can't refill them at servicestation right? So if they are remove the shootable weapon is totally gone right?
 
I was going to try the same thing myself on the Huey to replace the 240 with a 249. Thanks for trying it first and letting others know gorsy.

We've had so much fun with attaching a 249 SAW to the biplane on my server lol
 
It's not about banned weapons (use Tsw for this)
It's about removing TWS from vehicles like LAV25 etc.
 
So I can add ammo to an Mi-17? Currently the type on my server have 2 mounted PKTs (front left & rear right) each with 100 rounds. If I simply add the below code will it give them 100 additional rounds each, or will it give them 200 additional rounds each? Do I need to define to which gun I want the ammo added?

Code:
if (_object isKindOf "Mi17_DZ") then {
_object addMagazine "100Rnd_762x54_PK";
_object addMagazine "100Rnd_762x54_PK";
};


Edit; Oh, and here is some info on radar.
 
Althasil the site you posted is cool but.... Dafuq? It's quite hard to catch. So first of all where can i find my cfgvehicle? And do i have to disable it for every vehicöe or can i just say for every vehicle that there is nothing like thermalvision or radar? Radar seems to be simple to disable but i can't find any about the thermal vision. Do you also know a site where this is described?

thanks, J3T
 
Sorry, I wish I had more answers. I believe cfgvehicle is a .hpp file located within the mod itself - depending on which map/mod you are running.

I have tried using

Code:
if (_object isKindOf "Mi17_DZ") then {
_object addMagazine "100Rnd_762x54_PK";
_object addMagazine "100Rnd_762x54_PK";
};

but this only adds ammunition to one of the mounted weapons. Does anyone know if there is a way to specify which weapon, i.e. weapon #1, weapon #2, to add the ammo to?
 
Hi All
Ich have a Major Problem with this script. I try erverthing like Gorsy wrote. But nothing happens. I test the Script with an Hummer M2 , and its look like this :

clearWeaponCargoGlobal _object;
clearMagazineCargoGlobal _object;

//## LAND VEHICLES
//Hummer remove weapons
if (_object isKindOf "HMMWV_M2") then {
_object removeWeapon "M2BC";
_object removeMagazine "100Rnd_127x99_M2";
_object removeMagazine "100Rnd_127x99_M2";
_object removeMagazine "100Rnd_127x99_M2";
_object removeMagazine "100Rnd_127x99_M2";
_object removeMagazine "100Rnd_127x99_M2";
};

But Ingame nothing happens , can You Help me??

Sorry for my Bad English
 
Change it to this.
Code:
//## LAND VEHICLES
//Hummer remove weapons
if (_object isKindOf "HMMWV_M2") then {
_object removeWeapon "M2";
_object removeMagazine "100Rnd_127x99_M2";
_object removeMagazine "100Rnd_127x99_M2";
_object removeMagazine "100Rnd_127x99_M2";
_object removeMagazine "100Rnd_127x99_M2";
_object removeMagazine "100Rnd_127x99_M2";
};

should work now
 
Anyone know how to remove the front gunners gun in the T34? It only removes the gun from the gunners seat not the front gunners.
 
Back
Top