From 374ae0fbc44db36d9abb6b5b1fe065bc3949e201 Mon Sep 17 00:00:00 2001 From: Matthew Wozniak Date: Thu, 17 Nov 2022 14:34:47 -0300 Subject: Add VGUI HUD overlay drawing feature Currently only supports Orange Box and Left 4 Dead branches. There's quite a large amount of gamedata involved in making this work, and figuring it out for the likes of Portal 2 doesn't seem like a major priority at the moment. --- gamedata/engine.kv | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'gamedata/engine.kv') diff --git a/gamedata/engine.kv b/gamedata/engine.kv index 9501221..b23bab5 100644 --- a/gamedata/engine.kv +++ b/gamedata/engine.kv @@ -63,6 +63,31 @@ sz_edict { L4Dbased 16 // see engineapi.h comment } +// vgui::Panel +vtidx_SetPaintEnabled { + default 67 + Client013 { + L4D1 68 + L4D2 { + default 71 + L4D2_2147plus 72 + } + } + Client014 { + L4D2 70 + } +} +vtidx_Paint { + default 123 + Client014 { L4D2 126 } // 2000 + Client013 { + L4D2 { + default 127 // 2045 + L4D2_2147plus 128 + } + } +} + // SendProp sz_SendProp { // wrapping all these in 005 for right now. @@ -104,6 +129,7 @@ vtidx_GetSpawnCount { } // IEngineVGuiInternal/CEngineVGui +vtidx_GetPanel NVDTOR vtidx_VGuiConnect { // note: the actual name is Connect() but that's too generic default "3 + NVDTOR" L4Dbased { -- cgit v1.2.3