- Added OB_MPDEFAULT string for being killed by a player for an unknown reason. This can be
overridden in custom player classes by changing their Obituary property to something else. - ClientObituary() now only looks up the obituary message from the killing player's weapon if the damage type was 'Melee' or 'Hitscan'. - Gave P_GunShot() and A_FireBullets the new damage type 'Hitscan'. - Switched A_Saw and A_CustomPunch to the 'Melee' damage type. SVN r3646 (trunk)
This commit is contained in:
parent
393b2177a9
commit
44932a6c56
8 changed files with 15 additions and 8 deletions
|
|
@ -284,7 +284,7 @@ void ClientObituary (AActor *self, AActor *inflictor, AActor *attacker)
|
|||
{
|
||||
message = inflictor->GetClass()->Meta.GetMetaString (AMETA_Obituary);
|
||||
}
|
||||
if (message == NULL && attacker->player->ReadyWeapon != NULL)
|
||||
if (message == NULL && (mod == NAME_Melee || mod == NAME_Hitscan) && attacker->player->ReadyWeapon != NULL)
|
||||
{
|
||||
message = attacker->player->ReadyWeapon->GetClass()->Meta.GetMetaString (AMETA_Obituary);
|
||||
}
|
||||
|
|
@ -298,6 +298,10 @@ void ClientObituary (AActor *self, AActor *inflictor, AActor *attacker)
|
|||
if (messagename != NULL)
|
||||
message = GStrings(messagename);
|
||||
}
|
||||
if (message == NULL)
|
||||
{
|
||||
message = attacker->GetClass()->Meta.GetMetaString (AMETA_Obituary);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -305,7 +309,7 @@ void ClientObituary (AActor *self, AActor *inflictor, AActor *attacker)
|
|||
|
||||
if (message != NULL && message[0] == '$')
|
||||
{
|
||||
message=GStrings[message+1];
|
||||
message = GStrings[message+1];
|
||||
}
|
||||
|
||||
if (message == NULL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue