summaryrefslogtreecommitdiff
path: root/src/game/g_cmds.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2003-01-27 02:35:06 +0000
committerTim Angus <tim@ngus.net>2003-01-27 02:35:06 +0000
commit03986b8845ba59376ff6b315be0ebf47ee7244d8 (patch)
treed231879bdd2077a026fa47d011cbab8cecc848bf /src/game/g_cmds.c
parentf3e7e55ef5b6e2502db82d2f9f658bdb904dca85 (diff)
* Fixed a stupid HUD bug
* Changes to viewheights, BBOXes and FOVs * Added some code to nudge the spawn origin of an infest spawning alien * Infesting view now traces to find position * Some changes to weapon ranges
Diffstat (limited to 'src/game/g_cmds.c')
-rw-r--r--src/game/g_cmds.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c
index 32c3c6ee..ed269e34 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -1031,7 +1031,11 @@ void Cmd_Class_f( gentity_t *ent )
ent->client->infestBody = victim;
VectorCopy( victim->s.pos.trBase, infestOrigin );
- infestOrigin[ 2 ] += 128;
+ infestOrigin[ 2 ] += 128.0f;
+ trap_Trace( &tr, victim->s.pos.trBase, ent->r.mins, ent->r.maxs,
+ infestOrigin, ent->s.number, MASK_SHOT );
+ VectorCopy( tr.endpos, infestOrigin );
+ infestOrigin[ 2 ] -= 16.0f;
VectorCopy( victim->s.angles, infestAngles );