Outshadow 0 Posted April 30, 2018 I'm currently trying to add 3Rnd_SmokeRed_Grenade_shell to a rifle that does have an underbarrel. But I'm unable to find out how to add it. any ideas? Share this post Link to post Share on other sites
mrcurry 496 Posted April 30, 2018 Is the rifle an MX UGL? Cause that's the only one that can use that particular magazine. addMagazine is a good start for adding magazines. Share this post Link to post Share on other sites
Outshadow 0 Posted April 30, 2018 11 hours ago, mrcurry said: Is the rifle an MX UGL? Cause that's the only one that can use that particular magazine. addMagazine is a good start for adding magazines. It isn't a vanilla weapon, however, the process just is exact or similar. I'm aware of adding magazines and simple scripting but I'm currently trying to figure out on how to add a different ammo type that isn't accepted by the weapon and have it load that type. As I want to load these smokes UGL_FlareWhite_F UGL_FlareGreen_F UGL_FlareRed_F UGL_FlareYellow_F UGL_FlareCIR_F 1Rnd_Smoke_Grenade_shell 1Rnd_SmokeRed_Grenade_shell 1Rnd_SmokeGreen_Grenade_shell 1Rnd_SmokeYellow_Grenade_shell 1Rnd_SmokePurple_Grenade_shell 1Rnd_SmokeBlue_Grenade_shell 1Rnd_SmokeOrange_Grenade_shell 3Rnd_HE_Grenade_shell 3Rnd_UGL_FlareWhite_F 3Rnd_UGL_FlareGreen_F 3Rnd_UGL_FlareRed_F 3Rnd_UGL_FlareYellow_F 3Rnd_UGL_FlareCIR_F 3Rnd_Smoke_Grenade_shell 3Rnd_SmokeRed_Grenade_shell 3Rnd_SmokeGreen_Grenade_shell 3Rnd_SmokeYellow_Grenade_shell 3Rnd_SmokePurple_Grenade_shell 3Rnd_SmokeBlue_Grenade_shell 3Rnd_SmokeOrange_Grenade_shell As it is meant for it been have by an RTO [Radio Telephone Opeartor] to ease the gap between the RTO and the location he needs to pop smoke on. Share this post Link to post Share on other sites
warlord554 2065 Posted April 30, 2018 Compatible magazines are defined in the actual weapon config, rifle or launcher alike. All u need to do is add that magazine classname to the ugl magazine config and it will accept it. Share this post Link to post Share on other sites
Outshadow 0 Posted April 30, 2018 2 hours ago, warlord554 said: Compatible magazines are defined in the actual weapon config, rifle or launcher alike. All u need to do is add that magazine classname to the ugl magazine config and it will accept it. wouldn't that only work clientside and not for everyone on the server/server box? Trying to avoid creating another "mod" to have a weapon act differently. Share this post Link to post Share on other sites
warlord554 2065 Posted May 1, 2018 You'd have to repack add-on and everyone have same weapon config I assume Share this post Link to post Share on other sites
beno_83au 1369 Posted May 1, 2018 What's the mod and weapon you're using? Does it not either have 40mm smoke of its own or use the vanilla 40mm? Share this post Link to post Share on other sites
Outshadow 0 Posted May 2, 2018 15 hours ago, beno_83au said: What's the mod and weapon you're using? Does it not either have 40mm smoke of its own or use the vanilla 40mm? SWOP (Star Wars), it does not have smokes for the underbarrel only HEs. Share this post Link to post Share on other sites
beno_83au 1369 Posted May 2, 2018 Ahhh ok, yeah that'll put a spanner in it. But you could replace the HE round with a smoke after it fires using a "Fired" eventHandler. Maybe use an addAction to give the player the choice to have the next round fired be replaced by a smoke? Share this post Link to post Share on other sites