diff options
| author | hybrid <hybrid@hybridlabs.pro> | 2026-06-11 19:54:45 +0300 |
|---|---|---|
| committer | hybrid <hybrid@hybridlabs.pro> | 2026-06-11 19:54:45 +0300 |
| commit | 68d4c9bbd80ed2e6528244569c79676b87295bd1 (patch) | |
| tree | 6efd42fbf6f1281874ae0ff1f8816b01fe0c7153 /Client/Client_Killed.sqf | |
| download | a2wf_takistan-68d4c9bbd80ed2e6528244569c79676b87295bd1.tar.gz a2wf_takistan-68d4c9bbd80ed2e6528244569c79676b87295bd1.tar.bz2 a2wf_takistan-68d4c9bbd80ed2e6528244569c79676b87295bd1.zip | |
init
Diffstat (limited to '')
| -rw-r--r-- | Client/Client_Killed.sqf | 55 |
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 |
