The CSwarmCSDE entity is solely being used to create a func_breakable entity
(pointed to by breakable in this example) and then removes itself. The
CSwarmCSDE entity is NOT the one that is supposed to be breakable. I'm not
sure why Jeff is doing things this way (rather than just spawning a
this may sound silly, but why not just link the func_breakable to the bomb
site in the first place?
Mainly because there may be some settings in this entity that may cause strange
behaviour, this makes sure I have to deliberately set everything. It's just a way
of keeping things as clean as
I see two potential problems with the way you're spawning the entity. First,
you're using GetClassPtr() to create an instance of the CBreakable class. Most
other places in the SDK where an entity is created use the
CREATE_NAMED_ENTITY() macro to instantiate the class. Second, you should call
3 matches
Mail list logo