summaryrefslogtreecommitdiff
path: root/src/game/g_combat.c
diff options
context:
space:
mode:
author/dev/humancontroller <devhc@example.com>2015-02-02 17:06:50 +0100
committer/dev/humancontroller <devhc@example.com>2017-03-09 13:51:14 +0100
commit572719119e7f727d8eb91ed50fec15b71ea4117d (patch)
treeeb3c7b779ca639a12a01729dc10b2474a9252d3a /src/game/g_combat.c
parente52255589bcd37a841cf275e13ae1abf427c7c79 (diff)
drop the use of the origin and angles fields of entityState_t in the game module
clear the r.currentAngles field for brushmodel-related entities using the ''angle'' spawn var
Diffstat (limited to 'src/game/g_combat.c')
-rw-r--r--src/game/g_combat.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/game/g_combat.c b/src/game/g_combat.c
index 0b61ce59..29a1af3d 100644
--- a/src/game/g_combat.c
+++ b/src/game/g_combat.c
@@ -339,7 +339,7 @@ void player_die( gentity_t *self, gentity_t *inflictor, gentity_t *attacker, int
ScoreboardMessage( g_entities + i );
}
- VectorCopy( self->s.origin, self->client->pers.lastDeathLocation );
+ VectorCopy( self->r.currentOrigin, self->client->pers.lastDeathLocation );
self->takedamage = qfalse; // can still be gibbed
@@ -349,13 +349,11 @@ void player_die( gentity_t *self, gentity_t *inflictor, gentity_t *attacker, int
else
self->r.contents = CONTENTS_CORPSE;
- self->s.angles[ PITCH ] = 0;
- self->s.angles[ ROLL ] = 0;
- self->s.angles[ YAW ] = self->s.apos.trBase[ YAW ];
+ self->client->ps.viewangles[ PITCH ] = 0; // zomg
+ self->client->ps.viewangles[ YAW ] = self->s.apos.trBase[ YAW ];
+ self->client->ps.viewangles[ ROLL ] = 0;
LookAtKiller( self, inflictor, attacker );
- VectorCopy( self->s.angles, self->client->ps.viewangles );
-
self->s.loopSound = 0;
self->r.maxs[ 2 ] = -8;