- added DavidPH's ProjectileKickback submission.
SVN r3228 (trunk)
This commit is contained in:
parent
74ad869e62
commit
61dfb608f4
4 changed files with 20 additions and 3 deletions
|
|
@ -1029,7 +1029,9 @@ void P_DamageMobj (AActor *target, AActor *inflictor, AActor *source, int damage
|
|||
{
|
||||
int kickback;
|
||||
|
||||
if (!source || !source->player || !source->player->ReadyWeapon)
|
||||
if (inflictor && inflictor->projectileKickback)
|
||||
kickback = inflictor->projectileKickback;
|
||||
else if (!source || !source->player || !source->player->ReadyWeapon)
|
||||
kickback = gameinfo.defKickback;
|
||||
else
|
||||
kickback = source->player->ReadyWeapon->Kickback;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue