From a6e60842ae96b559c9d4250a9f94f1f7ff7234c1 Mon Sep 17 00:00:00 2001 From: BotoX Date: Sat, 2 Nov 2019 00:50:14 +0100 Subject: [PATCH] ztele: reset velocity --- src/zr/ztele/ztele.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/zr/ztele/ztele.inc b/src/zr/ztele/ztele.inc index 4310c2a..70068b6 100644 --- a/src/zr/ztele/ztele.inc +++ b/src/zr/ztele/ztele.inc @@ -243,15 +243,16 @@ bool ZTeleClient(int client, bool force = false) // TODO: This function is called externally, move to interface. void ZTele_TeleportClient(int client) { + float resetSpeed[3] = {0.0, 0.0, 0.0}; // Teleport client. if (ZTele_IsRandomSpawnEnabled() && g_iZTeleSpawnPointsCount) { int select = Math_GetRandomInt(0, g_iZTeleSpawnPointsCount - 1); - TeleportEntity(client, g_vecZTeleSpawnPoints[select][0], g_vecZTeleSpawnPoints[select][1], NULL_VECTOR); + TeleportEntity(client, g_vecZTeleSpawnPoints[select][0], g_vecZTeleSpawnPoints[select][1], resetSpeed); } else { - TeleportEntity(client, g_vecZTeleSpawn[client][0], g_vecZTeleSpawn[client][1], NULL_VECTOR); + TeleportEntity(client, g_vecZTeleSpawn[client][0], g_vecZTeleSpawn[client][1], resetSpeed); } }