View Single Post
Author Message
tschumann
Junior Member
Join Date: Jun 2017
Location: Australia
Old 05-10-2019 , 08:00   access violation using IBotController
Reply With Quote #1

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
tschumann is offline