Raised This Month: $ Target: $400
 0% 

solved


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lucky109
Senior Member
Join Date: Jan 2005
Old 01-29-2009 , 05:08   solved
Reply With Quote #1

solved

Last edited by lucky109; 02-01-2009 at 08:46.
lucky109 is offline
jim_yang
Veteran Member
Join Date: Aug 2006
Old 01-29-2009 , 06:11   Re: how to detect killer awp zoom or not when client_death?
Reply With Quote #2

http://www.amxmodx.org/funcwiki.php?go=func&id=1084
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>
jim_yang is offline
lucky109
Senior Member
Join Date: Jan 2005
Old 01-29-2009 , 07:06   Re: how to detect killer awp zoom or not when client_death?
Reply With Quote #3

solved

Last edited by lucky109; 02-01-2009 at 08:47.
lucky109 is offline
jim_yang
Veteran Member
Join Date: Aug 2006
Old 01-29-2009 , 07:18   Re: how to detect killer awp zoom or not when client_death?
Reply With Quote #4

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
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>
jim_yang is offline
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 01-29-2009 , 07:23   Re: how to detect killer awp zoom or not when client_death?
Reply With Quote #5

Use pre, not post forward (Ham_Killed) ?
__________________
Join US - custom Zombie Server - Custom Addons:



Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
lucky109
Senior Member
Join Date: Jan 2005
Old 01-29-2009 , 07:29   Re: how to detect killer awp zoom or not when client_death?
Reply With Quote #6

Quote:
Originally Posted by jim_yang View Post
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 is offline
lucky109
Senior Member
Join Date: Jan 2005
Old 01-29-2009 , 07:33   Re: how to detect killer awp zoom or not when client_death?
Reply With Quote #7

Quote:
Originally Posted by Sn!ff3r View Post
Use pre, not post forward (Ham_Killed) ?
how? can you post some example code here?
thanks.
lucky109 is offline
Mlk27
Veteran Member
Join Date: May 2008
Old 01-29-2009 , 08:58   Re: how to detect killer awp zoom or not when client_death?
Reply With Quote #8

Code:
public plugin_init()
{

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

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

	return HAM_IGNORED
}

Last edited by Mlk27; 01-29-2009 at 09:03.
Mlk27 is offline
lucky109
Senior Member
Join Date: Jan 2005
Old 01-29-2009 , 09:39   Re: how to detect killer awp zoom or not when client_death?
Reply With Quote #9

solved

Last edited by lucky109; 02-01-2009 at 08:47.
lucky109 is offline
Old 01-29-2009, 11:04
lucky109
This message has been deleted by Exolent[jNr]. Reason: Don't bump until 2 weeks have passed since last post.
Old 01-29-2009, 11:06
BOYSplayCS
This message has been deleted by Exolent[jNr]. Reason: Reply to bump.
jim_yang
Veteran Member
Join Date: Aug 2006
Old 01-29-2009 , 21:03   Re: how to detect killer awp zoom or not when client_death?
Reply With Quote #10

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
    }
}
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>
jim_yang 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 20:55.


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