Skip to content

Commit

Permalink
Merge pull request #573 from EpochModTeam/experimental
Browse files Browse the repository at this point in the history
0.3.9 b563
  • Loading branch information
vbawol committed Jul 9, 2016
2 parents dd42401 + ffad143 commit 67033bf
Show file tree
Hide file tree
Showing 33 changed files with 22 additions and 9 deletions.
Binary file modified Server_Install_Pack/@epochhive/addons/epoch_server.pbo
Binary file not shown.
Binary file modified Server_Install_Pack/@epochhive/addons/epoch_server_core.pbo
Binary file not shown.
Binary file modified Server_Install_Pack/@epochhive/addons/epoch_server_settings.pbo
Binary file not shown.
Binary file modified Server_Install_Pack/mpmissions/epoch.Altis.pbo
Binary file not shown.
Binary file modified Server_Install_Pack/mpmissions/epoch.Australia.pbo
Binary file not shown.
Binary file modified Server_Install_Pack/mpmissions/epoch.Bootcamp_ACR.pbo
Binary file not shown.
Binary file modified Server_Install_Pack/mpmissions/epoch.Bornholm.pbo
Binary file not shown.
Binary file modified Server_Install_Pack/mpmissions/epoch.Chernarus.pbo
Binary file not shown.
Binary file modified Server_Install_Pack/mpmissions/epoch.Chernarus_Summer.pbo
Binary file not shown.
Binary file modified Server_Install_Pack/mpmissions/epoch.Desert_E.pbo
Binary file not shown.
Binary file modified Server_Install_Pack/mpmissions/epoch.Esseker.pbo
Binary file not shown.
Binary file modified Server_Install_Pack/mpmissions/epoch.Mountains_ACR.pbo
Binary file not shown.
Binary file modified Server_Install_Pack/mpmissions/epoch.Napf.pbo
Binary file not shown.
Binary file modified Server_Install_Pack/mpmissions/epoch.Porto.pbo
Binary file not shown.
Binary file modified Server_Install_Pack/mpmissions/epoch.ProvingGrounds_PMC.pbo
Binary file not shown.
Binary file modified Server_Install_Pack/mpmissions/epoch.Sara.pbo
Binary file not shown.
Binary file modified Server_Install_Pack/mpmissions/epoch.SaraLite.pbo
Binary file not shown.
Binary file modified Server_Install_Pack/mpmissions/epoch.Sara_dbe1.pbo
Binary file not shown.
Binary file modified Server_Install_Pack/mpmissions/epoch.Shapur_BAF.pbo
Binary file not shown.
Binary file modified Server_Install_Pack/mpmissions/epoch.Stratis.pbo
Binary file not shown.
Binary file modified Server_Install_Pack/mpmissions/epoch.Takistan.pbo
Binary file not shown.
Binary file modified Server_Install_Pack/mpmissions/epoch.Tanoa.pbo
Binary file not shown.
Binary file modified Server_Install_Pack/mpmissions/epoch.VR.pbo
Binary file not shown.
Binary file modified Server_Install_Pack/mpmissions/epoch.Woodland_ACR.pbo
Binary file not shown.
Binary file modified Server_Install_Pack/mpmissions/epoch.Zargabad.pbo
Binary file not shown.
Binary file modified Server_Install_Pack/mpmissions/epoch.utes.pbo
Binary file not shown.
16 changes: 12 additions & 4 deletions Sources/epoch_code/compile/functions/EPOCH_fnc_playerDeath.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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;
Expand Down
5 changes: 5 additions & 0 deletions Sources/epoch_config/Configs/CfgEpochClient.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion Sources/epoch_config/build.hpp
Original file line number Diff line number Diff line change
@@ -1 +1 @@
build=562;
build=563;
2 changes: 1 addition & 1 deletion Sources/epoch_server/build.hpp
Original file line number Diff line number Diff line change
@@ -1 +1 @@
build=562;
build=563;
2 changes: 1 addition & 1 deletion Sources/epoch_server_core/build.hpp
Original file line number Diff line number Diff line change
@@ -1 +1 @@
build=562;
build=563;
2 changes: 1 addition & 1 deletion Sources/epoch_server_settings/build.hpp
Original file line number Diff line number Diff line change
@@ -1 +1 @@
build=562;
build=563;
2 changes: 1 addition & 1 deletion build.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
562
563

0 comments on commit 67033bf

Please sign in to comment.