From 1a5c55eb89c22e8822ec057a3731a6d753f13859 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Sat, 30 Apr 2022 00:23:31 +0100 Subject: Centralise engine access, add Portal FOV changer - A bunch of stuff is now defined in one header, engineapi.h - engineapi.c is responsible for setting up any interfaces/stuff that's used in more than one place - mkgamedata is pretty much rewritten and now supports nested conditionals - gamedata variables no longer have the gamedata_ prefix because it was just annoyingly long all the time - vcall macros are somewhat revamped and support dynamic (gamedata) indices - Portal 1 FOV can be set anywhere from 75-120 using fov_desired - tested in both the main versions currently used by runners - A few typos were also fixed ("intput," "writeable," "indexes") --- gamedata/engine.kv | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'gamedata/engine.kv') diff --git a/gamedata/engine.kv b/gamedata/engine.kv index 81a0545..a43d25c 100644 --- a/gamedata/engine.kv +++ b/gamedata/engine.kv @@ -6,6 +6,16 @@ vtidx_StopRecording 7 vtidx_RecordPacket 11 // VEngineClient +vtidx_GetGameDirectory { + Client015 35 // current portal 2 + Client014 { L4D2 73 } // YES IT'S SEVENTY THREE ALL OF A SUDDEN. + Client013 { + L4Dx 36 // AND THEN THEY CHANGED IT BACK LATER! + default 35 // <- most things have this! + } + Client012 37 // dmomm, ep1, ... +} vtidx_GetEngineBuildNumber { L4D2 99 } +vtidx_PEntityOfEntIndex { OrangeBox 19 } // probably OE too but??? // vi: sw=4 ts=4 noet tw=80 cc=80 -- cgit v1.2.3