Skip to content

Commit

Permalink
finetune
Browse files Browse the repository at this point in the history
  • Loading branch information
nomisum committed Jun 28, 2021
1 parent 17f287d commit 676dec1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions functions/tankTrapDestruction/fn_hitPartEH.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,16 @@ _tanktrap setVariable ["gradTnT_hitHandler", true];

_tanktrap addEventHandler ["HitPart", {
(_this select 0) params ["_tanktrap", "_shooter", "_projectile", "_position", "_velocity", "_selection", "_ammo", "_vector", "_radius", "_surfaceType", "_isDirect"];

systemChat str _velocity;
systemChat str _isDirect;
// filter locally and broadcast only when necessary
if (_isDirect) then {
// add cooldown after indirect
_ammo params ["", "", "_splashDamage", "", "_type"];


// main gun of tanks
if (_velocity#0 > 1000) then {
if ((abs (_velocity#0)) > 1000 || (abs (_velocity#1)) > 1000) then {
[ASLtoAGL _position] remoteExec ["gradTnT_fnc_explodeFX"];
deleteVehicle _tanktrap;
};
Expand Down

0 comments on commit 676dec1

Please sign in to comment.