Jump to content
Sign in to follow this  
oy of mid-world

Replacing Weapons

Recommended Posts

Hey everyone,

I did some modding of other games some years ago, so I'm not totally new, and have some basic modding knowledge, however I have far less time nowadays, so I figured, before I work myself into ArmA 3, I'd ask first, just how complicated you guys think a mod like this would be, or if it is even possible in ArmA 3.

Here's my gripe: I've always liked to play autoriflemen (in any game), but I just feel that the basic NATO MX LSF light machinegun is horrible, the MK200 of the FIA and AAF however is excellent. Would it be possible to completely replace the MX LSF with the MK200 and the MX LSF ammunition with MK200 ammo throughout the game? Just have an MK200 spawned whenever an MK200 or MX LSF is supposed to spawn, including in inventories and weapon caches? That way it would be independent of any map/loadout setting.

I really like to play cooperatively with my friends (who'd also want this), so any kind of online playability with anyone else is not necessary. Any insight or help would be greatly appreciated. Thanks guys.

Share this post


Link to post
Share on other sites

It is possible to achieve this by just putting some codes in the initialization box of a unit in the editor.

- First remove the weapon from the unit.

this removeWeapon "insert_weapon_classname_here";

- Then remove the weapons magazine.

this removeMagazines "insert_weapons_magazines_classname_here";

- Next add the magazines for the new weapon so when the unit spawns, the weapon is loaded.

this addMagazines ["insert_weapons_magazine_classname_here", NumberOfMagazinesYouWant];

- Next add the desired weapon to the unit.

this addWeapon "insert_weapon_classname_here";

Done.

-------

However if you only play published missions, then you'll need a mod that does the above. And it will have to be a global variable too so that it replaces the weapons of all of the factions AR unit.

Share this post


Link to post
Share on other sites
if you only play published missions, then you'll need a mod that does the above.

No not necessary, just unpbo the mission, move the mission folder to the mpmissions folder for the editor,

edit the mission, add the codes, save and repbo.

heres the classnames list

scroll down about 4/4 the way and all your mx weapon classnames are there.

Share this post


Link to post
Share on other sites

Hey, thanks for the replies guys. Yeah, the global variable approach was kind of what I was looking for, it does however sound complicated and prone to be broken by future patches. From my previous modding experience, I was thinking more along the lines of editing a file that references the MX and changing it to refer to the MK. I had no real hope that it would be that easy though.

So I think I'm gonna combine the advise of both of you and take the editor approach. I screwed around with the Virtual Ammobox System, and I believe adding a VA to the spawn location of a given mission should be quick and simple and even add functionality. The unpboing and repboing (:D) seems to work fine so far. Do you know if it is possible to unpbo Bohemias original coop missions, and where I would find them?

Thanks for the input, much appreciated.

Share this post


Link to post
Share on other sites

If you are only playing with friends, and not worried about compatibility with other players, Then doing it at config level might be best.

Therefore there's no scripting you need to do later on.

I've put together a little mod that replaces the MKSW that Blufor AR gunners carry with the MK200 (I think that's what you wanted). It doesn't replace the ones in the Ammo boxes yet, because I got home late so I haven't really got the time to check the config entries for the boxes tonight.

I've put the source files in so you can have a look and see how you can put little mods together. Hope that helps you.

Here you go: https://dl.dropboxusercontent.com/u/101800212/mk200.7z

:)

Share this post


Link to post
Share on other sites
If you are only playing with friends, and not worried about compatibility with other players, Then doing it at config level might be best.

Therefore there's no scripting you need to do later on.

I've put together a little mod that replaces the MKSW that Blufor AR gunners carry with the MK200 (I think that's what you wanted). It doesn't replace the ones in the Ammo boxes yet, because I got home late so I haven't really got the time to check the config entries for the boxes tonight.

I've put the source files in so you can have a look and see how you can put little mods together. Hope that helps you.

Here you go: https://dl.dropboxusercontent.com/u/101800212/mk200.7z

:)

Err, yes that is exactly what I wanted. Thank you so much! Actually, let me add some more exclamation marks!!!

:) Really this is absolutely great, thank you for doing this solely out of kindness, and even including the source, so I can learn something from it. :D Wish I could buy you a beer... Brighton's a little far away though.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×