share/hedgewars/Data/Scripts/Multiplayer/Capture_the_Flag.lua
changeset 15788 acf70c44065b
parent 15252 515a4a317e52
equal deleted inserted replaced
15787:8bb050e8e40f 15788:acf70c44065b
    47 -- In this version:
    47 -- In this version:
    48 ---------
    48 ---------
    49 -- 0.3
    49 -- 0.3
    50 ---------
    50 ---------
    51 -- [fufufufu kamikaze fix]
    51 -- [fufufufu kamikaze fix]
    52 -- added nill checks to make sure the player doesn't generate errors by producing a nil value in hhs[] when he uses kamikaze
    52 -- added nil checks to make sure the player doesn't generate errors by producing a nil value in hhs[] when using kamikaze
    53 -- added a check to make sure the player doesn't kamikaze straight down and make the flag's starting point underwater
    53 -- added a check to make sure the player doesn't kamikaze straight down and make the flag's starting point underwater
    54 -- added a check to make sure the player drops the flag if he has it and he uses kamikaze
    54 -- added a check to make sure the player drops the flag if they have it and they use kamikaze
    55 
    55 
    56 --------
    56 --------
    57 -- 0.4
    57 -- 0.4
    58 --------
    58 --------
    59 
    59 
    60 -- remove user-branding and version numbers
    60 -- remove user-branding and version numbers
    61 -- removed some stuff that wasn't needed
    61 -- removed some stuff that wasn't needed
    62 -- fix piano strike exploit
    62 -- fix piano strike exploit
    63 -- changed delay to allow for better portals
    63 -- changed delay to allow for better portals
    64 -- changed starting feedback a little
    64 -- changed starting feedback a little
    65 -- increased the radius around the circle indicating the flag thief so that it doesn't obscure his health
    65 -- increased the radius around the circle indicating the flag thief so that it doesn't obscure their health
    66 
    66 
    67 --------
    67 --------
    68 -- 0.5
    68 -- 0.5
    69 --------
    69 --------
    70 
    70 
   595 end
   595 end
   596 
   596 
   597 function onGearResurrect(gear)
   597 function onGearResurrect(gear)
   598 
   598 
   599 	if GetGearType(gear) == gtHedgehog then
   599 	if GetGearType(gear) == gtHedgehog then
   600 		-- mark the flag thief as dead if he needed a respawn
   600 		-- mark the flag thief as dead if they needed a respawn
   601 		for i = 0, ClansCount-1 do
   601 		for i = 0, ClansCount-1 do
   602 			if gear == fThief[i] then
   602 			if gear == fThief[i] then
   603 				FlagThiefDead(gear)
   603 				FlagThiefDead(gear)
   604 			end
   604 			end
   605 		end
   605 		end