Jump to content
  • 0

Please help to adding new grenade in game (don't throw grenade)


hekut146

Question

Hi, when i add new grenade (in new addon) i don't throw (new grenade)

classCfgAmmo{

classGrenadeHand_stone;// External class reference
classMolotovCoctailAmmo:GrenadeHand_stone{
CraterEffects="NoCrater";
explosionEffects ="GlassSmash";
soundHit[]={"\z\addons\hapodha9i_coji9ihka_main\molotov\sounds\bottle_break_0",0.5,1,60};
model ="\z\addons\hapodha9i_coji9ihka_main\molotov\models\molotov.p3d";};

};

classCfgMagazines{

classHandGrenade_Stone;// External class reference
classMolotovCoctail:HandGrenade_Stone{
displayName ="Коктейль Молотова";
descriptionShort ="Стеклянная бутылка содержащая горючую жидкость и запал.";
model ="\z\addons\hapodha9i_coji9ihka_main\molotov\models\molotov.p3d";
picture ="\dayz_equip\textures\equip_bottle_jd_ca.paa";
ammo ="MolotovCoctailAmmo";};

};

class cfgWeapons {

classThrowMuzzle;
classMolotovCocktailMuzzle:ThrowMuzzle{
displayName ="Бросить";
magazines[]={"MolotovCoctail"};};

};


Why i don't have drop (throw) my grenade, i have this in code: displayName = "Бросить"; //Throw
Please, say me, where my error?

Thanks.

Edited by hekut146
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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...