summaryrefslogtreecommitdiffstats
path: root/Client/Client_Killed.sqf
diff options
context:
space:
mode:
authorhybrid <hybrid@hybridlabs.pro>2026-06-11 19:38:09 +0300
committerhybrid <hybrid@hybridlabs.pro>2026-06-11 19:38:09 +0300
commita3a91d4f45b22fd487ecbc954ad979be5d03efdd (patch)
treea554ab159a347dcd6c00ca1c7c26c1ec3ac0a6bd /Client/Client_Killed.sqf
downloada2wf_chernarus-a3a91d4f45b22fd487ecbc954ad979be5d03efdd.tar.gz
a2wf_chernarus-a3a91d4f45b22fd487ecbc954ad979be5d03efdd.tar.bz2
a2wf_chernarus-a3a91d4f45b22fd487ecbc954ad979be5d03efdd.zip
Diffstat (limited to 'Client/Client_Killed.sqf')
-rw-r--r--Client/Client_Killed.sqf55
1 files changed, 55 insertions, 0 deletions
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