Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Tiberian Technologies / Blackhand Studios » Other Products » Brenbot Questions
Re: Show Fds msgs in irc [message #377907 is a reply to message #377681] Sun, 29 March 2009 14:44 Go to previous messageGo to previous message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma:
General (5 Stars)
1) Voting_Allow_Gameover to 0 in brenbot.cfg (to disable it). Next create a plugin with a function for the mapload event (and specify in the XML that you want to recieve the event) which, when called, sets $brconfig::config_voting_allow_gameover to 0, and then triggers a function after a delay ( $poe_kernel->delay ( functionToCall, int(time())+delayInSeconds ); ). That function should set $brconfig::config_voting_allow_gameover to 1 to enable gameover votes from that point onwards.

NB: This is not a perfect way of doing it, and will not work well if a game ends before delayInSeconds seconds, as the delayed function will still trigger as normal, and it won't enable gameover votes until the next map after the bot has loaded. However, with some creative thinking you can work around this.

I should also mention that setting brconfig values through plugins is not offically supported through the plugin interface, so there is no guaruntee that variable names will not change in future and break your plugin until it is updated.


2) No, you can't directly attach scripts using BRenBot unless you implement your own custom console commands through scripts.dll.


http://steamsignature.com/card/1/76561197975867233.png
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: BRenBot Ping Timeout
Next Topic: 2 BRenBot Questions
Goto Forum:
  


Current Time: Wed Dec 18 04:45:16 MST 2024

Total time taken to generate the page: 0.01167 seconds