From dcb191f4f4b7da94f6e4489c80966f5f8f9f8d4b Mon Sep 17 00:00:00 2001 From: Willian Henrique Date: Thu, 29 Aug 2024 20:24:04 +0100 Subject: Improve L4D warp testing and add visualisation sst_l4d_testwarp will now unstick the player unless "staystuck" is specifed as an argument. Additionally, sst_l4d_previewwarp is added to show the positions checked by the unstuck logic as well as the line-of-sight traces performed. Committer's note: the actual box-drawing logic was essentially rewritten by me since I realised the order of drawing didn't matter at all. All the code-digging logic is more-or-less still what bill wrote, though. So, you could say we have joint authorship of this, I suppose. Not that that's a huge deal, but if anyone's ever curious or if it ever legally matters for some reason then, well, there you go. --- gamedata/engine.txt | 6 ++++++ gamedata/entprops.txt | 2 ++ 2 files changed, 8 insertions(+) (limited to 'gamedata') diff --git a/gamedata/engine.txt b/gamedata/engine.txt index d0d57ae..4be0c96 100644 --- a/gamedata/engine.txt +++ b/gamedata/engine.txt @@ -162,4 +162,10 @@ vtidx_HostFrameTime 35 L4D2 38 Portal2 39 +# IVDebugOverlay +vtidx_AddLineOverlay 3 +vtidx_AddBoxOverlay2 + L4D1 19 + L4D2 20 + # vi: sw=4 ts=4 noet tw=80 cc=80 diff --git a/gamedata/entprops.txt b/gamedata/entprops.txt index 5d6bd7c..b3029ca 100644 --- a/gamedata/entprops.txt +++ b/gamedata/entprops.txt @@ -4,5 +4,7 @@ off_entpos CBaseEntity/m_vecOrigin # look angles, currently just for L4D1/2, can add other games as needed off_eyeang CCSPlayer/m_angEyeAngles[0] +off_teamnum CBaseEntity/m_iTeamNum +off_collision CBaseEntity/m_Collision # vi: sw=4 ts=4 noet tw=80 cc=80 -- cgit v1.2.3