mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-11 23:57:59 -05:00
Fix various syntax issues
This commit is contained in:
@ -4026,11 +4026,11 @@ refill_after_time(primary)
|
|||||||
{
|
{
|
||||||
vars["ammo_clip"] = self getWeaponAmmoClip(vars["alt_primary"]);
|
vars["ammo_clip"] = self getWeaponAmmoClip(vars["alt_primary"]);
|
||||||
vars["ammo_stock"] = self getWeaponAmmoStock(vars["alt_primary"]);
|
vars["ammo_stock"] = self getWeaponAmmoStock(vars["alt_primary"]);
|
||||||
vars["missing_clip"]= weaponClipSize(vars["alt_primary"]) - vars["ammo_clip"];
|
vars["missing_clip"] = weaponClipSize(vars["alt_primary"]) - vars["ammo_clip"];
|
||||||
|
|
||||||
if(vars["missing_clip"]> vars["ammo_stock"])
|
if(vars["missing_clip"] > vars["ammo_stock"])
|
||||||
{
|
{
|
||||||
vars["missing_clip"]= vars["ammo_stock"];
|
vars["missing_clip"] = vars["ammo_stock"];
|
||||||
}
|
}
|
||||||
|
|
||||||
self setWeaponAmmoClip(vars["alt_primary"], vars["ammo_clip"] + vars["missing_clip"]);
|
self setWeaponAmmoClip(vars["alt_primary"], vars["ammo_clip"] + vars["missing_clip"]);
|
||||||
|
@ -1191,7 +1191,7 @@ turn_movefaster_on()
|
|||||||
while ( i < machine.size )
|
while ( i < machine.size )
|
||||||
{
|
{
|
||||||
machine[ i ] setmodel( level.machine_assets[ "marathon" ].on_model );
|
machine[ i ] setmodel( level.machine_assets[ "marathon" ].on_model );
|
||||||
machine[ i ] vibrate( vectorScale( ( 0, -1, 0 ), 100 ), 0,3, 0,4, 3 );
|
machine[ i ] vibrate( vectorScale( ( 0, -1, 0 ), 100 ), 0.3, 0.4, 3 );
|
||||||
machine[ i ] playsound( "zmb_perks_power_on" );
|
machine[ i ] playsound( "zmb_perks_power_on" );
|
||||||
machine[ i ] thread perk_fx( "marathon_light" );
|
machine[ i ] thread perk_fx( "marathon_light" );
|
||||||
machine[ i ] thread play_loop_on_machine();
|
machine[ i ] thread play_loop_on_machine();
|
||||||
|
@ -239,7 +239,7 @@ updatecraftables()
|
|||||||
|
|
||||||
foreach (stub in level._unitriggers.trigger_stubs)
|
foreach (stub in level._unitriggers.trigger_stubs)
|
||||||
{
|
{
|
||||||
if(IsDefined(stub.equipname) && (stub.equipname == "open_table"|| stub.equipname == "tomb_shield_zm" || stub.equipname == "equip_dieseldrone_zm"))
|
if(IsDefined(stub.equipname) && (stub.equipname == "open_table" || stub.equipname == "tomb_shield_zm" || stub.equipname == "equip_dieseldrone_zm"))
|
||||||
{
|
{
|
||||||
stub.cost = stub scripts\zm\_zm_reimagined::get_equipment_cost();
|
stub.cost = stub scripts\zm\_zm_reimagined::get_equipment_cost();
|
||||||
stub.trigger_func = ::craftable_place_think;
|
stub.trigger_func = ::craftable_place_think;
|
||||||
|
@ -954,6 +954,6 @@ transit_zone_init()
|
|||||||
add_adjacent_zone( "zone_pcr", "zone_pow_warehouse", "OnPowDoorWH" );
|
add_adjacent_zone( "zone_pcr", "zone_pow_warehouse", "OnPowDoorWH" );
|
||||||
add_adjacent_zone( "zone_pow", "zone_pow_warehouse", "always_on" );
|
add_adjacent_zone( "zone_pow", "zone_pow_warehouse", "always_on" );
|
||||||
add_adjacent_zone( "zone_tbu", "zone_tow", "vault_opened", 1 );
|
add_adjacent_zone( "zone_tbu", "zone_tow", "vault_opened", 1 );
|
||||||
add_adjacent_zone( "zone_trans_8","zone_pow", "always_on", 1 );
|
add_adjacent_zone( "zone_trans_8", "zone_pow", "always_on", 1 );
|
||||||
add_adjacent_zone( "zone_trans_8", "zone_pow_warehouse", "always_on", 1 );
|
add_adjacent_zone( "zone_trans_8", "zone_pow_warehouse", "always_on", 1 );
|
||||||
}
|
}
|
Reference in New Issue
Block a user