Jump to content
Sign in to follow this  
terox

Changing the icon in the mp selection screen

Recommended Posts

I want to be able to display different icons next to the players name in the mp setup screen once they select a unit on a side

Specifically i mean the

west USA flag icon

East Russian Flag icon

Resistance FIA flag icon

that is placed next to your name when you select a side in the mp setup role

i have searched the resource.bin file and the main config for the entries for them.

The only entry i can find is cfgWorlds in the main config

Quote[/b] ]

class CfgWorlds

{

access=1;

eastSign="east_01.paa";

westSign="east_01.paa";

// westSign="west_01.paa";

eastFlag="rus_vlajka.pac";

westFlag="rus_vlajka.pac";

// westFlag="usa_vlajka.pac";

guerrilaSign="guer_01.paa";

guerrilaFlag="guer_01.paa";

as you can see, i commented out the west BIS standard entry and tried to use the russian settings on west for testing purposes.

However the us flag was still shown next to my player name when i ran a mod test mission, selecting side west.

My conclusion, is that the entries for these icons is elsewhere, but i cant find threm

Any help would be greatly apprciated

Share this post


Link to post
Share on other sites

the file reference i am looking for is

usflag_normal.paa

rusflag_normal.paa

fiaflag_normal.paa

they are, thx to patton, in the misc pbo of the dta folder

however i cant find any reference to them in either the resource bin or main config

its the little flag icon, that is displayed next to your name when you select a player slot, that i am wanting to manipulate

don't suppose you have an unbinarised version of the context.bin do ya, i can't get into it

reason for wanting manipulation.

& without giving too much info out

I have 2 basic classes of soldier types that all other units are defined from

(These are differing config values for various attributes)

lets say for instance (and this is only for example clarification) that we have

1) US Rifleman of type class A = Blind obese 1 legged and deaf

2) US rifleman of type class B = fit as a fiddle but a pyscopath

in their config entries i can use

vehicleClass="Cripples";

vehicleClass="Lunatics";

This will allow the mission designer to differentiate the two classes when creating the mission

displayName="US Rifleman cripple";

displayName="US Rifleman lunatic";

this attrbute is the info that is given when a unit passes on a contact report

and the name of the unit type in the mp player selection screen

My problem is, that i dont want the player, ingame to be able to differentiate between the US Rifleman Cripple and Lunatic without actually observing them for the finer differences in their uniforms and movements

but i do need to differentiate between the unit classes when players select their playing slot.

I figured out that a possible way to do this is.

Have 2 west flags, one which defines a class A unit and one which defines a class B unit

so basically

a player selects a us rifleman in the mp selection screen, and then a us flag appears next to his name, and this us flag has a little A or B letter within it, thus the player knows what class type that unit is

Share this post


Link to post
Share on other sites

This might be what your looking for. Or at least a better start...

Quote[/b] ]

class RscDisplayMultiplayerSetup

{

idd = IDD_MP_SETUP;

movingEnable = true;

controlsBackground[]=

{

Background3,

Background4,

Background5

};

class Background3 : RscText

{

x = 0.0;

y = 0.125;

w = 1;

h = 0.75;

text = ;

colorBackground[] = {0, 0, 0, 0.5};

};

class Background4 : RscText

{

x = 0.0;

y = 0.0;

w = 1;

h = 0.125;

text = ;

colorBackground[] = {0, 0, 0, 1};};

class Background5 : RscText

{

x = 0.0;

y = 0.875;

w = 1;

h = 0.125;

text = ;

colorBackground[] = {0, 0, 0, 1};

};

objects[]=

{

Notebook

};

class Notebook : RscObject

{

model = "notebook.p3d";

idc = -1;

type = CT_OBJECT_CONT_ANIM;

autoOpen = false;

autoZoom = false;

animSpeed = 1;

animation = "notebook.rtm"

animPhase = 1;

position[] = {0, -0.175, 0.25};

positionBack[] = {0, -0.175, 0.25};

direction[] = {0, sin 30, cos 30};

up[] = {0, cos 30, -sin 30};

inBack = false;

enableZoom = false;

zoomDuration = 1;

scale=1;

controls[] =

{

FrameHeader,

TextMission,

ValueMission,

TextIsland,

ValueIsland,

TextDescription,

ValueDescription,

TextSide,

<span style='color:red'>ButtonWest,

ButtonEast,

ButtonGuerrila,

ButtonCivilian,</span>

TextRoles,

ValueRoles,

TextParam1,

ValueParam1,

TextParam2,

ValueParam2,

TextPool,

ValuePool,

TextMessage,

ButtonEnableAll,

ButtonLock

};

.......

This is from the BIS Commented Config rscScreen.hpp file. Im thinking those settings in red might help you out. I imagine this will need to be changed on both client and server if it can be edited.

Share this post


Link to post
Share on other sites

thx for the input, however those red entries refer to the icon (face and background flag with west or east written on them), and is used for the display on the left hand side of the mp setup screen (which is green in colour)

its the flag on the right hand side that is displayed next to your name that i am after, that's specific to a player, the left hand side isn't

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×