equal
deleted
inserted
replaced
94 - artillery: if true, the hog can’t move (default: false) |
94 - artillery: if true, the hog can’t move (default: false) |
95 - hogHat: hat of the hedgehog (default: "NoHat") |
95 - hogHat: hat of the hedgehog (default: "NoHat") |
96 - hogName: name of the hedgehog (default: "Trainee") |
96 - hogName: name of the hedgehog (default: "Trainee") |
97 - teamName: name of the hedgehog’s team (default: "Training Team") |
97 - teamName: name of the hedgehog’s team (default: "Training Team") |
98 - teamGrave: name of the hedgehog’s grave |
98 - teamGrave: name of the hedgehog’s grave |
|
99 - teamFlag: name of the team’s flag (default: "cm_crosshair") |
99 - clanColor: color of the (only) clan (default: 0xFF0204, which is a red tone) |
100 - clanColor: color of the (only) clan (default: 0xFF0204, which is a red tone) |
100 - goalText: A short string explaining the goal of the mission |
101 - goalText: A short string explaining the goal of the mission |
101 (default: "Destroy all targets within the time!") |
102 (default: "Destroy all targets within the time!") |
102 - shootText: A string which says how many times the player shot, “%d” is replaced |
103 - shootText: A string which says how many times the player shot, “%d” is replaced |
103 by the number of shots. (default: "You have shot %d times.") |
104 by the number of shots. (default: "You have shot %d times.") |
108 if params.teamName == nil then params.teamName = loc("Training Team") end |
109 if params.teamName == nil then params.teamName = loc("Training Team") end |
109 if params.goalText == nil then params.goalText = loc("Eliminate all targets before your time runs out.|You have unlimited ammo for this mission.") end |
110 if params.goalText == nil then params.goalText = loc("Eliminate all targets before your time runs out.|You have unlimited ammo for this mission.") end |
110 if params.shootText == nil then params.shootText = loc("You have shot %d times.") end |
111 if params.shootText == nil then params.shootText = loc("You have shot %d times.") end |
111 if params.clanColor == nil then params.clanColor = 0xFF0204 end |
112 if params.clanColor == nil then params.clanColor = 0xFF0204 end |
112 if params.teamGrave == nil then params.teamGrave= "Statue" end |
113 if params.teamGrave == nil then params.teamGrave= "Statue" end |
|
114 if params.teamFlag == nil then params.teamFlag = "cm_crosshair" end |
113 if params.wind == nil then params.wind = 0 end |
115 if params.wind == nil then params.wind = 0 end |
114 |
116 |
115 local solid, artillery |
117 local solid, artillery |
116 if params.solidLand == true then solid = gfSolidLand else solid = 0 end |
118 if params.solidLand == true then solid = gfSolidLand else solid = 0 end |
117 if params.artillery == true then artillery = gfArtillery else artillery = 0 end |
119 if params.artillery == true then artillery = gfArtillery else artillery = 0 end |
135 MinesNum = 0 |
137 MinesNum = 0 |
136 Explosives = 0 |
138 Explosives = 0 |
137 |
139 |
138 SetWind(params.wind) |
140 SetWind(params.wind) |
139 |
141 |
140 AddTeam(loc(params.teamName), params.clanColor, params.teamGrave, "Island", "Default", "Flowerhog") |
142 AddTeam(loc(params.teamName), params.clanColor, params.teamGrave, "Flowerhog", "Default", params.teamFlag) |
141 |
143 |
142 player = AddHog(loc(params.hogName), 0, 1, params.hogHat) |
144 player = AddHog(loc(params.hogName), 0, 1, params.hogHat) |
143 SetGearPosition(player, params.hog_x, params.hog_y) |
145 SetGearPosition(player, params.hog_x, params.hog_y) |
144 end |
146 end |
145 |
147 |