Reenable sounds. Fix compiler bug.

Add debug script. Add mechz locations for nuketown.
This commit is contained in:
JezuzLizard
2024-02-13 03:16:58 -08:00
parent 6a8fdc0e93
commit adfdb35216
8 changed files with 502 additions and 159 deletions

View File

@ -77,7 +77,7 @@
"script_disable_bleeder" "1"
"script_forcespawn" "1"
"count" "9999"
"origin" "0 0 0"
"origin" "75 100 -500"
"guid" "16872E72"
}
{
@ -3592,7 +3592,7 @@
"model" "zombie_wolf"
"export" "4"
"spawnflags" "17"
"origin" "0 0 0"
"origin" "50 100 -500"
"script_noteworthy" "zombie_dog_spawner2"
"guid" "B357A2C8"
}
@ -3681,7 +3681,7 @@
"guid" "E4BDEA76"
}
{
"origin" "32 0 0"
"origin" "50 200 -500"
"script_disable_bleeder" "1"
"script_noteworthy" "zombie_spawner"
"spawnflags" "3"
@ -10936,7 +10936,7 @@
"spawnflags" "3"
"script_noteworthy" "zombie_spawner_beyes"
"script_disable_bleeder" "1"
"origin" "80 0 0"
"origin" "0 200 -500"
"guid" "AFF50659"
}
{
@ -10948,7 +10948,7 @@
"spawnflags" "3"
"script_noteworthy" "zombie_spawner_beyes"
"script_disable_bleeder" "1"
"origin" "56 0 0"
"origin" "25 200 -500"
"guid" "0968B92C"
}
{
@ -11317,7 +11317,7 @@
"guid" "9BCBE462"
}
{
"origin" "-6 194 4088"
"origin" "25 100 -500"
"export" "1"
"model" "veh_t6_dlc_zm_mech"
"classname" "actor_zm_tomb_mech_zombie"
@ -11326,16 +11326,84 @@
"guid" "8115A178"
}
{
"_color" "0.752941 0.752941 0.752941"
"targetname" "culdesac_yellow_zone_spawners"
"script_noteworthy" "mechz_location"
"origin" "--529 34 -46.875"
"origin" "-442 873 -63"
"classname" "script_struct"
"angles" "0 6.83245e-007 0"
"guid" "2AD5B9FE"
"angles" "0 0 0"
}
{
"origin" "-64 0 0"
"targetname" "culdesac_yellow_zone_spawners"
"script_noteworthy" "mechz_location"
"origin" "359 733 -61"
"classname" "script_struct"
"angles" "0 0 0"
}
{
"targetname" "culdesac_yellow_zone_spawners"
"script_noteworthy" "mechz_location"
"origin" "386 18 -44"
"classname" "script_struct"
"angles" "0 0 0"
}
{
"targetname" "culdesac_yellow_zone_spawners"
"script_noteworthy" "mechz_location"
"origin" "177 -220 -49"
"classname" "script_struct"
"angles" "0 0 0"
}
{
"targetname" "culdesac_green_zone_spawners"
"script_noteworthy" "mechz_location"
"origin" "-510 29 -46"
"classname" "script_struct"
"angles" "0 0 0"
}
{
"targetname" "openhouse1_f2_zone_spawners"
"script_noteworthy" "mechz_location"
"origin" "-869 371 88"
"classname" "script_struct"
"angles" "0 0 0"
}
{
"targetname" "openhouse1_backyard_zone_spawners"
"script_noteworthy" "mechz_location"
"origin" "-1227 71 -64"
"classname" "script_struct"
"angles" "0 0 0"
}
{
"targetname" "openhouse1_backyard_zone_spawners"
"script_noteworthy" "mechz_location"
"origin" "-1536 934 -63"
"classname" "script_struct"
"angles" "0 0 0"
}
{
"targetname" "openhouse1_f1_zone_spawners"
"script_noteworthy" "mechz_location"
"origin" "882 381 97"
"classname" "script_struct"
"angles" "0 0 0"
}
{
"targetname" "openhouse2_backyard_zone_spawners"
"script_noteworthy" "mechz_location"
"origin" "1149 732 -57"
"classname" "script_struct"
"angles" "0 0 0"
}
{
"targetname" "openhouse2_backyard_zone_spawners"
"script_noteworthy" "mechz_location"
"origin" "1606 235 -52"
"classname" "script_struct"
"angles" "0 0 0"
}
{
"origin" "0 100 -500"
"script_disable_bleeder" "1"
"script_noteworthy" "screecher_zombie_spawner"
"spawnflags" "3"
@ -11344,7 +11412,6 @@
"classname" "actor_zm_transit_screecher"
"script_forcespawn" "1"
"count" "9999"
"guid" "FC2F54CC"
}
{
"script_string" "find_flesh"
@ -11353,7 +11420,6 @@
"origin" "-239 838 -84"
"script_noteworthy" "riser_location screecher_location"
"classname" "script_struct"
"guid" "6667966D"
}
{
"classname" "actor_zm_alcatraz_brutus"
@ -11362,15 +11428,13 @@
"angles" "0 180 0"
"spawnflags" "3"
"script_noteworthy" "brutus_zombie_spawner"
"origin" "1824 10968 1352"
"guid" "6B553A99"
"origin" "100 100 -500"
}
{
"classname" "script_struct"
"script_noteworthy" "brutus_location"
"targetname" "culdesac_yellow_zone_spawner"
"origin" "367 454 -60"
"guid" "76357ECA"
}
{
"script_forcespawn" "1"
@ -11381,27 +11445,24 @@
"targetname" "female_ghost"
"script_noteworthy" "ghost_zombie_spawner"
"count" "9999"
"origin" "-168 473 16"
"guid" "B6A85D0D"
"origin" "100 50 -500"
}
{
"classname" "actor_zombie_dog"
"model" "zombie_wolf"
"export" "1"
"spawnflags" "17"
"origin" "0 0 0"
"origin" "100 0 -500"
"script_noteworthy" "zombie_dog_spawner"
"guid" "10894F27"
}
{
"classname" "actor_zm_transit_avogadro"
"model" "c_zom_electrician_fb"
"export" "138"
"origin" "120 1 39"
"origin" "100 25 -500"
"count" "9999"
"spawnflags" "3"
"script_disable_bleeder" "1"
"script_forcespawn" "1"
"script_noteworthy" "avogadro_zombie_spawner"
"guid" "EB278249"
}

View File

@ -669,10 +669,10 @@ get_best_mechz_spawn_pos( ignore_used_positions )
for ( i = 0; i < level.zombie_mechz_locations.size; i++ )
{
if ( !ignore_used_positions && ( isdefined( level.zombie_mechz_locations[i].has_been_used ) && level.zombie_mechz_locations[i].has_been_used ) )
if ( level.script == "zm_tomb" && !ignore_used_positions && ( isdefined( level.zombie_mechz_locations[i].has_been_used ) && level.zombie_mechz_locations[i].has_been_used ) )
continue;
if ( ignore_used_positions == 1 && ( isdefined( level.zombie_mechz_locations[i].used_cooldown ) && level.zombie_mechz_locations[i].used_cooldown ) )
if ( level.script == "zm_tomb" && ignore_used_positions == 1 && ( isdefined( level.zombie_mechz_locations[i].used_cooldown ) && level.zombie_mechz_locations[i].used_cooldown ) )
continue;
for ( j = 0; j < players.size; j++ )

View File

@ -224,10 +224,8 @@ mechz_force_behavior( behavior )
get_behavior_orient()
{
/#
behavior_orient = getdvarint( #"_id_2F660A7B" );
return level.players[0].angles + vectorscale( ( 0, 1, 0 ), 180.0 ) + ( 0, behavior_orient, 0 );
#/
}
setup_force_behavior()

View File

@ -14,6 +14,10 @@
init_flamethrower_triggers()
{
if ( level.script != "zm_tomb" )
{
return;
}
flag_wait( "initial_players_connected" );
level.flamethrower_trigger_array = getentarray( "flamethrower_trigger", "script_noteworthy" );
assert( isdefined( level.flamethrower_trigger_array ) && level.flamethrower_trigger_array.size >= 4 );