| 4466 | } |
| 4467 | |
| 4468 | S32 zEntPlayer_Damage(xBase* src, U32 damage, const xVec3* knockback) |
| 4469 | { |
| 4470 | S32 newDamage = zEntPlayer_Damage(src, damage); |
| 4471 | |
| 4472 | if (!newDamage) |
| 4473 | { |
| 4474 | return false; |
| 4475 | } |
| 4476 | |
| 4477 | if (knockback) |
| 4478 | { |
| 4479 | globals.player.ent.frame->vel.x = knockback->x; |
| 4480 | globals.player.ent.frame->vel.y = knockback->y; |
| 4481 | globals.player.ent.frame->vel.z = knockback->z; |
| 4482 | } |
| 4483 | |
| 4484 | return true; |
| 4485 | } |
| 4486 | |
| 4487 | S32 zEntPlayer_DamageNPCKnockBack(xBase* src, U32 damage, xVec3* npcPos) |
| 4488 | { |
no test coverage detected