From 9f7d9e488d8a1b7e4934c1984e89caa4c739dbcb Mon Sep 17 00:00:00 2001 From: Diavolo Date: Sun, 7 Aug 2022 18:59:55 +0200 Subject: [PATCH] fix glass on mp_strike --- iw4x/iw4x_00/maps/mp/mp_strike.gsc | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 iw4x/iw4x_00/maps/mp/mp_strike.gsc diff --git a/iw4x/iw4x_00/maps/mp/mp_strike.gsc b/iw4x/iw4x_00/maps/mp/mp_strike.gsc new file mode 100644 index 0000000..223002d --- /dev/null +++ b/iw4x/iw4x_00/maps/mp/mp_strike.gsc @@ -0,0 +1,30 @@ +main() +{ + maps\mp\mp_strike_precache::main(); + maps\mp\mp_strike_fx::main(); + maps\createart\mp_strike_art::main(); + maps\mp\_load::main(); + + maps\mp\_compass::setupMiniMap( "compass_map_mp_strike" ); + + AmbientPlay( "ambient_mp_strike" ); + + game["attackers"] = "allies"; + game["defenders"] = "axis"; + + SetDvar( "compassmaxrange", "1900" ); + SetDvar( "r_specularcolorscale", "1.86" ); + + thread BreakGlass(); +} + +BreakGlass() +{ + level waittill( "connected" ); + glass = getGlassArray( "brokenglass01" ); + + foreach( piece in glass ) + { + destroyGlass( piece ); + } +}