Raised This Month: $51 Target: $400
 12% 

Shots discrepancy, multiple player_hurt events?


Post New Thread Reply   
 
Thread Tools Display Modes
chrishx3000
Member
Join Date: Nov 2004
Location: Sweden
Old 03-27-2005 , 05:49  
Reply With Quote #11

Just posting a follow-up to previous posts.

I'm getting the time from engine->Time() for every player_hurt event. If there is less than 0.0015 seconds (Mani set it to 0.001, I'm tweaking it a bit) between two player_hurt events for the same player, it is two hits with one bullet.

Now this isn't the best way to go around, especially if there is a weapon capable of firing bullets faster than 0.0015 seconds. But it will do for now
chrishx3000 is offline
Mani
Veteran Member
Join Date: Dec 2004
Location: UK
Old 03-28-2005 , 19:25  
Reply With Quote #12

Quote:
Originally Posted by chrishx3000
Just posting a follow-up to previous posts.

I'm getting the time from engine->Time() for every player_hurt event. If there is less than 0.0015 seconds (Mani set it to 0.001, I'm tweaking it a bit) between two player_hurt events for the same player, it is two hits with one bullet.

Now this isn't the best way to go around, especially if there is a weapon capable of firing bullets faster than 0.0015 seconds. But it will do for now
I'm using gpGlobals->curtime (not sure if it's the same as engine->Time() )

I found the time indexes are identical so I didn't even bother putting a 0.001 threshold in.

Mani.
__________________
Installation files, documentation and help can be found at: -

www.mani-admin-plugin.com
Mani 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:05.


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