rockbandcheeseman

TeamBalance

Nov 21st, 2012
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.52 KB | None | 0 0
  1. -- Auto-Team Balance
  2.  
  3. function GetRequiredVersion()
  4.  
  5.     return 10058
  6. end
  7.  
  8. function OnScriptLoad(process)
  9.  
  10.  
  11. end
  12.  
  13. function OnScriptUnload()
  14.  
  15.    
  16. end
  17.  
  18. function OnNewGame(map)
  19.  
  20.  
  21. end
  22.  
  23. function OnGameEnd(mode)
  24.  
  25.  
  26. end
  27.  
  28. function OnServerChat(player, chattype, message)
  29.  
  30.     return 1
  31. end
  32.  
  33. function OnServerCommand(player, command)
  34.  
  35.     return 1
  36. end
  37.  
  38. function OnTeamDecision(team)
  39.  
  40.     local redsize = getteamsize(0)
  41.     local bluesize = getteamsize(1)
  42.    
  43.     if redsize > bluesize then
  44.         return 1
  45.     elseif bluesize > redsize then
  46.         return 0
  47.     end
  48.    
  49.     return team
  50. end
  51.  
  52. function OnPlayerJoin(player, team)
  53.  
  54.    
  55. end
  56.  
  57. function OnPlayerLeave(player, team)
  58.  
  59.  
  60. end
  61.  
  62. function OnPlayerKill(killer, victim, mode)
  63.  
  64.  
  65. end
  66.  
  67. function OnKillMultiplier(player, multiplier)
  68.  
  69.  
  70. end
  71.  
  72. function OnPlayerSpawn(player, m_objId)
  73.  
  74.  
  75. end
  76.  
  77. function OnPlayerSpawnEnd(player, m_objId)
  78.  
  79.    
  80. end
  81.  
  82. function OnTeamChange(relevant, player, cur_team, dest_team)
  83.  
  84.     return 1
  85. end
  86.  
  87. function OnObjectCreation(m_objId, player, tagName)
  88.  
  89.  
  90. end
  91.  
  92. function OnObjectInteraction(player, m_objId, tagType, tagName)
  93.    
  94.     return 1
  95. end
  96.  
  97. function OnWeaponAssignment(player, m_objId, slot, tagName)
  98.    
  99.     return 0
  100. end
  101.  
  102. function OnWeaponReload(player, m_weapId)
  103.  
  104.     return 1
  105. end
  106.  
  107. function OnDamageLookup(receiver, causer, tagData, tagName)
  108.  
  109.  
  110. end
  111.  
  112. function OnVehicleEntry(relevant, player, m_vehicleId, tagName, seat)
  113.  
  114.     return 1
  115. end
  116.  
  117. function OnVehicleEject(player, forced)
  118.  
  119.     return 1
  120. end
  121.  
  122. function OnClientUpdate(player, m_objId)
  123.  
  124.    
  125. end
Advertisement
Add Comment
Please, Sign In to add comment