Raised This Month: $ Target: $400
 0% 

Detect double/triple HS


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 07-02-2010 , 07:21   Detect double/triple HS
Reply With Quote #1

Is it possible to detect double or triple headshot?
Backstabnoob is offline
RedRobster
Veteran Member
Join Date: Apr 2010
Location: Your Closet
Old 07-02-2010 , 11:45   Re: Detect double/triple HS
Reply With Quote #2

Do you mean at the same time? Or within a certain time period? Because the answer is yes.
RedRobster is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 07-02-2010 , 12:01   Re: Detect double/triple HS
Reply With Quote #3

Code:
#include <amxmodx> new Headshots[33] public plugin_init() {     register_event( "DeathMsg", "eventDeathMsg", "a", "3!0" ) } public eventDeathMsg() {     new killer = read_data( 1 )     Headshots[killer]++     Headshots[read_data( 2 )] = 0         // Headshots of killer increased by 1     // Victim headshots set to 0         // Do comparisons here with Headshots[] }
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
Kryzu
Senior Member
Join Date: Feb 2009
Old 07-02-2010 , 12:04   Re: Detect double/triple HS
Reply With Quote #4

I think he means headshots per 1 bullet.
__________________
Kryzu is offline
Old 07-02-2010, 12:05
drekes
This message has been deleted by drekes. Reason: Wrecked said it
Mxnn
Veteran Member
Join Date: Aug 2009
Location: AT MY HOME
Old 07-02-2010 , 12:33   Re: Detect double/triple HS
Reply With Quote #5

Wrecked_ you have to reset the counter when the killer kills someone without headshot
Mxnn is offline
RedRobster
Veteran Member
Join Date: Apr 2010
Location: Your Closet
Old 07-02-2010 , 12:42   Re: Detect double/triple HS
Reply With Quote #6

Quote:
Originally Posted by Mxnn View Post
Wrecked_ you have to reset the counter when the killer kills someone without headshot
What he wrote isn't for a kill streak or something. All his plugin did was count headshots.
RedRobster is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 07-02-2010 , 12:45   Re: Detect double/triple HS
Reply With Quote #7

https://forums.alliedmods.net/showthread.php?t=130616

#2 for a full example.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ 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 07:14.


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