Page 1 of 1
Urgent - gamemodes
Posted: Sun Mar 19, 2006 6:37 pm
by jangoisbaddest
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.
RE: Urgent - gamemodes
Posted: Sun Mar 19, 2006 7:24 pm
by Teancum
You can't. Not without rebuilding the entire shell, which very much not recommended.
RE: Urgent - gamemodes
Posted: Sun Mar 19, 2006 7:45 pm
by jangoisbaddest
Shoot. Perhaps, then, someone could tell me how to force a player to spawn as a certain team?
RE: Urgent - gamemodes
Posted: Sun Mar 19, 2006 7:50 pm
by [RDH]Zerted
What do you mean by "player". A human player? A bot? Someone with a certain name? Someone who is a certain class?
RE: Urgent - gamemodes
Posted: Sun Mar 19, 2006 7:54 pm
by jangoisbaddest
Sorry, yes, a human player.
RE: Urgent - gamemodes
Posted: Sun Mar 19, 2006 8:02 pm
by [RDH]Zerted
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.