[Help] MegaHAL chatter bot into amxx module.
1 Attachment(s)
Hi, i tried to convert this SM extension into amxx module but my cpp skill are not so good. I just copy and paste a fun module as basis.
At this moment module compiled and can be run on windows server, but this chatter bot make hlds micro stutter about 0.2~0.3 second each time bot do reply function. My problem:
Spoiler
What cause micro stutter issue:
Spoiler
Module sources, MegaHAL files, .sma attached. |
Re: [Help] MegaHAL chatter bot into amxx module.
PHP Code:
"Loop for the specified waiting period" That's the issue. It seems it forces the loop to run until 1 second elapsed to simulated a waiting time? You can't do that in HLDS, it's single-threaded, it's going to block everything else. Remove the do/while, and if you need the waiting, use a task system. |
Re: [Help] MegaHAL chatter bot into amxx module.
Quote:
|
All times are GMT -4. The time now is 22:18. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.