mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-10 15:17:57 -05:00
Encounter: add proper revive obituary icon
Encounter: add separate obituary icon for Ballistic Knife revive
This commit is contained in:
@ -28,6 +28,7 @@ on_spawn(watcher, player)
|
||||
|
||||
if (is_upgraded && isDefined(prey) && isplayer(prey) && prey.team == player.team && prey maps\mp\zombies\_zm_laststand::player_is_in_laststand())
|
||||
{
|
||||
prey.revived_by_weapon = watcher.weapon;
|
||||
prey notify( "remote_revive", player );
|
||||
return;
|
||||
}
|
||||
|
@ -811,7 +811,22 @@ revive_feed(reviver)
|
||||
{
|
||||
if (isDefined(reviver) && reviver != self)
|
||||
{
|
||||
obituary(self, reviver, level.revive_tool, "MOD_IMPACT");
|
||||
weapon = level.revive_tool;
|
||||
|
||||
if (isdefined(self.revived_by_weapon))
|
||||
{
|
||||
weapon = self.revived_by_weapon;
|
||||
self.revived_by_weapon = undefined;
|
||||
}
|
||||
|
||||
// have to put ballistic knife revive icon in a different weapon file
|
||||
// since ballistic knife kill icon already in use
|
||||
if (issubstr(weapon, "knife_ballistic"))
|
||||
{
|
||||
weapon = "zombie_fists_zm";
|
||||
}
|
||||
|
||||
obituary(self, reviver, weapon, "MOD_UNKNOWN");
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user