mirror of
https://github.com/nzp-team/quakec.git
synced 2025-02-16 09:01:41 +00:00
SERVER: Fix Heads always gibbing without Insta-Kill
This commit is contained in:
parent
44e45cef95
commit
f0ced77928
1 changed files with 12 additions and 1 deletions
|
@ -724,12 +724,23 @@ void Parse_Damage () = // DO NOT TOUCH
|
|||
body_ent.rarm.hitamount = 0;
|
||||
}
|
||||
|
||||
if (instakill_finished) {
|
||||
if (instakill_finished > time) {
|
||||
if(body_ent.head.deadflag) {
|
||||
makevectors(body_ent.head.owner.angles);
|
||||
where = body_ent.origin + (body_ent.head.view_ofs_x * v_right) + (body_ent.head.view_ofs_y * v_forward) + (body_ent.head.view_ofs_z * v_up);
|
||||
spawn_gibs(where);
|
||||
|
||||
body_ent.head.deadflag = false;
|
||||
body_ent.head.solid = SOLID_NOT;
|
||||
setmodel(body_ent.head,"");
|
||||
body_ent.head.frame = 0;
|
||||
|
||||
#ifndef FTE
|
||||
|
||||
updateLimb (body_ent.head.owner, 0, world);
|
||||
|
||||
#endif // FTE
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue