Advertisement
Guest User

Melee

a guest
Jan 17th, 2012
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.02 KB | None | 0 0
  1. -- Melee
  2.  
  3. function GetRequiredVersion()
  4.  
  5.     return 10057
  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.     return team
  41. end
  42.  
  43. function OnPlayerJoin(player, team)
  44.  
  45.  
  46. end
  47.  
  48. function OnPlayerLeave(player, team)
  49.  
  50.  
  51. end
  52.  
  53. function OnPlayerKill(killer, victim, mode)
  54.  
  55.  
  56. end
  57.  
  58. function OnKillMultiplier(player, multiplier)
  59.  
  60.  
  61. end
  62.  
  63. function OnPlayerSpawn(player, m_object)
  64.  
  65.  
  66. end
  67.  
  68. function OnPlayerSpawnEnd(player, m_objId)
  69.    
  70.     local m_object = getobject(m_objId)
  71.     writebyte(m_object, 0x31E, 0)
  72.     writebyte(m_object, 0x31F, 0)
  73. end
  74.  
  75. function OnTeamChange(relevant, player, cur_team, dest_team)
  76.  
  77.  
  78.     return 1
  79. end
  80.  
  81. function OnObjectCreation(m_objId, player, tagName)
  82.  
  83.     if string.find(tagName, "weapon") ~= nil then
  84.         local m_object = getobject(m_objId)
  85.         writeword(m_object, 0x2B6, 0)
  86.         writeword(m_object, 0x2B8, 0)
  87.         writefloat(m_object, 0x240, 1)
  88.         updateammo(m_objId)
  89.     end
  90. end
  91.  
  92. function OnObjectInteraction(player, m_objId, tagType, tagName)
  93.  
  94.     local response = 1
  95.        
  96.     if tagType == "eqip" then
  97.         if tagName == "weapons\\frag grenade\\frag grenade" or tagName == "weapons\\plasma grenade\\plasma grenade" then
  98.        
  99.             response = 0
  100.         end
  101.     end
  102.    
  103.     local m_object = getobject(m_objId)
  104.     if m_object ~= nil then
  105.         writeword(m_object, 0x2B6, 0)
  106.         writeword(m_object, 0x2B8, 0)
  107.         updateammo(m_objId)
  108.     end
  109.    
  110.     return response
  111. end
  112.  
  113. function OnWeaponAssignment(player, m_objId, slot, tagName)
  114.  
  115.     return 0
  116. end
  117.  
  118. function OnWeaponReload(player, m_weapId)
  119.  
  120.  
  121.     return 1
  122. end
  123.  
  124. function OnDamageLookup(receiver, causer, tagData, tagName)
  125.  
  126.  
  127. end
  128.  
  129. function OnVehicleEntry(relevant, player, m_vehicleId, tagName, seat)
  130.  
  131.     return 1
  132. end
  133.  
  134. function OnVehicleEject(player, forced)
  135.  
  136.     return 1
  137. end
  138.  
  139. function OnClientUpdate(player, m_object)
  140.  
  141.  
  142. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement