diff --git a/SQF/dayz_code/system/BIS_Effects/fired.sqf b/SQF/dayz_code/system/BIS_Effects/fired.sqf new file mode 100644 index 000000000..4266c6441 --- /dev/null +++ b/SQF/dayz_code/system/BIS_Effects/fired.sqf @@ -0,0 +1,6 @@ +private ["_amm"]; +_amm=_this select 4; +_this call (call compile GetText (configFile >> "CfgAmmo" >> _amm >> "muzzleEffect")); +//Handle combat in vehicle +player setVariable ["inCombat", 1, true]; +player setVariable["combattimeout", diag_tickTime + 30, false]; \ No newline at end of file diff --git a/SQF/dayz_code/system/BIS_Effects/init.sqf b/SQF/dayz_code/system/BIS_Effects/init.sqf index 0bb96f0eb..6971c842f 100644 --- a/SQF/dayz_code/system/BIS_Effects/init.sqf +++ b/SQF/dayz_code/system/BIS_Effects/init.sqf @@ -1,7 +1,7 @@ BIS_Effects_Init = true; //A2 won't overwrite this if var is not nil /* BIS_Effects_* fixes from Dwarden */ diag_log "Res3tting B!S effects..."; -BIS_Effects_EH_Fired=compile preprocessFileLineNumbers "\ca\Data\ParticleEffects\SCRIPTS\fired.sqf"; // Allows tanks to use smoke counter measures +BIS_Effects_EH_Fired=compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\fired.sqf"; // Allows tanks to use smoke counter measures BIS_Effects_EH_Killed = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\killed.sqf"; BIS_Effects_Rifle = {false}; BIS_Effects_Cannon=compile preprocessFileLineNumbers "\ca\Data\ParticleEffects\SCRIPTS\muzzle\cannon.sqf";