From 04cbc2ce0ff4cec34c4b33bc5c79f8d2dbef19f5 Mon Sep 17 00:00:00 2001 From: terencehill Date: Sun, 22 Dec 2019 00:26:12 +0100 Subject: [PATCH] Add a comment about tracewalk underwater --- qcsrc/server/bot/default/navigation.qc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qcsrc/server/bot/default/navigation.qc b/qcsrc/server/bot/default/navigation.qc index 01352d0e4..5457211d8 100644 --- a/qcsrc/server/bot/default/navigation.qc +++ b/qcsrc/server/bot/default/navigation.qc @@ -239,6 +239,9 @@ bool navigation_checkladders(entity e, vector org, vector m1, vector m2, vector return false; } +// Unfortuntely we can't use trace_inwater since it doesn't hold the fraction of the total +// distance that was traveled before impact as the description in the engine (collision.h) says. +// It would have helped to speed up tracewalk underwater vector resurface_limited(vector org, float lim, vector m1) { if (WETFEET(org + eZ * (lim - org.z))) -- 2.39.2