View Single Post
psychonic

BAFFLED
Join Date: May 2008
Old 06-11-2012 , 18:48   Re: Access SourceMod core?
Reply With Quote #8

Quote:
Originally Posted by ajr1234 View Post
Wonderful. Just what I needed.

I just realized something. You're the person that took SDK Hooks from 1.0 to 2.1. Thanks a lot for working so hard on that I wanted to let you know that your work doesn't go unappreciated.

By the way, if I want to retrieve the model name (if it exists) of every entity that is loaded during level initialization, I use IEntityFactoryDictionary with Bintools and create a hook, right?
Entities won't typically have a model set until right before or during Spawn. To get the model on every one created, you would need to hook both creation and spawn. For creation, you an use the IEntityFactoryDictionary method used on old SDK Hooks versions or do what the newer builds do and add yourself as an IEntityListener. For spawn, just add a vhook on the entity's Spawn function.
psychonic is offline