Merge pull request #573 from EpochModTeam/experimental

0.3.9 b563
This commit is contained in:
vbawol 2016-07-09 09:41:58 -05:00 committed by GitHub
commit 67033bf9af
33 changed files with 22 additions and 9 deletions

View File

@ -22,9 +22,14 @@
Returns:
BOOL
*/
private _tapDiag = "TapOut";
private _doRevenge = false;
params ["_unit", "_killer"];
private ["_playerDeathScreen","_playerKilledScreen","_tapDiag","_config","_doRevenge"];
params [["_unit",objNull,[objNull]], ["_killer",objNull,[objNull]]];
_config = 'CfgEpochClient' call EPOCH_returnConfig;
_playerDeathScreen = getText(_config >> "playerDeathScreen")
if (_playerDeathScreen isEqualTo "") then {_playerDeathScreen = "TapOut"};
_tapDiag = _playerDeathScreen;
_doRevenge = (getNumber(_config >> "playerDisableRevenge") isEqualTo 0);
// test ejecting unit from vehicle if dead client side
if (vehicle _unit != _unit) then {
@ -38,7 +43,10 @@ EPOCH_buildMode = 0;
EPOCH_snapDirection = 0;
EPOCH_Target = objNull;
if(player != _killer && (isPlayer _killer || isPlayer (effectiveCommander _killer)))then{_tapDiag = "TapOut2";};//TODO: vehicle check may not always be reliable
// playerKilledScreen
_playerKilledScreen = getText(_config >> "playerKilledScreen")
if (_playerKilledScreen isEqualTo "") then {_playerKilledScreen = "TapOut2"};
if(_doRevenge && player != _killer && (isPlayer _killer || isPlayer (effectiveCommander _killer)))then{_tapDiag = _playerKilledScreen};//TODO: vehicle check may not always be reliable
if (Epoch_canBeRevived) then {
setPlayerRespawnTime 600;

View File

@ -98,6 +98,11 @@ class CfgEpochClient
// Fishing loots
fishLoots[] = {"ItemTuna","ItemSeaBass","ItemSeaBass","ItemSeaBass","ItemTrout","ItemTrout","ItemTrout","ItemTrout","ItemTrout","ItemTrout"};
// Player specific configs
playerDeathScreen = "TapOut";
playerKilledScreen = "TapOut2";
playerDisableRevenge = 0; // 0 = invoke playerKilledScreen when killed by another player, 1 = disable.
// include configs
#include "CfgEpochClient\Altis.hpp"
#include "CfgEpochClient\australia.hpp"

View File

@ -1 +1 @@
build=562;
build=563;

View File

@ -1 +1 @@
build=562;
build=563;

View File

@ -1 +1 @@
build=562;
build=563;

View File

@ -1 +1 @@
build=562;
build=563;

View File

@ -1 +1 @@
562
563