UE1 - UT Team Color on Arms

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

Superunknown II

New Member
Mar 23, 2008
23
0
0
I tried asking around about this before, but it looks like this is more a scripting problem than I thought. I'm trying to get the Male Soldier (from UT99) to have multiple team colors on the shoulder pads (in the arms area). I added the extra lines in the .int file to reference the extra team colors like this (see below) But even then, the colors in the arms don't change when testing them in the game? So I'm guessing this is a scripting issue here? Seems like a pretty easy fix, but I don't have any background in unreal script. Any help would be appreciated, thanks guys.

Code:
faun3 (default skin for material 3)
faun3t_0 (red team color for material 3)
faun3t_1 (blue team color for material 3)
faun3t_2 (green team color for material 3)
faun3t_3 (yellow team color for material 3)

Arms_with_tc.jpg
 
Last edited:

Haadstall

Have A Spacesuit - Will Travel
Jun 28, 2010
13
0
0
haadhills.16mb.com
The good news is that You'll make it. The bad news - You have to create a lots of stuff.

First, You must build standalone skin package containing all required skin materials from 1 to 5 (talk texture). Note that package name must be prefixed with "Soldier", because UT engine searches for skins by the mesh name (in our case, Soldier mesh in Botpack.u).

So, You've created your *.utx-package (here and further - SoldierSupUn.utx). The next step - You define all skin materials in SoldierSupUn.int:
Code:
[Public]
Object=(Name=SoldierSupUn.faun1,Class=Texture,Description="SuperunknownII Skin")
Object=(Name=SoldierSupUn.faun2,Class=Texture)
Object=(Name=SoldierSupUn.faun3,Class=Texture)
Object=(Name=SoldierSupUn.faun4,Class=Texture)
Object=(Name=SoldierSupUn.faun4Brock,Class=Texture,Description="Brock")
Object=(Name=SoldierSupUn.faun4Harlin,Class=Texture,Description="Harlin")
Object=(Name=SoldierSupUn.faun4Johnson,Class=Texture,Description="Johnson")
Object=(Name=SoldierSupUn.faun5Brock,Class=Texture)
Object=(Name=SoldierSupUn.faun5Harlin,Class=Texture)
Object=(Name=SoldierSupUn.faun5Johnson,Class=Texture)
Object=(Name=SoldierSupUn.faun1t_0,Class=Texture)
Object=(Name=SoldierSupUn.faun1t_1,Class=Texture)
Object=(Name=SoldierSupUn.faun1t_2,Class=Texture)
Object=(Name=SoldierSupUn.faun1t_3,Class=Texture)
Object=(Name=SoldierSupUn.faun2t_0,Class=Texture)
Object=(Name=SoldierSupUn.faun2t_1,Class=Texture)
Object=(Name=SoldierSupUn.faun2t_2,Class=Texture)
Object=(Name=SoldierSupUn.faun2t_3,Class=Texture)
Then add your new custom textures:
Code:
Object=(Name=SoldierSupUn.faun3t_0,Class=Texture)
Object=(Name=SoldierSupUn.faun3t_1,Class=Texture)
Object=(Name=SoldierSupUn.faun3t_2,Class=Texture)
Object=(Name=SoldierSupUn.faun3t_3,Class=Texture)
Next, third material - width shoulder pads - is not a "team material", and appears to be static during team change. This behavior is defined in TournamentPlayer.SetMultiSkin and Bot.SetMultiSkin functions. Main strategy is that the mesh has only two team materials, stored as indexes in default properties of corresponding player/bot class. And we have now situation, when one more material must be selectable.

In order to make third material team-dependable (faun3 will be placed on it) You have to create custom player and bot classes (for example, SupUnWarrior and SupUnWarriorBot), subclassing them under TMale2 and TMale2Bot, respectively. Save them into new UnrealClass package located in your UT\System directory and name it SupUn.u. Finally, define in each new classes SetMultiSkin function and modify it's functionality to make third material team-sensitive. Look at the example in attachment, You'll notice new global variable named TeamSkin3 - that's it!

After that, add following entries to SoldierSupUn.int:
Code:
Object=(Name=SupUn.SupUnWarrior,Class=Class,MetaClass=Botpack.TournamentPlayer,Description="SuperunknownII Warrior")
Object=(Name=SupUn.SupUnWarriorBot,Class=Class,MetaClass=BotPack.Bot,Description="SuperunknownII Warrior")
and You'll be able to select "SuperunknownII Warrior", which has team-coloured shoulder pads.

P.S. Waiting for further questions :)
 

Attachments

  • SupUnWarrior.zip
    817 bytes · Views: 3
Last edited:

Superunknown II

New Member
Mar 23, 2008
23
0
0
Thanks, but my PC went down a few days ago (maybe it was weather, it's been hot here in NYC :eek:). The parts I ordered came in, hopefully I'll have it back up by tonight or Wednesday evening, so I can apply what you've put in into my skins. And yes, I might have a few questions here... ;)
 

Haadstall

Have A Spacesuit - Will Travel
Jun 28, 2010
13
0
0
haadhills.16mb.com
Updated

So here we are, this is complete extra-skin package (with textures sampled from screenshots above).
 

Attachments

  • SUWPack20.zip
    949.6 KB · Views: 6