Battlezone II team colors
Posted: Tue Mar 19, 2013 5:27 pm
How would I change my team color in an instant action map? Making game.teamcolors 1 just makes my team red, but I want to change it to green!
http://bzforum.matesfamily.org/ -- Battlezone, Battlezone 2 forums
https://bzforum.matesfamily.org/
Code: Select all
// Default teamcolors for DM/FFA. These will be pushed from the server
// to clients. If you don't like what the server pushed to you as a
// client, look at the console commands game.setdefaultcolors,
// game.setgameprefscolors, game.setservercolors,
// game.swapteamcolors. There are also network chat commands
// "/setdefaultcolors", "/setgameprefscolors", "/setservercolors", and
// "/swapteamcolors" , which do the same thing.
//
// If a teamcolor is all zeroes for the first 3 values (e.g. red,
// green & blue), then it's treated as not used -- the default skin
// for a unit is used. If any of r/g/b is not zero, then it's used,
// and the alpha value is set to 255.
//
// Further notes on use -- these colors are a *multiplier* on the
// current colors. You should treat them as having an implicit
// divide-by-255 when they're used -- i.e. setting a channel to 255
// means multiplying by 255/255, i.e. multiplying by 1.0. If you set a
// channel to 127, you're multiplying by 127/255, i.e. multiplying by
// 0.5. Thus, there's no way to brighten up the current colors, only
// darken. The 'current color' referred to above is what DX9
// calculated from various things, including the vertex color in the
// model, base texture (skin), and any lighting applied.
// FFA & DM colors, one per team.
TeamColorFFA0 = " 0 0 0 0" // no special color
TeamColorFFA1 = "255 31 31 255" // red
TeamColorFFA2 = "255 255 31 255" // yellow
TeamColorFFA3 = " 31 255 31 255" // green
TeamColorFFA4 = " 31 31 255 255" // blue
TeamColorFFA5 = " 31 255 255 255" // cyan
TeamColorFFA6 = "255 31 255 255" // violet
TeamColorFFA7 = "255 255 255 255" // white
TeamColorFFA8 = " 31 31 31 255" // black
TeamColorFFA9 = " 0 0 0 0" // no special color
TeamColorFFA10= " 0 0 0 0" // no special color
TeamColorFFA11= " 0 0 0 0" // no special color
TeamColorFFA12= " 0 0 0 0" // no special color
TeamColorFFA13= " 0 0 0 0" // no special color
TeamColorFFA14= " 0 0 0 0" // no special color
TeamColorFFA15= " 0 0 0 0" // no special color
// And, for teamplay (i.e. team strat or MPI) games, the teamcolors.
// TeamA is used for teams 1..5, and TeamB is for teams 6..10
TeamColorTeamA = "255 31 31 255" // red
TeamColorTeamB = "31 31 255 255" // blue
// Per-team colors, even w/ teamplay on. The '0' slot is for the
// commander; 1..4 are thugs. Note - if these are not specified
// (i.e. they're commented out w/ the // at the left end of the line),
// then the TeamColorA/TeamColorB is auto-copied into these values
//TeamColorTeamA0 = "255 31 31 255" // red
//TeamColorTeamA1 = "255 31 31 255" // red
//TeamColorTeamA2 = "255 31 31 255" // red
//TeamColorTeamA3 = "255 31 31 255" // red
//TeamColorTeamA4 = "255 31 31 255" // red
//TeamColorTeamB0 = "31 31 255 255" // blue
//TeamColorTeamB1 = "31 31 255 255" // blue
//TeamColorTeamB2 = "31 31 255 255" // blue
//TeamColorTeamB3 = "31 31 255 255" // blue
//TeamColorTeamB4 = "31 31 255 255" // blue
Code: Select all
// The following are settable by the user. They are assigned to the
// default values, as if this file was empty. Comments above them
// should indicate what possible settings are available.
// Note that only things that cannot affect game synchronization are
// in here (views, etc).
// User's changes should be placed in this file, below the
// [UserPrefs] line below.
[UserPrefs]
// FFA & DM colors, one per team.
TeamColorFFA0 = " 0 0 0 0" // no special color
TeamColorFFA1 = "255 31 31 255" // red
TeamColorFFA2 = "255 255 31 255" // yellow
TeamColorFFA3 = " 31 255 31 255" // green
TeamColorFFA4 = " 31 31 255 255" // blue
TeamColorFFA5 = " 31 255 255 255" // cyan
TeamColorFFA6 = "255 31 255 255" // violet
TeamColorFFA7 = "255 255 255 255" // white
TeamColorFFA8 = " 31 31 31 255" // black
TeamColorFFA9 = " 0 0 0 0" // no special color
TeamColorFFA10= " 0 0 0 0" // no special color
TeamColorFFA11= " 0 0 0 0" // no special color
TeamColorFFA12= " 0 0 0 0" // no special color
TeamColorFFA13= " 0 0 0 0" // no special color
TeamColorFFA14= " 0 0 0 0" // no special color
TeamColorFFA15= " 0 0 0 0" // no special color
// And, for teamplay (i.e. team strat or MPI) games, the teamcolors.
// TeamA is used for teams 1..5, and TeamB is for teams 6..10
TeamColorTeamA = "255 31 31 255" // red
TeamColorTeamB = "31 31 255 255" // blue
// Per-team colors, even w/ teamplay on. The '0' slot is for the
// commander; 1..4 are thugs. Note - if these are not specified
// (i.e. they're commented out w/ the // at the left end of the line),
// then the TeamColorA/TeamColorB is auto-copied into these values
//TeamColorTeamA0 = "31 31 255 255" // blue
//TeamColorTeamA1 = "31 31 255 255" // blue
//TeamColorTeamA2 = "255 31 31 255" // red
//TeamColorTeamA3 = "255 31 31 255" // red
//TeamColorTeamA4 = "255 31 31 255" // red
//TeamColorTeamB0 = "31 31 255 255" // blue
//TeamColorTeamB1 = "31 31 255 255" // blue
//TeamColorTeamB2 = "31 31 255 255" // blue
//TeamColorTeamB3 = "31 31 255 255" // blue
//TeamColorTeamB4 = "31 31 255 255" // blue
AHA! LMM was what I used! I remember it being very easy to swap team colors when I wanted. Obligatory n00b questions:AHadley wrote:LMM is definitely the way to go to get this working, but Nielk1 wants to upgrade it before he releases it standalone.
Tried all of them, doesn't work.AHadley wrote:That's odd. Try setting game.teamcolors to 2 and see what happens.
Code: Select all
// RS-V: Teamcolor Keys
Bind("+ctrl 6", "game.teamcolors 0"); //No Teamcolors
Bind("+ctrl 7", "game.setgameprefscolors"); //Localpref colors
Bind("+ctrl 8", "game.setservercolors"); //Servers Localpref colors
Bind("+ctrl 9", "game.setdefaultcolors"); //Default teamcolors
Bind("+ctrl 0", "game.swapteamcolors"); //Swap Teamcolors