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 Fire Sale powerup
* Added Mystery Box at Tunnel * Added Mystery Box at Tunnel
* Added Mystery Box at Cornfield * 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 * Any door that requires a Turbine to open is automatically open whenever the power is on
* Increased bus speed by 100% * Increased bus speed by 100%
* Added bus depart timer on HUD when player is on bus * Added bus depart timer on HUD when player is on bus

View File

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