mirror of
https://github.com/Resxt/Plutonium-IW5-Scripts.git
synced 2025-04-19 04:32:53 +00:00
disable_nuke_effects 1.1
- Update README - Remove unnecessary script
This commit is contained in:
parent
9a94873ecb
commit
bd0b0072b8
@ -1,6 +1,6 @@
|
|||||||
# Disable Nuke Effects
|
# 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
|
## disable_nuke_effects_vision.gsc
|
||||||
Disables the brown-ish vision applied after a M.O.A.B detonates
|
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
|
## disable_nuke_effects_slowmo.gsc
|
||||||
Disables the slow motion effect happening while a M.O.A.B is detonating
|
Disables the slow motion effect happening while a M.O.A.B is detonating
|
||||||
|
|
||||||
## disable_nuke_effects_vision_and_slowmo.gsc
|
## disable_nuke_effects_emp.gsc
|
||||||
Disables both the vision and the slow motion effects
|
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
|
## 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.
|
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
|
@ -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 );
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user