View Single Post
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