From c5b9c12575459dd696c315b623249c250c650de2 Mon Sep 17 00:00:00 2001 From: ChocoTaco1 Date: Thu, 30 Apr 2020 10:44:24 -0400 Subject: [PATCH] Added Snipe Ban check (LCTF) Dont allow damage if snipe is banned --- Classic/scripts/SCtFGame.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Classic/scripts/SCtFGame.cs b/Classic/scripts/SCtFGame.cs index 1354790..4360194 100644 --- a/Classic/scripts/SCtFGame.cs +++ b/Classic/scripts/SCtFGame.cs @@ -385,6 +385,9 @@ package SCtFGame %damageScale = %data.damageScale[%damageType]; if(%damageScale !$= "") %amount *= %damageScale; + + if(%damageType == $DamageType::Laser && $InvBanList[SctF, "SniperRifle"]) //banned + return; %flash = %targetObject.getDamageFlash() + (%amount * 2); if (%flash > 0.75)