diff options
author | Tim Angus <tim@ngus.net> | 2001-07-13 00:48:12 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2001-07-13 00:48:12 +0000 |
commit | 3beaebed802a096cccdee04f26526a3b667333ec (patch) | |
tree | 1815684c2ed51872dd3863c58da8965e66cc79e6 /src/game/g_combat.c | |
parent | 2ab1eefdb54b0d4a82001b3d87158d7fa876bdf4 (diff) |
Saved a couple of STAT_ indices. Added the pounce and clawing weapon
Diffstat (limited to 'src/game/g_combat.c')
-rw-r--r-- | src/game/g_combat.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/game/g_combat.c b/src/game/g_combat.c index 605c8364..7788d2e5 100644 --- a/src/game/g_combat.c +++ b/src/game/g_combat.c @@ -175,16 +175,17 @@ void LookAtKiller( gentity_t *self, gentity_t *inflictor, gentity_t *attacker ) vec3_t dir; vec3_t angles; - if ( attacker && attacker != self ) { + if ( attacker && attacker != self ) VectorSubtract (attacker->s.pos.trBase, self->s.pos.trBase, dir); - } else if ( inflictor && inflictor != self ) { + else if ( inflictor && inflictor != self ) VectorSubtract (inflictor->s.pos.trBase, self->s.pos.trBase, dir); - } else { - self->client->ps.stats[STAT_DEAD_YAW] = self->s.angles[YAW]; + else + { + self->client->ps.generic1 = self->s.angles[YAW]; return; } - self->client->ps.stats[STAT_DEAD_YAW] = vectoyaw ( dir ); + self->client->ps.generic1 = vectoyaw ( dir ); angles[YAW] = vectoyaw ( dir ); angles[PITCH] = 0; |