This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

access violation using IBotController


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:33.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode