share/hedgewars/Data/Scripts/TargetPractice.lua
changeset 13583 141cdfe0f3ca
parent 13099 071dcdf33f86
child 13620 211a37eb6a29
equal deleted inserted replaced
13582:517b26009073 13583:141cdfe0f3ca
    99 	- hogName:	name of the hedgehog (default: "Trainee")
    99 	- hogName:	name of the hedgehog (default: "Trainee")
   100 	- teamName:	name of the hedgehog’s team (default: "Training Team")
   100 	- teamName:	name of the hedgehog’s team (default: "Training Team")
   101 	- teamGrave:	name of the hedgehog’s grave
   101 	- teamGrave:	name of the hedgehog’s grave
   102 	- teamFlag:	name of the team’s flag (default: "cm_crosshair")
   102 	- teamFlag:	name of the team’s flag (default: "cm_crosshair")
   103 	- secGearType:	cluster of projectile gear (if present) (used to re-center camera)
   103 	- secGearType:	cluster of projectile gear (if present) (used to re-center camera)
   104 	- clanColor:	color of the (only) clan (default: 0xFF0204, which is a red tone)
   104 	- clanColor:	color of the (only) clan (default: -1, default first clan color)
   105 	- goalText:	A short string explaining the goal of the mission
   105 	- goalText:	A short string explaining the goal of the mission
   106 			(default: "Destroy all targets within the time!")
   106 			(default: "Destroy all targets within the time!")
   107 	- shootText:	A string which says how many times the player shot, “%d” is replaced
   107 	- shootText:	A string which says how many times the player shot, “%d” is replaced
   108 			by the number of shots. (default: "You have shot %d times.")
   108 			by the number of shots. (default: "You have shot %d times.")
   109 ]]
   109 ]]
   117 	if params.hogHat == nil then params.hogHat = "NoHat" end
   117 	if params.hogHat == nil then params.hogHat = "NoHat" end
   118 	if params.hogName == nil then params.hogName = loc("Trainee") end
   118 	if params.hogName == nil then params.hogName = loc("Trainee") end
   119 	if params.teamName == nil then params.teamName = loc("Training Team") end
   119 	if params.teamName == nil then params.teamName = loc("Training Team") end
   120 	if params.goalText == nil then params.goalText = loc("Eliminate all targets before your time runs out.|You have unlimited ammo for this mission.") end
   120 	if params.goalText == nil then params.goalText = loc("Eliminate all targets before your time runs out.|You have unlimited ammo for this mission.") end
   121 	if params.shootText == nil then params.shootText = loc("You have shot %d times.") end
   121 	if params.shootText == nil then params.shootText = loc("You have shot %d times.") end
   122 	if params.clanColor == nil then params.clanColor = 0xFF0204 end
   122 	if params.clanColor == nil then params.clanColor = -1 end
   123 	if params.teamGrave == nil then params.teamGrave= "Statue" end
   123 	if params.teamGrave == nil then params.teamGrave= "Statue" end
   124 	if params.teamFlag == nil then params.teamFlag = "cm_crosshair" end
   124 	if params.teamFlag == nil then params.teamFlag = "cm_crosshair" end
   125 	if params.wind == nil then params.wind = 0 end
   125 	if params.wind == nil then params.wind = 0 end
   126 
   126 
   127 	local solid, artillery
   127 	local solid, artillery