Quote:
Originally Posted by NoS
Any development on this? It would be nice to have some effects.
|
Since it appears no one has created (or at least not shared) any effects for this yet, I decided to work on the api a bit more and create some effects.
Attached is (an untested) 1.0 alpha version of the core and two effects modules which I will continue to maintain. The tf2 one is only for tf2 and the generic one should work on
all games.
If feedback is good, I will update the first post with these and continue, adding effects. (everyone else is welcome to do so as well!)
The API is a little bit more rich now, now supporting the registering of timed effects without the module having to keep track of any timers. In addition to specifying whether the effect is good or bad, a name, and a function to call when rolled, you specify a duration for the effect and a function to call when the effect should end. The end function will also tell you the reason it ended (time ran out, player died or player disconnected).
The attached core and modules will each create a config in cfg/sourcemod as they have many cvars for maximum configurability.
Most of the included effects are from
pheadxdll's TF2 rtd plugin and the two from the tf2 example plugin on the first post. I'll give more detail about included effects when updating the first post if testing goes well. The auto-create config files should have decent descriptions.
As before, modules are stackable. Adding more modules adds more effects.