I'm trying to create a wall that prevents shooting through it. Here's what I have so far, but you can still shoot through it:
Code:
public create_walls() {
new ent = create_entity("info_target")
entity_set_origin(ent, g_wallorigin[0])
entity_set_string(ent,EV_SZ_classname,"fire_blocker");
entity_set_model(ent, "models/null.mdl")
entity_set_int(ent, EV_INT_solid, SOLID_BBOX)
entity_set_float(ent,EV_FL_takedamage,0.0)
entity_set_size(ent,g_wallsize[0][0],g_wallsize[0][1])
drop_to_floor(ent)
}
// g_wallsize[0] is {-900.0, -100.0, -500.0}, {900.0, 100.0, 500.0}
It creates the wall and is the right size, but I can still shoot right through it. Originally I had the Y value as -32.0 and 32.0 (thickness) but it was the same thing so I tried increasing it and no luck.
Anyone know what else I have to do to prevent shooting through it?
__________________