Announcement

Collapse
No announcement yet.

trying to put 2 team textures on a vehicle turret that bolth change for blue or red

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    trying to put 2 team textures on a vehicle turret that bolth change for blue or red

    I'm trying to make my vehicles turret have 2 textures that are bolth team related, so the blue team's turret uses bolth blue textures and the red team's turret uses bolth red textures.

    I've tryed this but it 'didn't work:

    RedSkin=
    Skins(1)=FinalBlend'ASMDTANK_TEX.Tank.IceTankRedFB '
    Skins(2)=Texture'ASMDTANK_TEX.Tank.IcetankRedTurre t';
    BlueSkin=
    Skins(1)=FinalBlend'ASMDTANK_TEX.Tank.IceTankBlueF B'
    Skins(2)=Texture'ASMDTANK_TEX.Tank.IcetankBlueTurr et';

    and

    redskin= the rest all in one line*
    blueskin= the rest all in one line*

    my compiler isn't giving me any errors but it isn't working, I wonder if theres even support for these default properties.

    I know the ionplasmatank uses the multi texture system but it doesn't have any team textures.

    If anyone can help me out with this, be my guest.

    #2
    I doubt you can handle this just by setting defaultproperties. You'll probably need to make a RedSkins array and a BlueSkins array, and modify the skin assignment so that the right skins are used.

    Comment


      #3
      I've found a line about teamcolors on vehicles in the ONSWEAPON class.

      //Skins
      var() Material RedSkin1;
      var() Material BlueSkin1;
      var() Material RedSkin2;
      var() Material BlueSkin2;
      var() Material RedSkin3;
      var() Material BlueSkin3;
      var() Material RedSkin4;
      var() Material BlueSkin4;

      and below that


      simulated function SetTeam(byte T)
      {
      Team = T;
      if (T == 0 && RedSkin != None)
      {
      Skins[0] = RedSkin;
      RepSkin = RedSkin;
      Skins[1] = RedSkin1;
      Skins[2] = RedSkin2;
      Skins[3] = RedSkin3;
      Skins[4] = RedSkin4;

      }
      else if (T == 1 && BlueSkin != None)
      {
      Skins[0] = BlueSkin;
      RepSkin = BlueSkin;
      Skins[1] = BlueSkin1;
      Skins[2] = BlueSkin2;
      Skins[3] = BlueSkin3;
      Skins[4] = BlueSkin4;

      }
      }

      but it doesn't seem to affect it.
      whats wrong here, am I using the wrong code

      Comment


        #4
        Hyper has it, Use:

        RedSkin1=FinalBlend'ASMDTANK_TEX.Tank.IceTankRedFB '
        RedSkin2=Texture'ASMDTANK_TEX.Tank.IcetankRedTurre t'

        BlueSkin1=FinalBlend'ASMDTANK_TEX.Tank.IceTankBlue FB'
        BlueSkin2=Texture'ASMDTANK_TEX.Tank.IcetankBlueTur ret'

        Comment


          #5
          Originally posted by ^::B!G-A::
          Hyper has it, Use:

          RedSkin1=FinalBlend'ASMDTANK_TEX.Tank.IceTankRedFB '
          RedSkin2=Texture'ASMDTANK_TEX.Tank.IcetankRedTurre t'

          BlueSkin1=FinalBlend'ASMDTANK_TEX.Tank.IceTankBlue FB'
          BlueSkin2=Texture'ASMDTANK_TEX.Tank.IcetankBlueTur ret'
          uhm yeah I got that part, Its in there allright. (forgot to add that to the post on top ^ ).

          but even when I checked with that In it didn't want to work.

          LATER

          Ok I got it I think, I've added this part:

          simulated function SetTeam(byte T)
          {
          Team = T;
          if (T == 0 && RedSkin != None)
          {

          Skins[1] = RedSkin1;
          Skins[2] = RedSkin2;
          Skins[3] = RedSkin3;
          Skins[4] = RedSkin4;

          }

          else if (T == 1 && BlueSkin != None)
          {
          Skins[1] = BlueSkin0;
          Skins[1] = BlueSkin1;
          Skins[2] = BlueSkin2;
          Skins[3] = BlueSkin3;
          Skins[4] = BlueSkin4;

          }

          else if (T == 1)
          {

          Skins[1] = BlueSkin0;
          Skins[1] = BlueSkin1;
          Skins[2] = BlueSkin2;
          Skins[3] = BlueSkin3;
          Skins[4] = BlueSkin4;

          }
          } ^ thats because the problem only appeared on the blue vehicle.

          Comment

          Working...
          X