Raised This Month: $ Target: $400
 0% 

Make Wall Block Shooting?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Wilson [29th ID]
Veteran Member
Join Date: Nov 2005
Location: London
Old 11-22-2006 , 02:46   Make Wall Block Shooting?
Reply With Quote #1

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?
__________________

Day of Defeat AMXX Community

FakeMeta Research . Voice Proximity . Advanced Deploy . Technician
Wilson [29th ID] is offline
Send a message via ICQ to Wilson [29th ID] Send a message via AIM to Wilson [29th ID] Send a message via MSN to Wilson [29th ID] Send a message via Yahoo to Wilson [29th ID]
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:01.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode