Raised This Month: $51 Target: $400
 12% 

[CS:S] Stopping a bullet


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 07-15-2010 , 10:52   [CS:S] Stopping a bullet
Reply With Quote #1

The Orange Box update really screwed over one of my servers; it seems any brush tied to an entity can be penetrated by a bullet regardless of length (at least that's what members on the server are telling me). It's a glass texture server, so being able to shoot through walls is a very very bad thing. I've been attempting to stop a bullet if it passes through a wall, but I can't seem to get bullet_impact to work in a manner that'll allow me to detect it. What other methods might there be for detecting if a bullet hit a wall, and if so, stopping the bullet? (Yet I still need a bullet to continue if it hits a player, say a scout for example).
__________________
thetwistedpanda is offline
Peoples Army
SourceMod Donor
Join Date: Mar 2007
Old 07-16-2010 , 01:47   Re: [CS:S] Stopping a bullet
Reply With Quote #2

You can hook a Entity Touch function , I haven't done this in source yet but look through the forums I'm sure you'll find it

http://forums.alliedmods.net/showthr...t=entity+touch
__________________
Peoples Army is offline
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 07-16-2010 , 02:25   Re: [CS:S] Stopping a bullet
Reply With Quote #3

Hmm not all walls are entities so I don't think that'll work for me.
__________________
thetwistedpanda is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 07-17-2010 , 15:25   Re: [CS:S] Stopping a bullet
Reply With Quote #4

Bullets are hitscan in CSS, so the only way to "stop" them would be to stop the player from firing or to block the damage from being taken.
bl4nk is offline
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 07-17-2010 , 15:52   Re: [CS:S] Stopping a bullet
Reply With Quote #5

Ew, that makes it more difficult that it does. Alright thanks for the information, I'll just complain to Valve.
__________________
thetwistedpanda is offline
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 18:13.


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