Add GetSelfObituary
This commit is contained in:
parent
b54da619ad
commit
f1e6445e82
3 changed files with 33 additions and 1 deletions
|
|
@ -244,7 +244,16 @@ void ClientObituary (AActor *self, AActor *inflictor, AActor *attacker, int dmgf
|
|||
{
|
||||
if (attacker == self)
|
||||
{
|
||||
message = "$OB_KILLEDSELF";
|
||||
messagename = "$OB_KILLEDSELF";
|
||||
|
||||
IFVIRTUALPTR(self, AActor, GetSelfObituary)
|
||||
{
|
||||
VMValue params[] = { self, inflictor, mod.GetIndex() };
|
||||
VMReturn rett(&ret);
|
||||
VMCall(func, params, countof(params), &rett, 1);
|
||||
if (ret.IsNotEmpty()) message = ret.GetChars();
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue