Tutorial- Remove weapons/Replace weapons on vehicles

!!!!!IMPORTANT!!!!!
It seems that this script isn't working with 1.7.7.1 anymore!!!!!

Our server just went full retarted with all the banned weaps now available.

Can someone fix it asap? We really need your help.
 
I don't believe this stuff works with 1.7.7.1. If anyone figures out how to make this work, please let us know. I miss having biplanes with machine guns for dogfighting.
 
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

could someone look at my script and fix it I believe i have all the weapons however the ammo is questionable I cant find the exact ammo and like the Ka52 has two 2A42 not sure ammo type i guessed 250Rnd_30mmHE_2A42
do I just list the 2A42 twice like i did ??

//## AIR VEHICLES
//A10 remove weapons
if (_object isKindOf "A10") then {
_object removeWeapon "BombLauncherA10";
_object removeMagazine "4Rnd_GBU12";
_object removeWeapon "FFARLauncher_14";
_object removeMagazine "14Rnd_FFAR";
_object removeWeapon "GAU8";
_object removeMagazine "1350Rnd_30mmAP_A10";
_object removeWeapon "MaverickLauncher";
_object removeMagazine "2Rnd_Maverick_A10";
_object removeWeapon "SidewinderLaucher_AH1Z";
_object removeMagazine "2Rnd_Sidewinder_AH1Z";

};

//AH64D_EP1 remove weapons
if (_object isKindOf "AH64D_EP1") then {
_object removeWeapon "FFARLauncher";
_object removeMagazine "38Rnd_FFAR";
_object removeMagazine "28Rnd_FFAR";
_object removeWeapon "M230";
_object removeMagazine "1200Rnd_30x113mm_M789_HEDP";
_object removeWeapon "SidewinderLaucher_AH64";

};

//Ka52 remove weapons
if (_object isKindOf "Ka52") then {
_object removeWeapon "2A42";
_object removeMagazine "250Rnd_30mmHE_2A42";
_object removeWeapon "80mmLauncher";
_object removeMagazine "40Rnd_80mm40Rnd_S8T";
_object removeWeapon "VikhrLauncher";
_object removeMagazine "12Rnd_Vikhr_KA50";
_object removeWeapon "2A42";
_object removeMagazine "250Rnd_30mmHE_2A42";


};

not sure ammo type for the AH64D_EP _object removeMagazine "38Rnd_FFAR";
_object removeMagazine "28Rnd_FFAR";


please and thank you ...
 
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



could anyone tell me why this is not removing the 40 s8t rounds form the ka52????
everything else is removed and tested but the 40Rnd_S8T are still there


//Ka52 remove weapons
if (_object isKindOf "Ka52") then {
_object removeWeapon "2A42";
_object removeMagazine "250Rnd_30mmHE_2A42";
_object removeWeapon "2A42";
_object removeMagazine "250Rnd_30mmHE_2A42";
_object removeWeapon "80mmLauncher";
_object removeWeapon "80mmLauncher";
_object removeMagazine "40Rnd_80mm";
_object removeMagazine "40Rnd_80mm";
_object removeMagazine "40Rnd_S8T";
_object removeMagazine "40Rnd_S8T";
_object removeWeapon "VikhrLauncher";
_object removeMagazine "12Rnd_Vikhr_KA50";
};
 
could anyone tell me why this is not removing the 40 s8t rounds form the ka52????
everything else is removed and tested but the 40Rnd_S8T are still there


//Ka52 remove weapons
if (_object isKindOf "Ka52") then {
_object removeWeapon "2A42";
_object removeMagazine "250Rnd_30mmHE_2A42";
_object removeWeapon "2A42";
_object removeMagazine "250Rnd_30mmHE_2A42";
_object removeWeapon "80mmLauncher";
_object removeWeapon "80mmLauncher";
_object removeMagazine "40Rnd_80mm";
_object removeMagazine "40Rnd_80mm";
_object removeMagazine "40Rnd_S8T";
_object removeMagazine "40Rnd_S8T";
_object removeWeapon "VikhrLauncher";
_object removeMagazine "12Rnd_Vikhr_KA50";
};

Hey Calamity, did you ever figure this out?
 
Hi,
I tested the script and it works without any troubles on my Epoch Server.

The only problem we have is:
I would like to add the AH64D without hellfire and hydra. The hellfire can be removed but the hydra is available.
Anyone an idea?

I use this code:
//AH64D_EP1 remove weapons
if (_object isKindOf "AH64D_EP1") then {
_object removeWeapon "FFARLauncher";
_object removeWeapon "SidewinderLaucher_AH64";
_object removeWeapon "HellfireLauncher";
_object removeMagazine "38Rnd_FFAR";
_object removeMagazine "28Rnd_FFAR";
_object removeMagazine "8Rnd_Hellfire";
 
Hi,
I tested the script and it works without any troubles on my Epoch Server.

The only problem we have is:
I would like to add the AH64D without hellfire and hydra. The hellfire can be removed but the hydra is available.
Anyone an idea?

I use this code:

yah I have the same problem however they dont work the hydra shows up but they dont really fire. check yours
 
That would be enough for me. They can appear but shouldn't work. My hydras work unfortunately. ;)

Sorry for my bad englisch. Hope you understand what I mean.

Edit:
I found something:

// L39
if (_classname == "L39_TK_EP1") then
{
newvehicle removeweapon "GSh23L_L39";
newvehicle removeweapon "57mmLauncher";
newvehicle addweapon "CMFlareLauncher";
newvehicle addmagazine "60Rnd_CMFlareMagazine";
};

I change this to:

// AH64D
if (_classname == "AH64D") then
{
newvehicle removeweapon "FFARLauncher";
newvehicle removeweapon "HellfireLauncher";
newvehicle addweapon "CMFlareLauncher";
newvehicle addmagazine "60Rnd_CMFlareMagazine";
};

When I´m right: I remove the hydras and the flares take the place of the hydras. Is this right?
But now, where I put this code in? server.pbo, init.sqf, ....?


How´s about this code "removeweaponglobal"?

{ _x removeWeaponGlobal "FFARLauncher"; } forEach allUnits;
 
Anyone figure out if you can do anything with the bicycle? I would love to add a light to it somehow.


"MAYBE" something like this ( Light is the weapon classname and carhorn is the class name Im guessing on the bikehorn part ) im kinda sure this will not work but its a start..
im thinking you may not actually have to remove the horn so you may try just the addWeapon line, I was considering adding guns to it so I think i would have to remove the horn first.
If this works let me know

//old bike
if (_object isKindOf "Old_bike_TK_CIV_EP1") then {
_object removeWeapon "bikehorn";
_object addWeapon "Light";
};
 
That would be enough for me. They can appear but shouldn't work. My hydras work unfortunately. ;)

Sorry for my bad englisch. Hope you understand what I mean.

Edit:
I found something:



I change this to:



When I´m right: I remove the hydras and the flares take the place of the hydras. Is this right?
But now, where I put this code in? server.pbo, init.sqf, ....?


How´s about this code "removeweaponglobal"?


directions are on the first page of this thread
did you get it to work ??? it should go in the Server_monitor.sqf
 
tha
I don't believe this stuff works with 1.7.7.1. If anyone figures out how to make this work, please let us know. I miss having biplanes with machine guns for dogfighting.

thankz for the biplane idea I put m230 on em they are lethal now.... did you get yours working ???
 
directions are on the first page of this thread
did you get it to work ??? it should go in the Server_monitor.sqf

Yes, I have followed your instructions exactly and as I said the Hellfire I could removeand all the other weapons of vehicles like BTR, LAV ....

but the Hydras seems not to work with this script!? It would be enough if they had no ammunition. :(
 
ok try this double up the remove and add the flares I cant test it my server is too full atm
THE SECOND SCRIPT IS A TEST ALSO IT SEEMS THE AH64D_Sidewinders
IS CONSIDERED A VEHICLE ITSELF SO IF THE FIRST DONT WORK ADD THE SECOND

//AH64D_EP1 remove weapons
if (_object isKindOf "AH64D_EP1") then {
_object removeWeapon "FFARLauncher";
_object removeMagazine "38Rnd_FFAR";
_object removeMagazine "28Rnd_FFAR";
_object removeWeapon "FFARLauncher";
_object removeMagazine "38Rnd_FFAR";
_object removeMagazine "28Rnd_FFAR";
_object addWeapon "FlareLauncher";
_object addMagazine "FlareLauncherMag";
_object removeWeapon "M230";
_object removeMagazine "1200Rnd_30x113mm_M789_HEDP";
_object removeWeapon "SidewinderLaucher_AH64";
_object removeMagazine "8Rnd_Sidewinder_AH64";

};

//AH64D_Sidewinders remove weapons
if (_object isKindOf "AH64D_Sidewinders") then {
_object removeWeapon "FFARLauncher";
_object removeMagazine "38Rnd_FFAR";
_object removeMagazine "28Rnd_FFAR";
_object removeWeapon "FFARLauncher";
_object removeMagazine "38Rnd_FFAR";
_object removeMagazine "28Rnd_FFAR";
_object addWeapon "FlareLauncher";
_object addMagazine "FlareLauncherMag";
_object removeWeapon "M230";
_object removeMagazine "1200Rnd_30x113mm_M789_HEDP";
_object removeWeapon "SidewinderLaucher_AH64";
_object removeMagazine "8Rnd_Sidewinder_AH64";

};
 
Someone new to disable missiles AH-64D and ka52
me on my own I
ka52= S-8KOM Still active
AH64D= Hydra Still active
and also an adjustment for those of MI24D
 
I have removed and added alot of weapons on many vehicles but I just cant find the weapon and magazine for the BTR60_TK_EP1 could anyone tell me the weapon and ammo class for this vehicle ????
 
Back
Top