I am trying to get the origin of brush based entities, specifically a
func_bomb_target. pev-origin is all 0, pev-absmin and absmax. VecBModelOrigin
returns -1, -1, -1.
I am trying to support CS de type maps, as they fit my mod well. I already have
HLDM working properly :}
I am using
It sounds like the func_breakable you are spawning is setting the size of the
entity and thus messing up the VecBModelOrigin() calculations.
Do you have UTIL_SetSize(), UTIL_SetOrigin() or something similar in your
func_breakable code somewhere?
The min and max values for the brush model
It does not get that far. The func_breakable gets created in PlaceDTO(),
which will no becalled unless the origin can be determined. This is the spawn
function for the entity I use to handle the func_bomb_target:
LINK_ENTITY_TO_CLASS(func_bomb_target, CSwarmCSDE);
void CSwarmCSDE::Spawn()
Now I am getting an access error, strange thing is the only thing in the
stack window is SW! 043442f7(). I don't get this when using swarm or hldm
maps...I think that stack windows is hiding something.
Jeff.
Perhaps there is an entity in the Counter-Strike maps that also exists in HLDM
but
4 matches
Mail list logo