mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
base rallypoints create a respawn marker if none is present in the mission
This commit is contained in:
parent
e1926c6af1
commit
2940d1f83c
@ -23,37 +23,39 @@ class Extended_Respawn_EventHandlers {
|
|||||||
class Extended_Init_EventHandlers {
|
class Extended_Init_EventHandlers {
|
||||||
class ACE_Rallypoint_West {
|
class ACE_Rallypoint_West {
|
||||||
class ADDON {
|
class ADDON {
|
||||||
init = QUOTE((_this select 0) setFlagTexture '\A3\Data_F\Flags\Flag_nato_CO.paa'; _this call FUNC(initRallypoint));
|
init = QUOTE((_this select 0) setFlagTexture '\A3\Data_F\Flags\Flag_nato_CO.paa'; [ARR_2(_this select 0,'')] call FUNC(initRallypoint));
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
class ACE_Rallypoint_East {
|
class ACE_Rallypoint_East {
|
||||||
class ADDON {
|
class ADDON {
|
||||||
init = QUOTE((_this select 0) setFlagTexture '\A3\Data_F\Flags\Flag_CSAT_CO.paa'; _this call FUNC(initRallypoint));
|
init = QUOTE((_this select 0) setFlagTexture '\A3\Data_F\Flags\Flag_CSAT_CO.paa'; [ARR_2(_this select 0,'')] call FUNC(initRallypoint));
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
class ACE_Rallypoint_Independent {
|
class ACE_Rallypoint_Independent {
|
||||||
class ADDON {
|
class ADDON {
|
||||||
init = QUOTE((_this select 0) setFlagTexture '\A3\Data_F\Flags\Flag_AAF_CO.paa'; _this call FUNC(initRallypoint));
|
init = QUOTE((_this select 0) setFlagTexture '\A3\Data_F\Flags\Flag_AAF_CO.paa'; [ARR_2(_this select 0,'')] call FUNC(initRallypoint));
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
class ACE_Rallypoint_West_Base {
|
class ACE_Rallypoint_West_Base {
|
||||||
class ADDON {
|
class ADDON {
|
||||||
init = QUOTE((_this select 0) setFlagTexture '\A3\Data_F\Flags\Flag_nato_CO.paa'; _this call FUNC(initRallypoint));
|
init = QUOTE((_this select 0) setFlagTexture '\A3\Data_F\Flags\Flag_nato_CO.paa'; [ARR_2(_this select 0,'respawn_west')] call FUNC(initRallypoint));
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
class ACE_Rallypoint_East_Base {
|
class ACE_Rallypoint_East_Base {
|
||||||
class ADDON {
|
class ADDON {
|
||||||
init = QUOTE((_this select 0) setFlagTexture '\A3\Data_F\Flags\Flag_CSAT_CO.paa'; _this call FUNC(initRallypoint));
|
init = QUOTE((_this select 0) setFlagTexture '\A3\Data_F\Flags\Flag_CSAT_CO.paa'; [ARR_2(_this select 0,'respawn_east')] call FUNC(initRallypoint));
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
class ACE_Rallypoint_Independent_Base {
|
class ACE_Rallypoint_Independent_Base {
|
||||||
class ADDON {
|
class ADDON {
|
||||||
init = QUOTE((_this select 0) setFlagTexture '\A3\Data_F\Flags\Flag_AAF_CO.paa'; _this call FUNC(initRallypoint));
|
init = QUOTE((_this select 0) setFlagTexture '\A3\Data_F\Flags\Flag_AAF_CO.paa'; [ARR_2(_this select 0,'respawn_guerrila')] call FUNC(initRallypoint));
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//respawn_civilian
|
||||||
};
|
};
|
||||||
|
@ -16,9 +16,10 @@
|
|||||||
|
|
||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_rallypoint", "_name"];
|
private ["_rallypoint", "_respawnMarker", "_name"];
|
||||||
|
|
||||||
_rallypoint = _this select 0;
|
_rallypoint = _this select 0;
|
||||||
|
_respawnMarker = _this select 1;
|
||||||
|
|
||||||
if (!local _rallypoint) exitWith {};
|
if (!local _rallypoint) exitWith {};
|
||||||
|
|
||||||
@ -31,3 +32,7 @@ if (isNil _name) then {
|
|||||||
deleteVehicle _rallypoint;
|
deleteVehicle _rallypoint;
|
||||||
diag_log text "[ACE] Respawn: ERROR Multiple Rallypoints of same type.";
|
diag_log text "[ACE] Respawn: ERROR Multiple Rallypoints of same type.";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (isServer && {_respawnMarker != ""} && {!(_respawnMarker in allMapMarkers)}) then {
|
||||||
|
createMarker [_respawnMarker, _rallypoint];
|
||||||
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user