Ok, here's a weird one for y'all:
So I got everything working first try using the default files from the first post.
I notice that the "militia" class is spawning in without rifles.
I open the add_unit_server.sqf and find that the militia class has L85A2AWS(banned weapon)set as it's primary(and StanagSD ammo for some reason).
I edited and replaced the BAF_L85A2_RIS_CWS(L85A2AWS)- with SCAR_L_CQC_Holo(an unbanned MK16 variant) and also edit the ammo to be standard stanag. Save/close/repack/re-upload/restart.
Ever since this change everyone joining the server gets the following error message:
"you cannot play/edit this mission its dependent on downloadable content that has been deleted. dayz.anim" - but they are still able to join and play normally.
Ok, so the weird thing is, that's the same error people used to get when picking up the L85A2AWS in-game when it was removed/glitched in a patch about 9mo. ago.
I replaced SCAR_L_CQC_Holo with G36C(100% positively for sure unbanned) but still get the error.
I went through my add_unit_server.sqf and couldn't find any other references to BAF_L85A2_RIS_CWS or any other specific weapon outside the "case sections", so I'm kind of at a loss on where to make any corrections to fix this.
Any ideas? (relevent portion of my current add_unit_server.sqf is posted below)
Code:// to add more gear sets, just add another case, and copy and paste the variables from one of the other cases into it, and then reference it in the init. switch (_gearSet) do { case 0 : { _sniperSkin = "BAF_Soldier_Sniper_MTP"; _sniperRifle = "DMR"; _sniperAmmo = "20Rnd_762x51_DMR"; _sniperAmmoCount = 10; _sniperGear = ["ItemBandage"]; _sniperWeapons = ["ItemMatchbox"]; _gunnerSkin = "BAF_Soldier_MTP"; _gunnerRifle = "Mk_48_DZ"; _gunnerAmmo = "100Rnd_762x51_M240"; _gunnerAmmoCount = 10; _gunnerGear = ["ItemBandage"]; _gunnerWeapons = ["ItemMatchbox"]; _militiaSkin = "BAF_Soldier_L_MTP"; _militiaRifle = "G36C"; _militiaAmmo = "30Rnd_556x45_Stanag"; _militiaAmmoCount = 10; _militiaGear = ["ItemBandage"]; // Additional gear (does not include tools or guns) _militiaWeapons = ["ItemMatchbox"]; //Additional Guns and Tools };
Try giving them the same item as the gunner and see if the error still exists, it seems it may be an issue of Arma2 vs Arma2OA model by a quick look into this error.