mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-07 21:59:49 -05:00
Zombie Shield: fix repair not working correctly
This commit is contained in:
parent
219cf0977a
commit
7db8e0b05d
@ -285,6 +285,20 @@ buildable_place_think()
|
||||
player maps\mp\zombies\_zm_score::minus_to_player_score(self.stub.cost);
|
||||
self play_sound_on_ent("purchase");
|
||||
|
||||
if (riotshield_repair)
|
||||
{
|
||||
if (isdefined(player.player_shield_reset_health))
|
||||
{
|
||||
player [[player.player_shield_reset_health]]();
|
||||
}
|
||||
|
||||
self.stub.hint_string = &"ZOMBIE_BOUGHT_RIOT_REPAIR";
|
||||
self sethintstring(self.stub.hint_string);
|
||||
player maps\mp\zombies\_zm_buildables::track_buildables_pickedup(self.stub.weaponname);
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
player maps\mp\zombies\_zm_equipment::equipment_buy(self.stub.weaponname);
|
||||
player giveweapon(self.stub.weaponname);
|
||||
player setweaponammoclip(self.stub.weaponname, 1);
|
||||
@ -307,11 +321,7 @@ buildable_place_think()
|
||||
player setactionslot(1, "weapon", self.stub.weaponname);
|
||||
}
|
||||
|
||||
if (riotshield_repair)
|
||||
{
|
||||
self.stub.hint_string = &"ZOMBIE_BOUGHT_RIOT_REPAIR";
|
||||
}
|
||||
else if (isDefined(level.zombie_buildables[self.stub.equipname].bought))
|
||||
if (isDefined(level.zombie_buildables[self.stub.equipname].bought))
|
||||
{
|
||||
self.stub.hint_string = level.zombie_buildables[self.stub.equipname].bought;
|
||||
}
|
||||
|
@ -517,6 +517,20 @@ craftable_place_think()
|
||||
player maps\mp\zombies\_zm_score::minus_to_player_score(self.stub.cost);
|
||||
self play_sound_on_ent("purchase");
|
||||
|
||||
if (riotshield_repair)
|
||||
{
|
||||
if (isdefined(player.player_shield_reset_health))
|
||||
{
|
||||
player [[player.player_shield_reset_health]]();
|
||||
}
|
||||
|
||||
self.stub.hint_string = &"ZOMBIE_BOUGHT_RIOT_REPAIR";
|
||||
self sethintstring(self.stub.hint_string);
|
||||
player track_craftables_pickedup(self.stub.craftablespawn);
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
player maps\mp\zombies\_zm_equipment::equipment_buy(self.stub.weaponname);
|
||||
player giveweapon(self.stub.weaponname);
|
||||
player setweaponammoclip(self.stub.weaponname, 1);
|
||||
@ -526,9 +540,7 @@ craftable_place_think()
|
||||
else if (self.stub.weaponname != "keys_zm")
|
||||
player setactionslot(1, "weapon", self.stub.weaponname);
|
||||
|
||||
if (riotshield_repair)
|
||||
self.stub.hint_string = &"ZOMBIE_BOUGHT_RIOT_REPAIR";
|
||||
else if (isdefined(level.zombie_craftablestubs[self.stub.equipname].str_taken))
|
||||
if (isdefined(level.zombie_craftablestubs[self.stub.equipname].str_taken))
|
||||
self.stub.hint_string = level.zombie_craftablestubs[self.stub.equipname].str_taken;
|
||||
else
|
||||
self.stub.hint_string = "";
|
||||
|
@ -493,6 +493,20 @@ craftable_place_think()
|
||||
player maps\mp\zombies\_zm_score::minus_to_player_score(self.stub.cost);
|
||||
self play_sound_on_ent("purchase");
|
||||
|
||||
if (riotshield_repair)
|
||||
{
|
||||
if (isdefined(player.player_shield_reset_health))
|
||||
{
|
||||
player [[player.player_shield_reset_health]]();
|
||||
}
|
||||
|
||||
self.stub.hint_string = &"ZOMBIE_BOUGHT_RIOT_REPAIR";
|
||||
self sethintstring(self.stub.hint_string);
|
||||
player track_craftables_pickedup(self.stub.craftablespawn);
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
player maps\mp\zombies\_zm_equipment::equipment_buy(self.stub.weaponname);
|
||||
player giveweapon(self.stub.weaponname);
|
||||
player setweaponammoclip(self.stub.weaponname, 1);
|
||||
@ -502,9 +516,7 @@ craftable_place_think()
|
||||
else if (self.stub.weaponname != "keys_zm")
|
||||
player setactionslot(1, "weapon", self.stub.weaponname);
|
||||
|
||||
if (riotshield_repair)
|
||||
self.stub.hint_string = &"ZOMBIE_BOUGHT_RIOT_REPAIR";
|
||||
else if (isdefined(level.zombie_craftablestubs[self.stub.equipname].str_taken))
|
||||
if (isdefined(level.zombie_craftablestubs[self.stub.equipname].str_taken))
|
||||
self.stub.hint_string = level.zombie_craftablestubs[self.stub.equipname].str_taken;
|
||||
else
|
||||
self.stub.hint_string = "";
|
||||
|
Loading…
x
Reference in New Issue
Block a user