Jump to content
dex01

Dynamic Recon Ops Respawn number Edit

Recommended Posts

Hi all,

I hope this is the right section to post my questions..

I'm playing DRO missions in SP and in MP with a friend and I'd like to limit total respawns in the mission (now is illimitate), someone can tell me how can I do this?

 

Thanks

 

Share this post


Link to post
Share on other sites

To integrate my request placed the configuration files hoping they can be useful.

 

Part of Description.ext

 

respawn = 3;
respawnButton = 1;
respawnDelay = 45;
respawnDialog = 0;
respawnOnStart = 0;
respawnTemplates[] = {"MenuPosition", "Tickets", "Spectator", "EndMission"};

class Params
{
	class Respawn
	{
		title = "Respawn";
		values[] = {0,1,2,3};
		texts[] = {"20 Seconds", "45 Seconds", "90 Seconds", "Disabled"};
		default = 1;
	};		
	class RespawnPositions
	{
		title = "Respawn Positions";
		values[] = {0,1,2};
		texts[] = {"Both", "Starting location only", "Team only"};
		default = 0;               
	};
};

OnPlayerKilled.sqf

 

if (isMultiplayer) then {
	//player setVariable ["respawnLoadout", (getUnitLoadout player)];
	if ((paramsArray select 0) == 3) then {
		[player, -2000, true] call BIS_fnc_respawnTickets;
		diag_log ([player, 0, true] call BIS_fnc_respawnTickets);
		[missionNamespace, -2000] call BIS_fnc_respawnTickets;
		//setPlayerRespawnTime 0;
	};
};

What does it mean -2000 ??

 

OnPlayerRespawn.sqf

 

diag_log format ["DRO: %1 respawn: %2", player, _this];
waitUntil {!isNull player};
if (!isNil "loadoutSavingStarted") then {
	if (loadoutSavingStarted) then {
		playerRespawning = true;
		_loadout = player getVariable "respawnLoadout";	
		if (!isNil "_loadout") then {
			diag_log format ["DRO: Respawning with loadout = %1", _loadout];
			player setUnitLoadout _loadout;
		};
		if (!isNil "respawnTime") then {
			setPlayerRespawnTime respawnTime;	
		};
		deleteVehicle (_this select 1);
		playerRespawning = false;
	};
};
if (!isNil "droGroupIconsVisible") then {
	if (droGroupIconsVisible) then {
		setGroupIconsVisible [true, false];
	};
};

 

Thanks

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

×