Jump to content

Weapon customization


Recommended Posts

What it does

  • Adds SD to weapons
  • Adds Red Dots to Weapons
  • Adds Flash flights
  • Adds NVG to weapons
  • Adds Scopes
  • Add grenade launchers laser
  • Acogs scopes

All the attachments can be removed.

 

All you have to do is right click the compatible gun no mods needed

 

Release will be this week or next

Fixing bugs and add most combinations for weapons.

Link to comment
Share on other sites

Unerground2 you can add it yourself easily too :P just create a right click on for example the default M4 and do a script that deletes the M4 and adds the M4 SD for example and remove stuff from the inventory that is "required" to construct the silencer... But cool stuff Asian Kid, you save people a lot of work!

Link to comment
Share on other sites

Having problems with this script

If some one could help me

/////////////////////////////////////
_itemsPlayer = items player;
_mags = magazines player;
_hasitem = _WItem in _itemsPlayer;
_hasToolbox = "ItemToolbox" in _itemsPlayer;
_Kweapon = primaryWeapon;
/////////////////////////////////////
_gun = "M4A1_Aim";
_ritem = "PartGlass";
_WItem = "";
/////////////////////////////////////
if (_ritem in _mags) then {
Item = true;
} else {
Item = false;
cutText [format["You don't have required parts glass"], "PLAIN DOWN",3];
};

if(Item) then {
//
player playActionNow "Medic";
//
(findDisplay 106) closeDisplay 1;
waitUntil { isNull (FindDisplay 106) };
//
_dis=10;
_sfx = "repair";
[player,_sfx,0,false,_dis] call dayz_zombieSpeak;
[player,_dis,true,(getPosATL player)] spawn player_alertZombies;
//
sleep 0.5;
player removeMagazine _ritem;
player removeWeapon _WItem;
player removeWeapon (_Kweapon player);
//
sleep 1;
cutText [format["Customizing you weapon"], "PLAIN DOWN",2];
sleep 0.5;
player addWeapon _gun;
sleep 2;
cutText [format["You have successfully customized you weapon"], "PLAIN DOWN",3];
};
///////////////////////////////////////
Link to comment
Share on other sites

This may help , i don't know , it is kind of similar that's why im suggesting that it may work. 

private["_items","_item","_tool","_pos"];
_items = magazines player;
_tool = items player;
if (("ItemToolbox" in _tool) && ("Binocular" in _items) && ("ItemFlashlightRed" in _tool) && ("ItemHeatPack" in _items)) then {
player removeAction s_player_craftBullet; //remove the action from users scroll menu
player playActionNow "Medic"; //play craft animation
sleep 5;
player removeMagazine "Binocular"; //remove the used item from inventory
player removeTool "ItemFlashlightRed"; //remove the used item from inventory
player removeMagazine "ItemHeatPack"; //remove the used item from inventory
_pos = player modeltoWorld [0,1,0];
_item = createVehicle ["WeaponHolder", _pos, [], 0.0, "CAN_COLLIDE"];
_item setPosATL _pos;
_item addMagazineCargoGlobal ["Binocular_Vector",1];
cutText [format["You have crafted a rangefinder, it's on the ground."], "PLAIN DOWN"]; //display text at bottom.
}
else
{
cutText [format["You must have binoculars, a heat pack, a military flashlight and a toolbox to craft this item."], "PLAIN DOWN"]; //display text at bottom.
};
Link to comment
Share on other sites

  • 4 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...