Urgent - gamemodes

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
jangoisbaddest
Lieutenant General
Lieutenant General
Posts: 661
Joined: Mon Feb 27, 2006 12:10 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: All Along The Watchtower

Urgent - gamemodes

Post 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.
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

RE: Urgent - gamemodes

Post by Teancum »

You can't. Not without rebuilding the entire shell, which very much not recommended.
User avatar
jangoisbaddest
Lieutenant General
Lieutenant General
Posts: 661
Joined: Mon Feb 27, 2006 12:10 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: All Along The Watchtower

RE: Urgent - gamemodes

Post by jangoisbaddest »

Shoot. Perhaps, then, someone could tell me how to force a player to spawn as a certain team?
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

RE: Urgent - gamemodes

Post 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?
User avatar
jangoisbaddest
Lieutenant General
Lieutenant General
Posts: 661
Joined: Mon Feb 27, 2006 12:10 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: All Along The Watchtower

RE: Urgent - gamemodes

Post by jangoisbaddest »

Sorry, yes, a human player.
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

RE: Urgent - gamemodes

Post 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.
Post Reply