diff options
author | Willian Henrique <wsimanbrazil@yahoo.com.br> | 2024-08-29 20:24:04 +0100 |
---|---|---|
committer | Michael Smith <mikesmiffy128@gmail.com> | 2024-08-30 12:52:05 +0100 |
commit | dcb191f4f4b7da94f6e4489c80966f5f8f9f8d4b (patch) | |
tree | d3a8736c3d53374d2a9a74cc6a4c25922bc2c001 /gamedata | |
parent | eb41c78c9ff23429f054d9cc280c41917acc2736 (diff) |
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.
Diffstat (limited to 'gamedata')
-rw-r--r-- | gamedata/engine.txt | 6 | ||||
-rw-r--r-- | gamedata/entprops.txt | 2 |
2 files changed, 8 insertions, 0 deletions
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 |