From bd0b0072b876bf5267e8bafd932ce32817d30388 Mon Sep 17 00:00:00 2001 From: Resxt <55228336+Resxt@users.noreply.github.com> Date: Fri, 18 Feb 2022 23:15:01 +0100 Subject: [PATCH] disable_nuke_effects 1.1 - Update README - Remove unnecessary script --- disable_nuke_effects/README.md | 11 +++--- ...disable_nuke_effects_vision_and_slowmo.gsc | 36 ------------------- 2 files changed, 7 insertions(+), 40 deletions(-) delete mode 100644 disable_nuke_effects/disable_nuke_effects_vision_and_slowmo.gsc diff --git a/disable_nuke_effects/README.md b/disable_nuke_effects/README.md index a8da968..abee191 100644 --- a/disable_nuke_effects/README.md +++ b/disable_nuke_effects/README.md @@ -1,6 +1,6 @@ # Disable Nuke Effects -Only put one script at a time otherwise they might override each other and cause undesired behavior. +Using several `disable_nuke_effects` scripts at the same time hasn't been tested but should work as long as they don't replace the same functions. ## disable_nuke_effects_vision.gsc Disables the brown-ish vision applied after a M.O.A.B detonates @@ -8,8 +8,11 @@ Disables the brown-ish vision applied after a M.O.A.B detonates ## disable_nuke_effects_slowmo.gsc Disables the slow motion effect happening while a M.O.A.B is detonating -## disable_nuke_effects_vision_and_slowmo.gsc -Disables both the vision and the slow motion effects +## disable_nuke_effects_emp.gsc +Disables the EMP effect applied to the losing team for 60 seconds after an enemy M.O.A.B has been detonated + +## disable_nuke_effects_all_but_fog.gsc +Disables the 3 effects listed above while keeping the fog/smoke that appears in the map for a few second after a M.O.A.B detonates ## disable_nuke_effects_all.gsc -Disables the vision and the slow motion and remove the fog/smoke appearing on the map for a few seconds after the M.O.A.B detonation. This removes all visual effects. The M.O.A.B will just kill every enemies without any added visual effect. \ No newline at end of file +Disables all the effects listed above. When a M.O.A.B detonates it will only kill all the players on the other team without any added visual effect \ No newline at end of file diff --git a/disable_nuke_effects/disable_nuke_effects_vision_and_slowmo.gsc b/disable_nuke_effects/disable_nuke_effects_vision_and_slowmo.gsc deleted file mode 100644 index 3124a26..0000000 --- a/disable_nuke_effects/disable_nuke_effects_vision_and_slowmo.gsc +++ /dev/null @@ -1,36 +0,0 @@ -#include maps\mp\killstreaks\_nuke; - -main() -{ - replacefunc(maps\mp\killstreaks\_nuke::nukeVision, ::disableNukeVision); - replacefunc(maps\mp\killstreaks\_nuke::nukeSlowMo, ::disableNukeSlowMo); - replacefunc(maps\mp\killstreaks\_nuke::nukeEffects, ::disableNukeEffects); -} - -disableNukeVision() -{ - -} - -disableNukeSlowMo() -{ - -} - -disableNukeEffects() -{ - level endon( "nuke_cancelled" ); - setdvar( "ui_bomb_timer", 0 ); - - foreach ( var_1 in level.players ) - { - var_2 = anglestoforward( var_1.angles ); - var_2 = ( var_2[0], var_2[1], 0 ); - var_2 = vectornormalize( var_2 ); - var_3 = 5000; - var_4 = spawn( "script_model", var_1.origin + var_2 * var_3 ); - var_4 setmodel( "tag_origin" ); - var_4.angles = ( 0, var_1.angles[1] + 180, 90 ); - var_4 thread nukeEffect( var_1 ); - } -} \ No newline at end of file