Jump to content
Sign in to follow this  
slim_jim

[SOLVED] Overwriting (default) unit loadouts? (source in post #2)

Recommended Posts

Hi folks,

 

I want to replace all of the MX rifles with the Spar series as an addon so that it works with the campaign and other missions that don't use custom loadouts.

 

I've downloaded ANTIFLAGELLUM's Black MX Replacement (replaces the tan mx with black ones) and fiddled around with it, but to no avail. I'm always getting result code 1, "some input after EndOfFile". I mostly replaced class names from mx to spar. I have some experience in scripting, but none with ArmA and I can't get it to work without a debugger that tells me where the issue is :/

 

What would a class, that overwrites B_Soldier_GL_F (Grenadier), look like?

For example, B_Soldier_GL_F should get:

- arifle_SPAR_01_GL_blk_ACO_Pointer_F

- 30Rnd_556x45_Stanag

- 1Rnd_HE_Grenade_shell

 

Also, do I have to remove unused 6.5mm mags?

 

I have tried to study the Black MX Replacement and crooker12's RHS/Vanilla replacement, but I'd love to see a simpler, more isolated example to figure it out from there.

Edited by slim_jim

Share this post


Link to post
Share on other sites

Alright,  it's done! :)

 

For anyone interested, or who happens to have a similar question in the future, here is the mod including the source code.

 

DL: Dropbox

 

MX -> xSPAR-16 6.5 mm

MXC -> xSPAR-16C 6.5 mm

MXM -> xSPAR-17 6.5 mm

MX SW -> xSPAR-16 SW 6.5 mm

MX GL -> xSPAR-16 GL 6.5 mm

 

This technically just replaces assets, the behaviour is still like the original MX equivalent. It's the 2035 version of the hk416, modified to fit NATOs needs, so to speak.

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  

×