Hey i have one entity in my map. Its kinda like monster without moving etc. It is solid bsp (cause i wana shoot trought it). and make it so monsters can hurt it. Problem is. They zombies do walk to them. But not attack. (they do attack if i set it solid_bbox) but then i cant shoot trought open parts of model.
any fix?
make monster attack a entity
mmm, this was bumped but i'll go anyway:
the reason monsters can't attack a solid_bsp is because of the way the engine and qc work.
monsters use the target's .origin to determine if they can 'see' it, and also if they have a clear shot to hit it.
the problems happens because solid_bsp entities always start with an origin of '0 0 0', ie, the center of the map.
you would have to modify the zombie targetting code so that, if it detects self.enemy is a solid_bsp, to, instead of using .origin, use the middle point between .absmin and .absmax, by doing centerPoint = (self.enemy.absmin + self.enemy.absmax) * 0.5;
the reason monsters can't attack a solid_bsp is because of the way the engine and qc work.
monsters use the target's .origin to determine if they can 'see' it, and also if they have a clear shot to hit it.
the problems happens because solid_bsp entities always start with an origin of '0 0 0', ie, the center of the map.
you would have to modify the zombie targetting code so that, if it detects self.enemy is a solid_bsp, to, instead of using .origin, use the middle point between .absmin and .absmax, by doing centerPoint = (self.enemy.absmin + self.enemy.absmax) * 0.5;