Raised This Month: $ Target: $400
 0% 

Make Wall Block Shooting?


Post New Thread Reply   
 
Thread Tools Display Modes
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]
The Specialist
BANNED
Join Date: Nov 2006
Old 11-22-2006 , 03:55   Re: Make Wall Block Shooting?
Reply With Quote #2

have you tried setting EV_FL_takedamage to another setting ? -1 or something .
The Specialist is offline
Send a message via AIM to The Specialist
dutchmeat
Senior Member
Join Date: Sep 2006
Old 11-22-2006 , 04:27   Re: Make Wall Block Shooting?
Reply With Quote #3

try this:

Code:
public spawnmodel(id){
new Float: placepos[3]
entity_get_vector(id,EV_VEC_origin,placepos) 
new model
model = create_entity("env_model")
new Float:tmaxs[3] = {5.0,5.0,5.0}
new Float:tmins[3] = {-5.0,-5.0,-5.0}
entity_set_origin(model,placepos)
entity_set_model(model,"models/null.mdl")
entity_set_int(model,EV_INT_solid, 2)
entity_set_size(model,tmins,tmaxs)
entity_set_float(model,EV_FL_scale,5.0)
}
__________________
before you criticize someone, you should walk a mile in their shoes. that way, when you criticize them, you're a mile away and you have their shoes.
dutchmeat is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 11-22-2006 , 15:51   Re: Make Wall Block Shooting?
Reply With Quote #4

Try SOLID_BSP instead of SOLID_BBOX.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
stupok
Veteran Member
Join Date: Feb 2006
Old 11-22-2006 , 19:19   Re: Make Wall Block Shooting?
Reply With Quote #5

If Avalanche's suggestion does not work, you can put 3 (I think thats the magic number) entities side-by-side and that should block bullets.
stupok is offline
Wilson [29th ID]
Veteran Member
Join Date: Nov 2005
Location: London
Old 11-25-2006 , 23:07   Re: Make Wall Block Shooting?
Reply With Quote #6

Neither SOLID_BSP nor the 3 entities side by side seemed to work at all.
Any other ideas on how to make the wall not shootable-through?
__________________

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]
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 11-25-2006 , 23:53   Re: Make Wall Block Shooting?
Reply With Quote #7

Then try also setting its flags to FL_WORLDBRUSH.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 11-26-2006 , 00:40   Re: Make Wall Block Shooting?
Reply With Quote #8

or try setting its classname to func_wall
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
stupok
Veteran Member
Join Date: Feb 2006
Old 11-26-2006 , 13:52   Re: Make Wall Block Shooting?
Reply With Quote #9

Make sure the three entities aren't touching or intersecting. There should be a space between them.

3 ents in a row works for The Specialists, from my experience.
stupok is offline
=|[76AD]|= TatsuSaisei
Junior Member
Join Date: Nov 2006
Old 11-28-2006 , 06:47   Re: Make Wall Block Shooting?
Reply With Quote #10

Quote:
Originally Posted by Emp` View Post
or try setting its classname to func_wall
func_button might wokr better... buttons are shootable but not shoot through...
=|[76AD]|= TatsuSaisei is offline
Send a message via AIM to =|[76AD]|= TatsuSaisei
Reply



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