ASCron
is a Metamod plugin based on PerMalmberg's libcron to add Cron for Sven Co-op AngelScripts scripting system.
-
Grab metamod-p and asext.dll/asext.so Here
-
Install them.
-
Grab ascron.dll/ascron.so, put them into
svencoop/addons/metamod/dlls
-
edit
svencoop/addons/metamod/plugins.ini
-
add
win32 addons/metamod/dlls/ascron.dll
linux addons/metamod/dlls/ascron.so
- enjoy your new cron :3
If you are using systems that are not covered by automatic builds (yum's and aur's)
or want to add new hooks yourself, you can follow these steps to configure your build environment.
-
Install everything you need
- Git or
winget install --id Git.Git -e --source winget
- Visual Studio with vc143 toolset And C++ desktop development
sudo apt install git make build-essential gcc gcc-multilib g++-multilib cmake -y
sudo yum install git make gcc gcc-c++ glibc-devel.i686 libstdc++-devel.i686 cmake -y
Sorry guys who using Arch, I've never used an Arch based distribution, you'll have to find out how to configure the dependencies yourselves!🙂
- Git or
-
Clone metamod modified by hzqst
git clone https://github.com/DrAbcOfficial/metamod-fallguys.git metamod
cd metamod
-
Clone this
git clone https://github.com/DrAbcOfficial/ascron.git
cd ascron
-
Build!
- Open
ascron.sln
with visual studio - Press
F7
- Wait and done.
mkdir build && cd build && cmake .. && make
- Open
-
Grab
Now you can grab your new library (ascron.dll/ascron.so) in
metamod/build/addons/metamod/dlls/
Class | Namespace | Object |
---|---|---|
CCron | <Global> | g_Cron |
Class | Method | Explian |
---|---|---|
CCron | void Add(string&in name, string&in time, fnCronCallback@ callback, any@ param) | Add Scheduler |
CCron | void Add(string&in name, string&in time, fnCronNoParamCallback@ callback) | Add Scheduler |
CCron | void Remove(string&in name) | Remove Scheduler |
CCron | void RemoveAll() | Remove All Scheduler |
CCron | uint Count() | Count Scheduler |
This plugin use PerMalmberg's libcron and Howard Hinnant's date