SERVER: Fix Heads always gibbing without Insta-Kill

This commit is contained in:
cypress 2024-05-16 20:37:01 -07:00
parent 44e45cef95
commit f0ced77928
1 changed files with 12 additions and 1 deletions

View File

@ -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
}
}