- -- Creator: AelitePrime
- -- Script Name: TimeLimit Script
- -- Website: http://phasorscripts.wordpress.com/
- -- Xfire: eliteprime14789x
- -- Version: 1.0
- -- ** -- Do Not Modify -- ** -- Do Not Modify -- ** -- Do Not Modify -- ** -- Do Not Modify -- ** -- Do Not Modify -- ** --
- timelimit = {} -- do not touch
- timelimit.CTF = {} -- do not touch
- -- ** -- Modify -- ** -- Modify -- ** -- Modify -- ** -- Modify -- ** -- Modify -- ** -- ** -- Modify -- ** -- Modify -- ** -- Modify --
- -- CTF Timelimits
- -- Map: Timelimit (In Minutes):
- timelimit.CTF. beavercreek = 30 -- battlecreek
- timelimit.CTF. bloodgulch = 30
- timelimit.CTF. boardingaction = 30
- timelimit.CTF. carousel = 30 -- derelict
- timelimit.CTF. chillout = 30
- timelimit.CTF. damnation = 30
- timelimit.CTF. dangercanyon = 30
- timelimit.CTF. deathisland = 30
- timelimit.CTF. gephyrophobia = 30
- timelimit.CTF. hangemhigh = 30
- timelimit.CTF. icefields = 30
- timelimit.CTF. infinity = 30
- timelimit.CTF. longest = 30
- timelimit.CTF. prisoner = 30
- timelimit.CTF. putput = 30 -- chirontl34
- timelimit.CTF. ratRace = 30
- timelimit.CTF. sidewinder = 30
- timelimit.CTF. timberland = 30
- timelimit.CTF. wizard = 30
- -- ** -- Do Not Modify -- ** -- Do Not Modify -- ** -- Do Not Modify -- ** -- Do Not Modify -- ** -- Do Not Modify -- ** --
- timelimit.Slayer = {} -- do not touch
- -- ** -- Modify -- ** -- Modify -- ** -- Modify -- ** -- Modify -- ** -- Modify -- ** -- ** -- Modify -- ** -- Modify -- ** -- Modify --
- -- Slayer Timelimits
- -- Map: Timelimit (In Minutes):
- timelimit.Slayer. beavercreek = 30 -- battlecreek
- timelimit.Slayer. bloodgulch = 30
- timelimit.Slayer. boardingaction = 30
- timelimit.Slayer. carousel = 30 -- derelict
- timelimit.Slayer. chillout = 30
- timelimit.Slayer. damnation = 30
- timelimit.Slayer. dangercanyon = 30
- timelimit.Slayer. deathisland = 30
- timelimit.Slayer. gephyrophobia = 30
- timelimit.Slayer. hangemhigh = 30
- timelimit.Slayer. icefields = 30
- timelimit.Slayer. infinity = 30
- timelimit.Slayer. longest = 30
- timelimit.Slayer. prisoner = 30
- timelimit.Slayer. putput = 30 -- chirontl34
- timelimit.Slayer. ratRace = 30
- timelimit.Slayer. sidewinder = 30
- timelimit.Slayer. timberland = 30
- timelimit.Slayer. wizard = 30
- -- ** -- Do Not Modify -- ** -- Do Not Modify -- ** -- Do Not Modify -- ** -- Do Not Modify -- ** -- Do Not Modify -- ** --
- timelimit.Oddball = {} -- do not touch
- -- ** -- Modify -- ** -- Modify -- ** -- Modify -- ** -- Modify -- ** -- Modify -- ** -- ** -- Modify -- ** -- Modify -- ** -- Modify --
- -- Oddball Timelimits
- -- Map: Timelimit (In Minutes):
- timelimit.Oddball. beavercreek = 30 -- battlecreek
- timelimit.Oddball. bloodgulch = 30
- timelimit.Oddball. boardingaction = 30
- timelimit.Oddball. carousel = 30 -- derelict
- timelimit.Oddball. chillout = 30
- timelimit.Oddball. damnation = 30
- timelimit.Oddball. dangercanyon = 30
- timelimit.Oddball. deathisland = 30
- timelimit.Oddball. gephyrophobia = 30
- timelimit.Oddball. hangemhigh = 30
- timelimit.Oddball. icefields = 30
- timelimit.Oddball. infinity = 30
- timelimit.Oddball. longest = 30
- timelimit.Oddball. prisoner = 30
- timelimit.Oddball. putput = 30 -- chirontl34
- timelimit.Oddball. ratRace = 30
- timelimit.Oddball. sidewinder = 30
- timelimit.Oddball. timberland = 30
- timelimit.Oddball. wizard = 30
- -- ** -- Do Not Modify -- ** -- Do Not Modify -- ** -- Do Not Modify -- ** -- Do Not Modify -- ** -- Do Not Modify -- ** --
- timelimit.KOTH = {} -- do not touch
- -- ** -- Modify -- ** -- Modify -- ** -- Modify -- ** -- Modify -- ** -- Modify -- ** -- ** -- Modify -- ** -- Modify -- ** -- Modify --
- -- King of the Hill Timelimits
- -- Map: Timelimit (In Minutes):
- timelimit.KOTH. beavercreek = 30 -- battlecreek
- timelimit.KOTH. bloodgulch = 30
- timelimit.KOTH. boardingaction = 30
- timelimit.KOTH. carousel = 30 -- derelict
- timelimit.KOTH. chillout = 30
- timelimit.KOTH. damnation = 30
- timelimit.KOTH. dangercanyon = 30
- timelimit.KOTH. deathisland = 30
- timelimit.KOTH. gephyrophobia = 30
- timelimit.KOTH. hangemhigh = 30
- timelimit.KOTH. icefields = 30
- timelimit.KOTH. infinity = 30
- timelimit.KOTH. longest = 30
- timelimit.KOTH. prisoner = 30
- timelimit.KOTH. putput = 30 -- chirontl34
- timelimit.KOTH. ratRace = 30
- timelimit.KOTH. sidewinder = 30
- timelimit.KOTH. timberland = 30
- timelimit.KOTH. wizard = 30
- -- ** -- Do Not Modify -- ** -- Do Not Modify -- ** -- Do Not Modify -- ** -- Do Not Modify -- ** -- Do Not Modify -- ** --
- timelimit.Race = {} -- do not touch
- -- ** -- Modify -- ** -- Modify -- ** -- Modify -- ** -- Modify -- ** -- Modify -- ** -- ** -- Modify -- ** -- Modify -- ** -- Modify --
- -- Race Timelimits
- -- Map: Timelimit (In Minutes):
- timelimit.Race. beavercreek = 30 -- battlecreek
- timelimit.Race. bloodgulch = 30
- timelimit.Race. boardingaction = 30
- timelimit.Race. carousel = 30 -- derelict
- timelimit.Race. chillout = 30
- timelimit.Race. damnation = 30
- timelimit.Race. dangercanyon = 30
- timelimit.Race. deathisland = 30
- timelimit.Race. gephyrophobia = 30
- timelimit.Race. hangemhigh = 30
- timelimit.Race. icefields = 30
- timelimit.Race. infinity = 30
- timelimit.Race. longest = 30
- timelimit.Race. prisoner = 30
- timelimit.Race. putput = 30 -- chirontl34
- timelimit.Race. ratRace = 30
- timelimit.Race. sidewinder = 30
- timelimit.Race. timberland = 30
- timelimit.Race. wizard = 30
- -- ** -- Do Not Modify -- ** -- Do Not Modify -- ** -- Do Not Modify -- ** -- Do Not Modify -- ** -- Do Not Modify -- ** --
- function GetRequiredVersion()
- return 200
- end
- function OnScriptLoad(process, game, persistent)
- if game == "PC"then
- GetGameAddresses("PC")
- else
- GetGameAddresses("CE")
- end
- end
- function OnNewGame(map)
- gametype = getgametype()
- if tonumber(timelimit[gametype][map]) then
- settimelimit(timelimit[gametype][map])
- end
- end
- function GetGameAddresses(GAME)
- if GAME == "PC" then
- gametime_base = 0x671420
- gametype_base = 0x671340
- timelimit_address = 0x626630
- else
- gametime_base = 0x5F55BC
- gametype_base = 0x5F5498
- timelimit_address = 0x5AA5B0
- end
- end
- function getgametype()
- gametype_game = readbyte(gametype_base + 0x30)
- if gametype_game == 1 then
- return "CTF"
- elseif gametype_game == 2 then
- return "Slayer"
- elseif gametype_game == 3 then
- return "Oddball"
- elseif gametype_game == 4 then
- return "KOTH"
- elseif gametype_game == 5 then
- return "Race"
- end
- end
- function settimelimit(value)
- if tonumber(value) then
- writedword(timelimit_address,tonumber(value))
- writedword(gametype_base + 0x78, 30 * 60 * value + readdword(readdword(gametime_base) + 0xC))
- end
- end
Recent Pastes