Several LUA brain busters
Posted: Sat Dec 31, 2011 8:42 pm
Scenario #1: Deathmatch
Here's an interesting one. I'm building a Deathmatch mode (dubbed Combat Training) on the Xbox. The code basically forces everyone onto team 1 an has no AI spawn. When the first player spawns the first time they're assigned to team 1, the second person team 2, the third team 3, etc. The team # is stored in a variable on a per-player basis. When they die, they're reassigned to team 1, they respawn, then are reassigned to their stored team. I don't have any LUA code yet, just pseudo code to understand the process.
Now, here's the issue - assigning Victory. My thought was once the assigned number of points are reached the winner is assigned to team 1 while all losers are assigned to team 2. Here's the problem: if a losing player is on team 1 and we assign the winner to team 1 how do we move the loser while keeping the winner on the winning team?
Scenario #2: Bounty Hunters
Simple enough -- this is a wave-based mode, but different bounties have different "credit" (point) values. Some waves have multiple. Each bounty is marked with MapAddEntityMarker(). The question is this: what are the different valid colors that can be used? Anyone know? I'd like to use about a half a dozen different point values.
More to come.
Here's an interesting one. I'm building a Deathmatch mode (dubbed Combat Training) on the Xbox. The code basically forces everyone onto team 1 an has no AI spawn. When the first player spawns the first time they're assigned to team 1, the second person team 2, the third team 3, etc. The team # is stored in a variable on a per-player basis. When they die, they're reassigned to team 1, they respawn, then are reassigned to their stored team. I don't have any LUA code yet, just pseudo code to understand the process.
Now, here's the issue - assigning Victory. My thought was once the assigned number of points are reached the winner is assigned to team 1 while all losers are assigned to team 2. Here's the problem: if a losing player is on team 1 and we assign the winner to team 1 how do we move the loser while keeping the winner on the winning team?
Scenario #2: Bounty Hunters
Simple enough -- this is a wave-based mode, but different bounties have different "credit" (point) values. Some waves have multiple. Each bounty is marked with MapAddEntityMarker(). The question is this: what are the different valid colors that can be used? Anyone know? I'd like to use about a half a dozen different point values.
More to come.