From a3a7a637811d3e18506d82a72e634cdc978dd2ee Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Mon, 27 May 2024 19:58:46 +0100 Subject: Hide custom crosshair in menus/load screens This isn't perfect logic - the standard crosshair has a lot more cases where it's not displayed - but it's better than nothing and avoids looking stupid as often. In the process, also fix the IConVar virtual table being one entry too small, which somehow wasn't a problem until it led to vtidx_IsInGame here getting clobbered and causing hard-to-debug crashes. Woopsy! --- gamedata/engine.kv | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'gamedata') diff --git a/gamedata/engine.kv b/gamedata/engine.kv index b23bab5..304b218 100644 --- a/gamedata/engine.kv +++ b/gamedata/engine.kv @@ -20,6 +20,19 @@ vtidx_StopRecording 7 vtidx_RecordPacket 11 // VEngineClient +vtidx_IsInGame { + Client015 26 + Client014 { + L4D2 28 + 2013 26 + } + Client013 { + L4D1 27 + default 26 + } + // TODO(compat): unconfirmed, and OE support isn't really a thing yet anyway + //Client012 28 +} vtidx_GetGameDirectory { Client015 35 // current portal 2 Client014 { -- cgit v1.2.3