AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help ! Detect touch on the wall? (https://forums.alliedmods.net/showthread.php?t=230286)

UnrealT 11-22-2013 22:08

Help ! Detect touch on the wall?
 
Hi a question, as I can detect when a player hits the wall with knife?

DavidJr 11-23-2013 01:34

Re: Help ! Detect touch on the wall?
 
PHP Code:

RegisterHam(Ham_TraceAttack"func_wall""fwd_TraceAttack")

public 
fwd_TraceAttack(iVictimiAttacker/*, Float:flDamage, Float:flDirection[3], iTr, iDamageBits*/)
{
    if (
get_user_weapon(iAttacker) == CSW_KNIFE)
    {
        
//attack wall
    
}




All times are GMT -4. The time now is 23:16.

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