• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] About DotA Kick Triggers

Status
Not open for further replies.
Level 2
Joined
Oct 20, 2007
Messages
18
Hi! I'm not sure whether this should be in the JASS Section or GUI, but oh well... How does DotA do its kick system? As in when it actually kicks?
 
Level 4
Joined
Mar 15, 2008
Messages
71
I never thought about how it is programmed but I know this...
If you'r afk for 10mins the players get to vote if they want to kick you...-I believe that 1 vote is enough(Not sure)
 
Level 2
Joined
Oct 20, 2007
Messages
18
I never thought about how it is programmed but I know this...
If you'r afk for 10mins the players get to vote if they want to kick you...-I believe that 1 vote is enough(Not sure)

I know that, but what I want to know is how the actual kicking works, it's not like those kick systems where they just defeat you and remove all you're units...
 
Level 40
Joined
Dec 14, 2005
Messages
10,532
Step 1: Create an integer array (one slot for each player)

Step 2: Whenever a player issues any type of order, store the time on the global game timer (which DotA has to tell you how long the game has been) into that player's slot on the array.

Step 3: Every <interval>, detect whether the last order issued was more than 10 minutes before the current time listed on the timer. If so, activate the kick trigger for that player.
 
Level 2
Joined
Oct 20, 2007
Messages
18
Step 1: Create an integer array (one slot for each player)

Step 2: Whenever a player issues any type of order, store the time on the global game timer (which DotA has to tell you how long the game has been) into that player's slot on the array.

Step 3: Every <interval>, detect whether the last order issued was more than 10 minutes before the current time listed on the timer. If so, activate the kick trigger for that player.

I KNOW THAT!! I want to know how the KICKING itself works -.-
 
Level 12
Joined
Nov 5, 2007
Messages
730
-A player types kick Player Name of (stored afk player)

-Defeat stored afk player,dont show messages,show score screen.
 
Status
Not open for further replies.
Top