AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   [CS:S] Stopping a bullet (https://forums.alliedmods.net/showthread.php?t=132467)

thetwistedpanda 07-15-2010 10:52

[CS:S] Stopping a bullet
 
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).

Peoples Army 07-16-2010 01:47

Re: [CS:S] Stopping a bullet
 
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

thetwistedpanda 07-16-2010 02:25

Re: [CS:S] Stopping a bullet
 
Hmm not all walls are entities so I don't think that'll work for me.

bl4nk 07-17-2010 15:25

Re: [CS:S] Stopping a bullet
 
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.

thetwistedpanda 07-17-2010 15:52

Re: [CS:S] Stopping a bullet
 
Ew, that makes it more difficult that it does. Alright thanks for the information, I'll just complain to Valve.


All times are GMT -4. The time now is 12:59.

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