summaryrefslogtreecommitdiff
path: root/src/game/g_local.h
diff options
context:
space:
mode:
author/dev/humancontroller <devhc@example.com>2014-07-13 16:53:10 +0200
committer/dev/humancontroller <devhc@example.com>2017-03-09 13:51:10 +0100
commitec12a6fcaa2474eaea1188b023e15d4ca587b8c8 (patch)
tree9c6114e840f17603703972604d81f824d19c3e7d /src/game/g_local.h
parent2f121b29cfb9eeb0674b40021b730ed3d2b67709 (diff)
change setviewpos to work as it sounds like
setviewpos now precisely puts the player's view origin to the specified coordinates, and does not spit the player forward; it now optionally takes yaw and pitch arguments for this, setviewpos takes ps->viewheight into account when teleporting the player; TeleportPlayer() now takes an additional float argument specifying the spitting speed of the player; currently, TeleportPlayer() is called with a non-0 argument only from the setviewpos function
Diffstat (limited to 'src/game/g_local.h')
-rw-r--r--src/game/g_local.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/g_local.h b/src/game/g_local.h
index 255359f5..2f6fa6da 100644
--- a/src/game/g_local.h
+++ b/src/game/g_local.h
@@ -911,7 +911,7 @@ void G_Checktrigger_stages( team_t team, stage_t stage );
//
// g_misc.c
//
-void TeleportPlayer( gentity_t *player, vec3_t origin, vec3_t angles );
+void TeleportPlayer( gentity_t *player, vec3_t origin, vec3_t angles, float speed );
//
// g_weapon.c