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

CloseHandle is not stopping TIMER_REPEAT?


Post New Thread Reply   
 
Thread Tools Display Modes
TheFlyingApple
Member
Join Date: Aug 2016
Old 03-09-2020 , 17:59   Re: CloseHandle is not stopping TIMER_REPEAT?
Reply With Quote #21

Quote:
Originally Posted by Marttt View Post
Ilusion, yeah you are correct.
Well I made another version that minimizes that error, but still can "be exploited" in rare (impossible?) cases (between 2 seconds).

Spoiler
YES! Perfect! This worked... I see what you did ;) Thanks for your help everybody!
TheFlyingApple is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 03-14-2020 , 14:35   Re: CloseHandle is not stopping TIMER_REPEAT?
Reply With Quote #22

Marttt, good idea.
But, is there a reason to stop and re-create timer at all.

Spoiler
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 03-14-2020 , 16:49   Re: CloseHandle is not stopping TIMER_REPEAT?
Reply With Quote #23

Marttt, one more notice, just for the future, your timer run twice if round lost, or when round ends without change map (CS:GO or similar games).
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 03-14-2020 , 20:29   Re: CloseHandle is not stopping TIMER_REPEAT?
Reply With Quote #24

Thanks, I was just supporting, I know there is a reason to kill the timer.
For my l4d2 versus server it worked fine, I don't know which game the author is trying to implement.
Maybe hooking other events it could be achieved. Some things he must discover by himself.
__________________
Marttt is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 03-15-2020 , 04:16   Re: CloseHandle is not stopping TIMER_REPEAT?
Reply With Quote #25

For testing I sometimes double restart (mp_restartgame 1) in Versus so Im back on the same team, using your code Marttt without killing the timer would probably lead to a duplicate timer running.
__________________

Last edited by Silvers; 03-15-2020 at 04:17.
Silvers 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 08:25.


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