rockbandcheeseman

GEO Monitor for Plasma Grenades

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