Watch
-
Add Favorite
The only thing you have to do is to call the cancelAll method on the round_end event
This lib is similary as gamethread lib but it has a new method which allow you to remove all the delayed commands.
The only thing you have to do is to call the cancelAll method on the round_end event, I haven't found how to make this by default in the lib, any help?
This second lib allow you to use the gamethread.py lib to delay commands during a map, example:
This example will display during a round all the Hello World as normally, but if the round ends in the 10 firsts seconds for example you will only see the "15 gamethread Hello world" and "20 gamethread Hello world" during the next round.
When you call this method all delayed commands (for all the scripts using roundthread library) will be cancelled, (thats why this will be usefull to don't have to call the cancelAll command in each script)
My script allow you to cancel delayed commands at the end of a map too, just call this method in the es_map_start event.
You can easily implement theses methods in the gamethread library if you wanna stop gamethreads delayes commands at the maps end.
The 2 new methods are:
In the TimeSortedQueue class:
and in the public part:
To install it you have to create a text file named roundthread.py and put it into the cstrike\addons\eventscripts\_libs\python directory.
( Previous Versions )
Description
This lib is similary as gamethread lib but it has a new method which allow you to remove all the delayed commands.The only thing you have to do is to call the cancelAll method on the round_end event
Version Notes For 1
Updated on: 2007-11-02 11:20:23 ESTThis lib is similary as gamethread lib but it has a new method which allow you to remove all the delayed commands.
The only thing you have to do is to call the cancelAll method on the round_end event, I haven't found how to make this by default in the lib, any help?
This second lib allow you to use the gamethread.py lib to delay commands during a map, example:
import es |
This example will display during a round all the Hello World as normally, but if the round ends in the 10 firsts seconds for example you will only see the "15 gamethread Hello world" and "20 gamethread Hello world" during the next round.
When you call this method all delayed commands (for all the scripts using roundthread library) will be cancelled, (thats why this will be usefull to don't have to call the cancelAll command in each script)
My script allow you to cancel delayed commands at the end of a map too, just call this method in the es_map_start event.
You can easily implement theses methods in the gamethread library if you wanna stop gamethreads delayes commands at the maps end.
The 2 new methods are:
In the TimeSortedQueue class:
def removeAll(self): |
and in the public part:
def cancelAll(): |
To install it you have to create a text file named roundthread.py and put it into the cstrike\addons\eventscripts\_libs\python directory.
( Previous Versions )
Discussion
Forum Link: http://forums.mattie.info/cs/forums/viewtopic.php?t=18304
Addon Details
Upload Addon