Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Melee
- function GetRequiredVersion()
- return 10057
- end
- function OnScriptLoad(process)
- end
- function OnScriptUnload()
- end
- function OnNewGame(map)
- end
- function OnGameEnd(mode)
- end
- function OnServerChat(player, chattype, message)
- return 1
- end
- function OnServerCommand(player, command)
- return 1
- end
- function OnTeamDecision(team)
- return team
- end
- function OnPlayerJoin(player, team)
- end
- function OnPlayerLeave(player, team)
- end
- function OnPlayerKill(killer, victim, mode)
- end
- function OnKillMultiplier(player, multiplier)
- end
- function OnPlayerSpawn(player, m_object)
- end
- function OnPlayerSpawnEnd(player, m_objId)
- local m_object = getobject(m_objId)
- writebyte(m_object, 0x31E, 0)
- writebyte(m_object, 0x31F, 0)
- end
- function OnTeamChange(relevant, player, cur_team, dest_team)
- return 1
- end
- function OnObjectCreation(m_objId, player, tagName)
- if string.find(tagName, "weapon") ~= nil then
- local m_object = getobject(m_objId)
- writeword(m_object, 0x2B6, 0)
- writeword(m_object, 0x2B8, 0)
- writefloat(m_object, 0x240, 1)
- updateammo(m_objId)
- end
- end
- function OnObjectInteraction(player, m_objId, tagType, tagName)
- local response = 1
- if tagType == "eqip" then
- if tagName == "weapons\\frag grenade\\frag grenade" or tagName == "weapons\\plasma grenade\\plasma grenade" then
- response = 0
- end
- end
- local m_object = getobject(m_objId)
- if m_object ~= nil then
- writeword(m_object, 0x2B6, 0)
- writeword(m_object, 0x2B8, 0)
- updateammo(m_objId)
- end
- return response
- end
- function OnWeaponAssignment(player, m_objId, slot, tagName)
- return 0
- end
- function OnWeaponReload(player, m_weapId)
- return 1
- end
- function OnDamageLookup(receiver, causer, tagData, tagName)
- end
- function OnVehicleEntry(relevant, player, m_vehicleId, tagName, seat)
- return 1
- end
- function OnVehicleEject(player, forced)
- return 1
- end
- function OnClientUpdate(player, m_object)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement