mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-18 05:58:19 +00:00
Call TakeDamage on projectile and laser hit (gun, shotgun and laser)
The grenade and hammer already triggered TakeDamage now all weapons hitting a tee call the method again
This commit is contained in:
parent
6ab597a465
commit
f8a4e7dbab
|
@ -94,6 +94,7 @@ bool CLaser::HitCharacter(vec2 From, vec2 To)
|
|||
{
|
||||
pHit->UnFreeze();
|
||||
}
|
||||
pHit->TakeDamage(vec2(0, 0), 0, m_Owner, m_Type);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -177,6 +177,8 @@ void CProjectile::Tick()
|
|||
pChr->Freeze();
|
||||
}
|
||||
}
|
||||
else if(pTargetChr)
|
||||
pTargetChr->TakeDamage(vec2(0, 0), 0, m_Owner, m_Type);
|
||||
|
||||
if(pOwnerChar && !GameLayerClipped(ColPos) &&
|
||||
((m_Type == WEAPON_GRENADE && pOwnerChar->HasTelegunGrenade()) || (m_Type == WEAPON_GUN && pOwnerChar->HasTelegunGun())))
|
||||
|
|
Loading…
Reference in a new issue