From e670b4ed55c459a21090bd0178ceaaaf12d87989 Mon Sep 17 00:00:00 2001 From: hybrid Date: Thu, 11 Jun 2026 19:58:31 +0300 Subject: init --- Client/Client_Killed.sqf | 55 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 Client/Client_Killed.sqf (limited to 'Client/Client_Killed.sqf') diff --git a/Client/Client_Killed.sqf b/Client/Client_Killed.sqf new file mode 100644 index 0000000..ac723b7 --- /dev/null +++ b/Client/Client_Killed.sqf @@ -0,0 +1,55 @@ +/* Player KEH. */ + + +private ["_isInertObject","_killer","_isTKFriendly"]; +if (playerDead) exitWith {}; +playerDead = true; + +{player removeAction 0} forEach [0,1,2,3,4,5]; +if !(isNil "HQAction") then {player removeAction HQAction}; +player removeAction Options; + +deathLocation = getPos player; + +if (mysql) then { + Private ['_isInertObject','_isTKFriendly','_killer']; + _killer = _this select 1; + _isTKFriendly = if (side _killer == sideJoined && !isPlayer(_killer)) then {true} else {false}; + _isInertObject = false; + if (vehicle _killer == _killer) then { + _isInertObject = if (count(crew _killer) == 0) then {true} else {false}; + }; + + if (_this select 0 == _killer || _isTKFriendly || _isInertObject) then { + WF_Logic setVariable ["WF_MYSQL_CLIENT",(WF_Logic getVariable "WF_MYSQL_CLIENT") + [Format ["MYSQLDATA_WFBE_Update%1%2suicide%3",getPlayerUID(player),name player,worldName]],true]; + }; +}; + +closeDialog 0; + +sleep 0.11; + +"dynamicBlur" ppEffectEnable true; +"dynamicBlur" ppEffectAdjust [1]; +"dynamicBlur" ppEffectCommit 0.1; +"colorCorrections" ppEffectAdjust [1, 1, 0, [0.1, 0.0, 0.0, 1], [1.0, 0.5, 0.5, 0.1], [0.199, 0.587, 0.114, 0.0]]; +"colorCorrections" ppEffectCommit 0.1; +"colorCorrections" ppEffectEnable true; +"colorCorrections" ppEffectAdjust [1, 1, 0, [0.1, 0.0, 0.0, 0.5], [1.0, 0.5, 0.5, 0.1], [0.199, 0.587, 0.114, 0.0]]; +"colorCorrections" ppEffectCommit 0.3; + +DeathCamera = "camera" camCreate deathLocation; +DeathCamera camSetDir 0; +DeathCamera camSetFov 1; +DeathCamera cameraEffect["Internal","TOP"]; + +DeathCamera camSetTarget deathLocation; +DeathCamera camSetPos [deathLocation select 0,(deathLocation select 1) + 2,5]; +DeathCamera camCommit 0; + +waitUntil {camCommitted DeathCamera}; + +DeathCamera camSetPos [deathLocation select 0,(deathLocation select 1) + 2,30]; +DeathCamera camCommit ('WFBE_RESPAWNDELAY' Call GetNamespace)+2; + +createDialog "RscMenu_Respawn"; \ No newline at end of file -- cgit v1.3.1