Rework player_death for respawnDelay=0; #1825

See #1825
This commit is contained in:
ebaydayz
2017-01-24 15:55:15 -05:00
parent 1133efc2e0
commit 6c62b3f8e4
31 changed files with 157 additions and 116 deletions

View File

@@ -30,7 +30,7 @@
5 playableUnits !"for [{_y=0},{_y < count(playableUnits)},{_y=_y+1}] do {" !"typeName player == \"OBJECT\")}) AND {((player in playableUnits) AND {(alive player)" !"(1 max count playableUnits)) min (dayz_maxAnimals - _count))) to 1 step -1 do {" !"AND {((alive _x) AND {((vehicle _x) distance _obj < 150)})}} count playableUnits)}) then {" !="_local = { _unit distance _x < _dis; } count playableUnits <= 1;" !"if (!_isOk) exitWith {false};\nuiSleep 0.001;\n} forEach playableUnits;" !"ManagementMustBeClose) then { player nearEntities [\"CAManBase\", 10] } else { playableUnits };"
5 selectPlayer !"dayz_originalPlayer enableSimulation true;\naddSwitchableUnit dayz_originalPlayer;\nsetPlayable dayz_originalPlayer;\nselectPlayer dayz_originalPlayer;" !"addSwitchableUnit _newUnit;\nsetPlayable _newUnit;\nselectPlayer _newUnit;"
5 serverCommand !="_character = if (serverCommandAvailable \"#kick\") then { call sched_tg_follow } else { player };" !"serverCommand (\"#kick \" + _selectedName);"
5 setDamage !"([4654,9595,0] nearestObject 145259) setDamage 1;\n([4654,9595,0] nearestObject 145260) setDamage 1;" !"if (_entity isKindOf \"Animal\") then {\n_entity setDamage 1;" !"_tree setDamage 1;\ndayz_choppedTrees set [count dayz_choppedTrees,_tree];" !"if (deathHandled) exitWith {};\ndeathHandled = true;\nplayer setDamage 1;" !"\n_obj setDamage (damage _obj) + _damage;\n" !"if(\"\" == typeOf _tree) then {\n_tree setDamage 1;\n};" !"if (_ent isKindOf \"Animal\" || _ent isKindOf \"zZombie_base\") then {\n_ent setDamage 1;"
5 setDamage !"([4654,9595,0] nearestObject 145259) setDamage 1;\n([4654,9595,0] nearestObject 145260) setDamage 1;" !"if (_entity isKindOf \"Animal\") then {\n_entity setDamage 1;" !"_tree setDamage 1;\ndayz_choppedTrees set [count dayz_choppedTrees,_tree];" !"player setDamage 1;\n\nif (dayz_onBack != \"\") then {\n_body addWeapon dayz_onBack;" !"\n_obj setDamage (damage _obj) + _damage;\n" !"if(\"\" == typeOf _tree) then {\n_tree setDamage 1;\n};" !"if (_ent isKindOf \"Animal\" || _ent isKindOf \"zZombie_base\") then {\n_ent setDamage 1;"
5 setDammage
5 SetEventHandler !="_menu ctrlSetEventHandler [\"ButtonClick\",_compile];" !="inGameUISetEventHandler [\"PrevAction\",\"false\"];" !="inGameUISetEventHandler [\"NextAction\",\"false\"];" !="inGameUISetEventHandler [\"Action\",\"false\"];"
5 setMarkerAlpha

View File

@@ -1,5 +1,5 @@
respawn = "BASE";
respawnDelay = 5;
respawnDelay = 0;
respawnDialog = 0;
onLoadMission = "DayZ Epoch Takistan";
OnLoadIntro = "Welcome to Takistan";

View File

@@ -1,5 +1,5 @@
respawn = "BASE";
respawnDelay = 5;
respawnDelay = 0;
respawnDialog = 0;
onLoadMission = "DayZ Epoch Mountains ACR";
OnLoadIntro = "Welcome to Mountains ACR";

View File

@@ -1,5 +1,5 @@
respawn = "BASE";
respawnDelay = 5;
respawnDelay = 0;
respawnDialog = 0;
onLoadMission = "DayZ Epoch Chernarus";
OnLoadIntro = "Welcome to Chernarus";

View File

@@ -1,5 +1,5 @@
respawn = "BASE";
respawnDelay = 5;
respawnDelay = 0;
respawnDialog = 0;
onLoadMission = "DayZ Epoch Isla Duala";
OnLoadIntro = "Welcome to Isla Duala";

View File

@@ -1,5 +1,5 @@
respawn = "BASE";
respawnDelay = 5;
respawnDelay = 0;
respawnDialog = 0;
onLoadMission = "DayZ Epoch Taviana";
OnLoadIntro = "Welcome to Taviana";

View File

@@ -1,5 +1,5 @@
respawn = "BASE";
respawnDelay = 5;
respawnDelay = 0;
respawnDialog = 0;
onLoadMission = "DayZ Epoch Namalsk";
OnLoadIntro = "Welcome to Namalsk";

View File

@@ -1,5 +1,5 @@
respawn = "BASE";
respawnDelay = 5;
respawnDelay = 0;
respawnDialog = 0;
onLoadMission = "DayZ Epoch Panthera";
OnLoadIntro = "Welcome to Panthera Island";

View File

@@ -1,5 +1,5 @@
respawn = "BASE";
respawnDelay = 5;
respawnDelay = 0;
respawnDialog = 0;
onLoadMission = "DayZ Epoch Chernarus";
OnLoadIntro = "Welcome to Chernarus";

View File

@@ -1,5 +1,5 @@
respawn = "BASE";
respawnDelay = 5;
respawnDelay = 0;
respawnDialog = 0;
onLoadMission = "DayZ Epoch Podagorsk";
OnLoadIntro = "Welcome to Podagorsk";

View File

@@ -1,5 +1,5 @@
respawn = "BASE";
respawnDelay = 5;
respawnDelay = 0;
respawnDialog = 0;
onLoadMission = "DayZ Epoch Utes";
OnLoadIntro = "Welcome to Utes";

View File

@@ -1,5 +1,5 @@
respawn = "BASE";
respawnDelay = 5;
respawnDelay = 0;
respawnDialog = 0;
onLoadMission = "DayZ Epoch Fapovo";
OnLoadIntro = "Welcome to Fapovo Island";

View File

@@ -1,5 +1,5 @@
respawn = "BASE";
respawnDelay = 5;
respawnDelay = 0;
respawnDialog = 0;
onLoadMission = "DayZ Epoch Caribou Frontier";
OnLoadIntro = "Welcome to Caribou Frontier";

View File

@@ -1,5 +1,5 @@
respawn = "BASE";
respawnDelay = 5;
respawnDelay = 0;
respawnDialog = 0;
onLoadMission= "DayZ Epoch SMD Sahrani";
OnLoadIntro = "Welcome to SMD Sahrani";

View File

@@ -1,5 +1,5 @@
respawn = "BASE";
respawnDelay = 5;
respawnDelay = 0;
respawnDialog = 0;
onLoadMission = "DayZ Epoch Ovaron";
OnLoadIntro = "Welcome to Ovaron";

View File

@@ -1,5 +1,5 @@
respawn = "BASE";
respawnDelay = 5;
respawnDelay = 0;
respawnDialog = 0;
onLoadMission = "DayZ Epoch Napf";
OnLoadIntro = "Welcome to Napf";

View File

@@ -1,5 +1,5 @@
respawn = "BASE";
respawnDelay = 5;
respawnDelay = 0;
respawnDialog = 0;
onLoadMission = "DayZ Epoch Sauerland";
OnLoadIntro = "Welcome to Sauerland";

View File

@@ -1,5 +1,5 @@
respawn = "BASE";
respawnDelay = 5;
respawnDelay = 0;
respawnDialog = 0;
onLoadMission = "DayZ Epoch Sauerland Winter Edition";
OnLoadIntro = "Welcome to Sauerland";

View File

@@ -1,5 +1,5 @@
respawn = "BASE";
respawnDelay = 5;
respawnDelay = 0;
respawnDialog = 0;
onLoadMission = "DayZ Epoch Shapur";
OnLoadIntro = "Welcome to Shapur";

View File

@@ -1,5 +1,5 @@
respawn = "BASE";
respawnDelay = 5;
respawnDelay = 0;
respawnDialog = 0;
onLoadMission = "DayZ Epoch Zargabad";
OnLoadIntro = "Welcome to Zargabad";

View File

@@ -1,5 +1,5 @@
respawn = "BASE";
respawnDelay = 5;
respawnDelay = 0;
respawnDialog = 0;
onLoadMission = "DayZ Epoch Bootcamp ACR";
OnLoadIntro = "Welcome to Bootcamp ACR";

View File

@@ -1,5 +1,5 @@
respawn = "BASE";
respawnDelay = 5;
respawnDelay = 0;
respawnDialog = 0;
onLoadMission = "DayZ Epoch Lingor";
OnLoadIntro = "Welcome to Lingor Island";

View File

@@ -1,5 +1,5 @@
respawn = "BASE";
respawnDelay = 5;
respawnDelay = 0;
respawnDialog = 0;
onLoadMission = "DayZ Epoch Proving Grounds PMC";
OnLoadIntro = "Welcome to Proving Grounds PMC";

View File

@@ -1,5 +1,5 @@
respawn = "BASE";
respawnDelay = 5;
respawnDelay = 0;
respawnDialog = 0;
onLoadMission = "DayZ Epoch Woodland ACR";
OnLoadIntro = "Welcome to Woodland ACR";