I'm creating my own bot plugin for Half-Life 2 Deathmatch based on
https://github.com/ValveSoftware/sou...plugin_bot.cpp
I can add a bot fine and it moves around randomly, and using code from
https://wiki.alliedmods.net/Virtual_...s_(Source_Mods) I can call methods on the underlying CBaseEntity.
The problem is that once I've called a method on the CBaseEntity, trying to call a method on the IBotController causes an access violation.
Any idea why this would be? The virtual offsets code doesn't look like it should modify anything, and I'm using the latest commit of
https://github.com/alliedmodders/hl2sdk/tree/hl2dm