AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   solved (https://forums.alliedmods.net/showthread.php?t=84626)

lucky109 01-29-2009 05:08

solved
 
solved

jim_yang 01-29-2009 06:11

Re: how to detect killer awp zoom or not when client_death?
 
http://www.amxmodx.org/funcwiki.php?go=func&id=1084

lucky109 01-29-2009 07:06

Re: how to detect killer awp zoom or not when client_death?
 
solved

jim_yang 01-29-2009 07:18

Re: how to detect killer awp zoom or not when client_death?
 
oh,sorry, you are right, I didn't notice that when awp has fired, fov reset to normal. so you always get 1 at that moment

Sn!ff3r 01-29-2009 07:23

Re: how to detect killer awp zoom or not when client_death?
 
Use pre, not post forward (Ham_Killed) ?

lucky109 01-29-2009 07:29

Re: how to detect killer awp zoom or not when client_death?
 
Quote:

Originally Posted by jim_yang (Post 752135)
oh,sorry, you are right, I didn't notice that when awp has fired, fov reset to normal. so you always get 1 at that moment

is it impossible?

lucky109 01-29-2009 07:33

Re: how to detect killer awp zoom or not when client_death?
 
Quote:

Originally Posted by Sn!ff3r (Post 752136)
Use pre, not post forward (Ham_Killed) ?

how? can you post some example code here?
thanks.

Mlk27 01-29-2009 08:58

Re: how to detect killer awp zoom or not when client_death?
 
Code:

public plugin_init()
{

        RegisterHam(Ham_Killed, "player", "Ham_Killed_player_Pre", 0)
}

public Ham_Killed_player_Pre(iPlrId, iIdattacker, iShouldGib)
{
        // ..

        return HAM_IGNORED
}


lucky109 01-29-2009 09:39

Re: how to detect killer awp zoom or not when client_death?
 
solved

jim_yang 01-29-2009 21:03

Re: how to detect killer awp zoom or not when client_death?
 
you can use offset_clientfov 364
get_pdata_int(player, 364) to get whether a client is zooming while shooting
Code:

public client_death(killer, ...)
{
    switch(get_pdata_int(killer, 364))
    {
        case 10, 40:
          awp scope shot
        case default:
          no zoom shot
    }
}



All times are GMT -4. The time now is 01:43.

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