TF2-DMB / CBaseNPC

Provides a friendly interface for plugins to use in order to create custom NPCs on the game Team Fortress 2
36 stars 5 forks source link

Allow overriding of game factories + blank nextbot interface #22

Closed Kenzzer closed 2 years ago

Kenzzer commented 2 years ago

For a while now, it has been desired by plugin makers to override game's factories. This PR addresses that request, as well as introducing the ability to attach a blank INextBot interface to any entity. Furthermore, plugin makers will now be able to use SetInitialActionFactory on their factories, in order to override the intention interface of any NextBot entities.

And because a blank INextBot interface is now exposed, plugin makers will most certainly need a way to propagate source events, to the NextBot's event capsule. Therefore most of the event natives for INextBotEventResponder have been added for plugins to use.