mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
From
e69f8d5306
Moved dog files to the \dog\ folder and pzombie files to the \pzombie\
folder. Also removed some legacy files that are no longer used.
The actions\ and compile\ folders are fully up to date now
38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
private ["_theBomb","_vehicle","_curFuel","_newFuel","_timeLeft","_hasToolbox","_hasCarBomb","_dis","_sfx","_alreadyBombed","_hasCrowbar"];
|
|
|
|
_vehicle = _this select 3;
|
|
_hasToolbox = "ItemToolbox" in items player;
|
|
_hasCrowbar = "ItemCrowbar" in items player;
|
|
_hasCarBomb = "ItemCarBomb" in magazines player;
|
|
_alreadyBombed = _vehicle getVariable["hasBomb",false];
|
|
if(!_hasToolbox or !_hasCrowbar) exitWith {
|
|
cutText [localize "str_bombToolMissing", "PLAIN DOWN"];
|
|
};
|
|
if(!_hasCarBomb) exitWith {
|
|
cutText [localize "str_bombMissing", "PLAIN DOWN"];
|
|
};
|
|
|
|
/*
|
|
if(_vehicle getVariable["hasBomb",false]) exitWith {
|
|
cutText [localize "str_bombAlready", "PLAIN DOWN"];
|
|
};
|
|
*/
|
|
|
|
player removeMagazine "ItemCarBomb";
|
|
|
|
//wait a bit
|
|
player playActionNow "Medic";
|
|
uiSleep 1;
|
|
|
|
//DO Animation
|
|
_dis=20;
|
|
_sfx = "tentunpack";
|
|
[player,_sfx,0,false,_dis] call dayz_zombieSpeak;
|
|
[player,_dis,true,(getPosATL player)] spawn player_alertZombies;
|
|
|
|
//Send the Eventhandler to Server
|
|
if(!_alreadyBombed) then {
|
|
PVDZ_dayzCarBomb = [_vehicle,getPlayerUID player];
|
|
publicVariableServer "PVDZ_dayzCarBomb";
|
|
};
|
|
cutText [localize "str_bombAttached", "PLAIN DOWN"]; |