Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Random Projectile
- function GetRequiredVersion()
- return 10059
- end
- function OnScriptLoad(processId)
- end
- --[[
- function OnScriptUnload()
- end
- --]]
- --[[
- function OnNewGame(map)
- end
- --]]
- --[[
- function OnGameEnd(stage)
- end
- --]]
- --[[
- function OnServerChat(player, type, message)
- --return true
- end
- --]]
- --[[
- function OnServerCommand(player, command)
- --return true
- end
- --]]
- --[[
- function OnBanCheck(hash, ip)
- --return true
- end
- --]]
- --[[
- function OnPlayerJoin(player)
- end
- --]]
- --[[
- function OnPlayerLeave(player)
- end
- --]]
- --[[
- function OnPlayerKill(killer, victim, mode)
- end
- --]]
- --[[
- function OnKillMultiplier(player, multiplier)
- end
- --]]
- --[[
- function OnPlayerSpawn(player)
- end
- --]]
- --[[
- function OnPlayerSpawnEnd(player)
- end
- --]]
- --[[
- function OnWeaponAssignment(player, objId, slot, weapId)
- --return mapid
- end
- --]]
- proj = {
- "vehicles\\banshee\\banshee bolt",
- "vehicles\\banshee\\mp_banshee fuel rod",
- "vehicles\\c gun turret\\mp gun turret",
- "vehicles\\ghost\\ghost bolt",
- "vehicles\\scorpion\\bullet",
- "vehicles\\scorpion\\tank shell",
- "vehicles\\warthog\\bullet",
- "weapons\\assault rifle\\bullet",
- "weapons\\flamethrower\\flame",
- "weapons\\needler\\mp_needle",
- "weapons\\needler\\needle",
- "weapons\\pistol\\bullet",
- "weapons\\plasma pistol\\bolt",
- "weapons\\plasma rifle\\bolt",
- "weapons\\plasma rifle\\charged bolt",
- "weapons\\plasma_cannon\\plasma_cannon",
- "weapons\\rocket launcher\\rocket",
- "weapons\\shotgun\\pellet",
- "weapons\\sniper rifle\\sniper bullet"
- }
- function OnObjectCreationAttempt(mapId, parentId, player)
- local tagname, tagtype = gettaginfo(mapId)
- if tagtype == "weap" then
- return gettagid("weap", "weapons\\gravity rifle\\gravity rifle")
- end
- if tagtype == "proj" then
- if tagname == "weapons\\frag grenade\\frag grenade" then
- return gettagid("proj", "weapons\\rocket launcher\\rocket")
- elseif tagname == "weapons\\plasma grenade\\plasma grenade" then
- return gettagid("proj", "vehicles\\banshee\\mp_banshee fuel rod")
- elseif tagname == "weapons\\flamethrower\\flame" then
- return gettagid("proj", proj[getrandomnumber(1, #proj + 1)])
- end
- end
- end
- --[[
- function OnObjectCreation(objId)
- end
- --]]
- --[[
- function OnObjectInteraction(player, objId, mapId)
- end
- --]]
- --[[
- function OnTeamDecision(team)
- --return team
- end
- --]]
- --[[
- function OnTeamChange(player, old_team, new_team, voluntary)
- --return true
- end
- --]]
- --[[
- function OnDamageLookup(receiver, causer, tagdata, mapId)
- -- 0x1D0
- -- 0x1D4
- -- 0x1D8
- end
- --]]
- --[[
- function OnVehicleEntry(player, m_vehiId, seat, mapId, voluntary)
- end
- --]]
- --[[
- function OnVehicleEject(player, voluntary)
- --return true
- end
- --]]
Advertisement
Add Comment
Please, Sign In to add comment