Re: [hlcoders] Visible but no collision breakable

2002-04-17 Thread Jeff Fearn
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

Re: [hlcoders] Visible but no collision breakable

2002-04-17 Thread Jeff Fearn
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

Re: [hlcoders] Visible but no collision breakable

2002-04-17 Thread Reedbeta
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