1
0
mirror of https://github.com/XLabsProject/iw4x-rawfiles.git synced 2023-08-02 15:02:11 +02:00

fix mp_firingrange

This commit is contained in:
Diavolo 2023-01-17 15:56:16 +01:00
parent 3d1f7ff3f2
commit 8b8db22180
No known key found for this signature in database
GPG Key ID: FA77F074E98D98A5
2 changed files with 6 additions and 48 deletions

View File

@ -934,38 +934,6 @@
"script_specialopsname" "mp_firingrange"
"spawnflags" "1"
}
// open the metal door
/*{
"model" "*23"
"origin" "993 -30 33"
"classname" "script_brushmodel"
"script_specialopsname" "coop_survival_mp_firingrange"
}
{
"model" "*24"
"origin" "1033 -11 33"
"classname" "script_brushmodel"
"script_specialopsname" "mp_firingrange"
}
{
"model" "*25"
"origin" "906 -60 33"
"classname" "script_brushmodel"
"script_specialopsname" "coop_survival_mp_firingrange"
"spawnflags" "1"
}
{
"model" "*26"
"origin" "910 -61 33"
"classname" "script_brushmodel"
"script_noteworthy" "hdrportal"
}
{
"model" "*27"
"origin" "1941 2231 18"
"classname" "script_brushmodel"
"script_noteworthy" "hdrportal"
}*/
{
"gndLt" "5352548a01"
"ltOrigin" "1743 2422.5 -20.2041"
@ -1826,19 +1794,6 @@
"spawnflags" "1"
}
{
"gndLt" "1a16150000"
"ltOrigin" "-420.117 767.141 -32.7392"
"angles" "0 185.2 0"
"classname" "script_model"
"targetname" "destructible_toy"
"model" "dest_propanetanks_02_d0"
"origin" "-420.8 766.8 -48"
"csv_include" "destructible_propane_tanks02"
"destructible_type" "toy_propane_tanks_02"
"sound_csv_include" "destruct_oxygen_tank"
"destructibledef" "dest_propanetanks_02"
}
{
"gndLt" "231f1d0000"
"ltOrigin" "-536.4 933.9 -20.8741"
"angles" "0 13 0"

View File

@ -11,11 +11,14 @@ main()
maps\mp\_explosive_barrels::main();
game[ "attackers" ] = "axis";
game[ "defenders" ] = "allies";
ambientPlay( "ambient_mp_estate" );
maps\mp\_compass::setupMiniMap("compass_map_mp_firingrange");
setdvar ( "r_diffusecolorscale", "1.5");
setDvar ( "r_diffusecolorscale", "1.5");
/****** GET ENTITIES ******/
//TRIGGERS
@ -157,13 +160,13 @@ main()
triggerCheck(target)
{
self endon("game_ended");
while(1)
while (1)
{
self waittill("trigger", player);
//If the target is close enough to the player to cause a possible issue, tell the target to go back the other direction.
distance = Distance(target.origin, self.origin);
if(distance <= 90)
if (distance <= 90)
{
if( isDefined(target.triggeroff))
target.triggeroff = false; //Stop the target.