Quote:
// OPTIONS FOR PLAYER'S DEAD BODIES AND EQUIPMENT - Additional revive functions with many thanks to alef (0 - off, 1 - on except for _bury_timeout)
_drop_weapons = 1; //array no.93 - should the respawned player drop his weapons where he died?
_cadaver = 1; //array no.94 - should the respawned player's body remain there?
_bury_timeout = 120; //array no.95 - if drop weapons OR player body, how long before the body is buried?
// 0=maximum (1200s) , n=seconds up to 1200s (hard coded)
That is around line 165 in Norrin's Revive Script 'revive_init.sqf'. 1200 seconds is 20 minutes, but if that is truly not long enough, give this a whirl for your weapons deal:
init.sqf
Quote:
// Default soldier loadout.
BIS_EVO_pallammo = ["30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","3 0Rnd _556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x4 5_Stanag","30Rnd_556x45_Stanag","15Rnd_9x19_M9","1 5Rnd_9x19_M9","15Rnd_9x19_M9","15Rnd_9x19_M9"];// The players default load out
BIS_EVO_pweapons = ["M16A2","M9","Binocular","NVGoggles","ItemGPS" ,"It emRadio","ItemMap","ItemWatch","ItemCompass"]; // The players default load out
// Reset everyone's weapons since we're using generic classes.
removeAllWeapons player;
removeAllItems player;
{player addMagazine _x;} forEach BIS_EVO_pallammo;
{player addWeapon _x;} forEach BIS_EVO_pweapons;
_primary = primaryWeapon player;
if (_primary != "") then {
player selectWeapon _primary;
// Grenade launcher Fix
_muzzles = getArray(configFile>>"cfgWeapons" >> _primary >> "muzzles");
player selectWeapon (_muzzles select 0);
};
Then, in a new file...
refill.sqf
Quote:
// Respawn with previous gear
// Give back the weapons the player had when he died.
removeAllWeapons player;
{player addMagazine _x;} forEach BIS_EVO_pallammo;
{player addWeapon _x;} forEach BIS_EVO_pweapons;
_primary = primaryWeapon player;
if (_primary != "") then {
player selectWeapon _primary;
// Grenade launcher Fix
_muzzles = getArray(configFile>>"cfgWeapons" >> _primary >> "muzzles");
player selectWeapon (_muzzles select 0);
};
You might have to tinker with this a bit. Anyway, with normal respawn you will respawn with the stock weapons for that specific soldier. That script in the init.sqf will change all player's initial loadout from stock to whatever you want it to be (M16A2 for this specifically). Then on death and respawn the refill.sqf should again remove all stock gear and replace it with whatever you died with.