Urgent - gamemodes
Moderator: Moderators
- jangoisbaddest
- Lieutenant General
- Posts: 661
- Joined: Mon Feb 27, 2006 12:10 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: All Along The Watchtower
Urgent - gamemodes
Does anyone know where you can change what the name and description box contains in the main menu for gamemodes? I have created a new gamemode, but it is using the conquest scripts, and it has the same conquest box and description - I would like to change that.
- Teancum
- Jedi Admin
- Posts: 11080
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
RE: Urgent - gamemodes
You can't. Not without rebuilding the entire shell, which very much not recommended.
- jangoisbaddest
- Lieutenant General
- Posts: 661
- Joined: Mon Feb 27, 2006 12:10 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: All Along The Watchtower
RE: Urgent - gamemodes
Shoot. Perhaps, then, someone could tell me how to force a player to spawn as a certain team?
- [RDH]Zerted
- Gametoast Staff
- Posts: 2982
- Joined: Sun Feb 26, 2006 7:36 am
- Projects :: Bos Wars AI - a RTS game
- xbox live or psn: No gamertag set
- Location: USA
- Contact:
RE: Urgent - gamemodes
What do you mean by "player". A human player? A bot? Someone with a certain name? Someone who is a certain class?
- jangoisbaddest
- Lieutenant General
- Posts: 661
- Joined: Mon Feb 27, 2006 12:10 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: All Along The Watchtower
RE: Urgent - gamemodes
Sorry, yes, a human player.
- [RDH]Zerted
- Gametoast Staff
- Posts: 2982
- Joined: Sun Feb 26, 2006 7:36 am
- Projects :: Bos Wars AI - a RTS game
- xbox live or psn: No gamertag set
- Location: USA
- Contact:
RE: Urgent - gamemodes
I haven't figured out to force a human play to spawn as a certain team, but I can discourage them from doing it. You can instantly kill any human spawning on the team you don't like. Use something like:
humanKiller = OnCharacterSpawn(
function(player)
if isCharacterHuman(player) then
ShowMessageText( "message.wrongSide", DEF )
KillObject( GetCharacterUnit(player) )
end
end, DEF
)
This will kill any human player spawning on the DEF side. The ShowMessageText... isn't needed, but you might want to tell the player why he is getting killed.
humanKiller = OnCharacterSpawn(
function(player)
if isCharacterHuman(player) then
ShowMessageText( "message.wrongSide", DEF )
KillObject( GetCharacterUnit(player) )
end
end, DEF
)
This will kill any human player spawning on the DEF side. The ShowMessageText... isn't needed, but you might want to tell the player why he is getting killed.