1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-08 06:12:17 -05:00

Tranzit: automatically craft Diner hatch

This commit is contained in:
Jbleezy 2024-04-06 01:35:07 -07:00
parent 5aac53334f
commit deee949cbd
2 changed files with 10 additions and 6 deletions

View File

@ -890,7 +890,7 @@
* Added Fire Sale powerup
* Added Mystery Box at Tunnel
* Added Mystery Box at Cornfield
* Power switch and Pack-a-Punch automatically crafted
* Power switch, Pack-a-Punch, and Diner hatch automatically crafted
* Any door that requires a Turbine to open is automatically open whenever the power is on
* Increased bus speed by 100%
* Added bus depart timer on HUD when player is on bus

View File

@ -1917,6 +1917,7 @@ buildbuildables()
buildbuildable("powerswitch", 1);
buildbuildable("pap", 1);
buildbuildable("sq_common", 1);
buildbuildable("dinerhatch", 1, 0);
// power switch is not showing up from forced build
show_powerswitch();
@ -1945,8 +1946,8 @@ buildbuildables()
buildbuildable("springpad_zm");
buildbuildable("headchopper_zm");
buildbuildable("sq_common", 1);
buildbuildable("buried_sq_bt_m_tower", 0, 1, ::onuseplantobject_mtower);
buildbuildable("buried_sq_bt_r_tower", 0, 1, ::onuseplantobject_rtower);
buildbuildable("buried_sq_bt_m_tower", 0, 1, 1, ::onuseplantobject_mtower);
buildbuildable("buried_sq_bt_r_tower", 0, 1, 1, ::onuseplantobject_rtower);
}
}
else
@ -1962,7 +1963,7 @@ buildbuildables()
}
}
buildbuildable(buildable, craft = 0, solo_pool = 0, onuse)
buildbuildable(buildable, craft = 0, remove_pieces = 1, solo_pool = 0, onuse)
{
player = get_players()[0];
@ -2007,9 +2008,12 @@ buildbuildable(buildable, craft = 0, solo_pool = 0, onuse)
}
}
foreach (piece in stub.buildablezone.pieces)
if (remove_pieces)
{
piece maps\mp\zombies\_zm_buildables::piece_unspawn();
foreach (piece in stub.buildablezone.pieces)
{
piece maps\mp\zombies\_zm_buildables::piece_unspawn();
}
}
return;