Ulysses

General => Developers Corner => Topic started by: bender180 on October 07, 2013, 07:37:17 PM

Title: Vote commands
Post by: bender180 on October 07, 2013, 07:37:17 PM
im having a little bit of difficulty understanding how the ulx vote commands work, Ive been looking at voting commands that come with ulx and im not sure of the structure that i need to follow to script vote commands. Any guidance at all is appreciated.
Title: Re: Vote commands
Post by: Megiddo on October 07, 2013, 08:00:05 PM
Give us particulars: What do you understand and what don't you?
Title: Re: Vote commands
Post by: bender180 on October 07, 2013, 08:24:02 PM
i see that there is a couple functions like DoVote CallBack VoteDone and VoteDone(t) im assuming those are helper functions used before/during/after the vote and that my command needs to work with them. correct? I was looking at votekick as an example and there is voteKickDone and voteKickDone2 the first votekick done checks to see if the vote got the correct ratio and min votes with a convar, where can i create a convars for vote commands then it does the check the second voteKickDone if i understand it right asks for an admin approval if i understand correctly, is this needed?

Come to think of it i actually cleared alot of my own confusion typing this out, go figure....
Title: Re: Vote commands
Post by: JamminR on October 08, 2013, 07:14:12 PM
Quack Quack (http://en.wikipedia.org/wiki/Rubber_duck_debugging)
Title: Re: Vote commands
Post by: Megiddo on October 08, 2013, 07:51:52 PM
Sounds like my work here is done. ;)