Files

> > CS2D > Lua Scripts > Time Hooks # HC 1.9.4
Files overviewCS2D overviewLua Scripts overview

English Time Hooks # HC 1.9.4 >

2 comments2 kb, 12 Downloads

old Time Hooks # HC 1.9.4

Mami Tomoe
User Off Offline

Hello!

This is a development module that you may implement into file cs2d HC Admin Script 1.9.4 (21/10/2025) .
Using this module with file cs2d HC Admin Script 1.9.3 will result in imprecise function call-backs.
Therefore, this module requires HC patch
1.9.4 (30/06/2025)
or newer.

This module will implement the "mshooks" feature.
Using this module, developers may add time based hooks for any time interval that they desire.

illegal Warning!
Similarly to the built in time hooks, time drift may occur.
This is due to server tick-rate fluctuations and other factors.
Do not use this module to keep track of time (like how long has passed).
Use the time library provided by Lua for that!

Usage Examples (API) >

IMG:https://raw.githubusercontent.com/Mami-Tomoe/hc-194/refs/heads/main/Resources/Font_Awesome_5_brands_github.svg.png
edited 4×, last 22.10.25 07:13:22 am
Approved by Gaios

Download Download

2 kb, 12 Downloads

Comments

2 comments
To the start Previous 1 Next To the start

Log in!

You need to log in to be able to write comments!Log in

old

Mami Tomoe
User Off Offline

@user Gaios: While not explicitly specified here, it is specified in the module that it accepts both.

I modified the description to reflect that.

old

Gaios
Reviewer Off Offline

Would be better if API could accept a funcion reference instead of function name string.
To the start Previous 1 Next To the start