AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   how to know if the attack was trough wall? (https://forums.alliedmods.net/showthread.php?t=126521)

Voi 05-10-2010 10:17

how to know if the attack was trough wall?
 
Im using now Ham_TraceAttack hook, and the first thing I thinked of was checking if attacker see's the victim. I tried two ways via hamsandwich, but it didn't work right or crashed the server. I saw the tutorial about checking visibility, but its too much code to run on every damage event.

So now im thinking of checking it via traceline. Any help ?


All times are GMT -4. The time now is 03:37.

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