Lenyoga 326 Posted January 18, 2013 Good evening, I'm right now working on a melee weapon for a Mod, but I've encountered a stupid problem with the config. I can drop the magazines, and that's annoying. Is there a way to prevent this? Or at least to only make the weapon itself droppable? class LNN_Sh3_Wrench1: GrenadeLauncher { scopeWeapon=0; scopeMagazine=0; magazineType=0; weaponType=WeaponHardMounted; Ammo="LNN_Sh3_WrHit"; displayName="Wrench"; displayNameMagazine="Wrench"; shortNameMagazine="Wrench"; sound[]={"\LNN_Sh3b\swing1.wav",1,1}; reloadMagazineSound[]={,1,1}; reloadSound[]={,1,1}; reloadTime=0.402; count=99999; magazines[]={"LNN_Sh3_Wrench1Mag"}; picture="\LNN_Sh3b\w_pist.paa"; modelMagazine="\misc\mag_univ.p3d"; cursor = w_weapon; cursorAim = w_lock; maxLeadSpeed=1; canDrop = false; }; class LNN_Sh3_Wrench1Mag: LNN_Sh3_Wrench1 { scopeMagazine=0; magazineType=0; picture="\LNN_Sh3b\w_pist.paa"; canDrop = false; }; Share this post Link to post Share on other sites
DragoFire 0 Posted March 20, 2013 I believe you should be using StrokeFist as your parent class. I maybe wrong it's been a few years since I last looked at the coding. Share this post Link to post Share on other sites
Lenyoga 326 Posted March 20, 2013 Thanks - this is most likely the better way to do it, and I'll have to experiment with it a bit. -- I just tried it out while writing the reply, and the original StrokeFist weapon has the option to actually drop the 'fist' magazine, too... Let's just assume it's one of those features you can't change, so I'll just stick with what I have. Thanks for the reply, anyways! Share this post Link to post Share on other sites