31st Normandy mod for ArmA2
Version .99a
Notes: Fixed players respawning in single player missions with modern weapons, added US 60mm mortar classes to each parent class of US infantry. Code provided in this readme addresses multiplayer issue of spawning/respawning without weapons.
Added:
respawnWeapons[] =
respawnMagazines[] =
To all infantry classes so infantry should retain their weapons upon respawn instead of having modern weapons.
Added US 60mm mortar to each parent set of US infantry.
*more updates to come
For multiplayer weapons spawning issues use this code in your init.sqf inside your mission folder. It will resolve that issue:
//Multiplayer weapons spawning fix
private ["_weapons","_magazines"];
if (local player) THEN
{
sleep 2;
//restore default loadout of chosen class - for unknown reasons, this fixes the grenade bug
removeallweapons player;
removeallItems player;
_weapons = getArray (configFile >> "CfgVehicles" >> format ["%1",typeOf player] >> "weapons");
_magazines = getArray (configFile >> "CfgVehicles" >> format ["%1",typeOf player] >> "magazines");
{player addmagazine _x;} foreach _magazines;
{player addweapon _x;} foreach _weapons;
//this makes sure that even the 31stN units have the essentials
IF !(player hasWeapon "ItemCompass") THEN {player addWeapon "ItemCompass"};
IF !(player hasWeapon "ItemMap") THEN {player addWeapon "ItemMap"};
//IF !(player hasWeapon "ItemRadio") THEN {player addWeapon "ItemRadio"};
IF !(player hasWeapon "ItemWatch") THEN {player addWeapon "ItemWatch"};
//select weapon so respawned units may shoot at once
if (count weapons player > 0) then
{
player selectWeapon (_weapons select 0);
};
};
Thanks for Dimitri_Harkov for posting that fix in the forums. -Rip31st rip31st@hotmail.com
|