mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
Reset the clip mask in ThrowHead() to MASK_SHOT
.
xatrix uses MASK_SHOT and it sounds saner than 0.
This commit is contained in:
parent
a0cd32dddb
commit
7004565c72
1 changed files with 6 additions and 4 deletions
|
@ -278,8 +278,9 @@ ThrowHead(edict_t *self, char *gibname, int damage, int type)
|
|||
self->die = gib_die;
|
||||
|
||||
// The entity still has the monsters clipmaks.
|
||||
// Reset it to 0 to be on the save side.
|
||||
self->clipmask = 0;
|
||||
// Reset it to MASK_SHOT to be on the save side.
|
||||
// (MASK_SHOT is used by xatrix)
|
||||
self->clipmask = MASK_SHOT;
|
||||
|
||||
if (type == GIB_ORGANIC)
|
||||
{
|
||||
|
@ -340,8 +341,9 @@ ThrowClientHead(edict_t *self, int damage)
|
|||
self->flags |= FL_NO_KNOCKBACK;
|
||||
|
||||
// The entity still has the monsters clipmaks.
|
||||
// Reset it to 0 to be on the save side.
|
||||
self->clipmask = 0;
|
||||
// Reset it to MASK_SHOT to be on the save side.
|
||||
// (MASK_SHOT is used by xatrix)
|
||||
self->clipmask = MASK_SHOT;
|
||||
|
||||
self->movetype = MOVETYPE_BOUNCE;
|
||||
VelocityForDamage(damage, vd);
|
||||
|
|
Loading…
Reference in a new issue