Development > Artwork

My SWAT's body model, other uniforms and skins v2.4 and v2.5

<< < (2/11) > >>

Sersanara:
I suppose that it is not the correct place for make this question, but i don't know where is, so here it is:

How can i add more skins for the human team in campaign or multiplayer? The game have 4 skins (urban, jungle, desert and arctic) and 2 multiplayer (yellow and cccp) but i want to add 4 more (mountain, forest, savanna and elite). I have changed the cl_team.c and cl_team.h files in src\client directory but there is no changes displayed in game.

(Changes in red)
cl_team.c
{      
   switch(id) {   
   case 0:   
      return _("Urban");
   case 1:   
      return _("Jungle");
   case 2:   
      return _("Desert");
   case 3:   
      return _("Arctic");
   case 4:   
      return _("Mountain");
   case 5:   
      return _("Forest");
   case 6:   
      return _("Savanna");
   case 7:   
      return _("Elite");
   case 8:   
      return _("Yellow");
   case 9:   
      return _("CCCP");
   }   
   Com_Error(ERR_DROP, "CL_GetTeamSkinName: Unknown skin id %i - max is %i", id, NUM_TEAMSKINS - 1);   
}      
...
{            
   /* create singleplayer skins */         
   if (MN_GetOption(OPTION_SINGLEPLAYER_SKINS) == NULL) {         
      menuOption_t *skins = NULL;      
      assert(NUM_TEAMSKINS_SINGLEPLAYER >= 8);   /*< the current code create 8 skins */   
      MN_AddOption(&skins, "urban", N_("Urban"), "0");      
      MN_AddOption(&skins, "jungle", N_("Jungle"), "1");      
      MN_AddOption(&skins, "desert", N_("Desert"), "2");      
      MN_AddOption(&skins, "arctic", N_("Arctic"), "3");      
      MN_AddOption(&skins, "mountain", N_("Mountain"), "4");      
      MN_AddOption(&skins, "forest", N_("Forest"), "5");      
      MN_AddOption(&skins, "savanna", N_("Savanna"), "6");      
      MN_AddOption(&skins, "elite", N_("Elite"), "7");      
      MN_RegisterOption(OPTION_SINGLEPLAYER_SKINS, skins);      
   }         
            
   /* create multiplayer skins */         
   if (MN_GetOption(OPTION_MULTIPLAYER_SKINS) == NULL) {         
      menuOption_t *skins = NULL;      
      assert(NUM_TEAMSKINS >= 10);      /*< the current code create 10 skins */
      MN_AddOption(&skins, "urban", N_("Urban"), "0");      
      MN_AddOption(&skins, "jungle", N_("Jungle"), "1");      
      MN_AddOption(&skins, "desert", N_("Desert"), "2");      
      MN_AddOption(&skins, "arctic", N_("Arctic"), "3");      
      MN_AddOption(&skins, "mountain", N_("Mountain"), "4");      
      MN_AddOption(&skins, "forest", N_("Forest"), "5");      
      MN_AddOption(&skins, "savanna", N_("Savanna"), "6");      
      MN_AddOption(&skins, "elite", N_("Elite"), "7");      
      MN_AddOption(&skins, "multionly_yellow", N_("Yellow"), "8");      
      MN_AddOption(&skins, "multionly_cccp", N_("CCCP"), "9");      
      MN_RegisterOption(OPTION_MULTIPLAYER_SKINS, skins);      
   }         
}            

cl_team.h

#define NUM_TEAMSKINS   10
#define NUM_TEAMSKINS_SINGLEPLAYER 8

Anybody could help me, please?

bayo:
while we are here, what about moving this content (skin definition) into a script? is there any problem with it? i mean problem with MP game or thing like that.

Anyway i think we an some changes for 2.4, but not for 2.3 (i say it cause the code you show is a little old).

bayo:
then i think i will work on that this weekend, i dont think it is a big task

bayo:
I add ./base/ufos/skins.ufo on the trunk. You  easily can add your skins here. Not sure it will stay like that, but i dont think too much thing will change.

Sersanara:
when and where can i take this file? I'm very interesting. Do i have to download the beta 2.4 version or can i apply in 2.3?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version