mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-14 00:41:03 +00:00
Small fix of skin replacement
This commit is contained in:
parent
672266241c
commit
76e4017dea
1 changed files with 8 additions and 5 deletions
|
@ -283,7 +283,7 @@ mmove_t gunner_move_pain1 = {FRAME_pain101, FRAME_pain118, gunner_frames_pain1,
|
||||||
void gunner_pain (edict_t *self, edict_t *other, float kick, int damage)
|
void gunner_pain (edict_t *self, edict_t *other, float kick, int damage)
|
||||||
{
|
{
|
||||||
if (self->health < (self->max_health / 2))
|
if (self->health < (self->max_health / 2))
|
||||||
self->s.skinnum = 1;
|
self->s.skinnum |= 1;
|
||||||
|
|
||||||
if (level.time < self->pain_debounce_time)
|
if (level.time < self->pain_debounce_time)
|
||||||
return;
|
return;
|
||||||
|
@ -336,6 +336,9 @@ void gunner_die (edict_t *self, edict_t *inflictor, edict_t *attacker, int damag
|
||||||
{
|
{
|
||||||
int n;
|
int n;
|
||||||
|
|
||||||
|
self->s.skinnum |= 1;
|
||||||
|
self->monsterinfo.power_armor_type = POWER_ARMOR_NONE;
|
||||||
|
|
||||||
// check for gib
|
// check for gib
|
||||||
if (self->health <= self->gib_health)
|
if (self->health <= self->gib_health)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue