![]() |
![]() |
|
|
|
#1
|
|||
|
|||
|
Right basically what I want to do is change the perk colours within Marco's ServerPerks (my own version). I have found where to change them which I changed the values to:
Code:
static function byte PreDrawPerk( Canvas C, byte Level, out Material PerkIcon, out Material StarIcon )
{
if ( Level>10 )
{
PerkIcon = Default.OnHUDGoldIcon;
StarIcon = Class'HUDKillingFloor'.Default.VetStarGoldMaterial;
Level-=10;
C.SetDrawColor(250, 220, 0, C.DrawColor.A);
}
else if ( Level>5 )
{
PerkIcon = Default.OnHUDGoldIcon;
StarIcon = Class'HUDKillingFloor'.Default.VetStarGoldMaterial;
Level-=5;
C.SetDrawColor(200, 200, 200, C.DrawColor.A);
}
else
{
PerkIcon = Default.OnHUDIcon;
StarIcon = Class'HUDKillingFloor'.Default.VetStarMaterial;
C.SetDrawColor(220, 130, 0, C.DrawColor.A);
}
return Min(Level,15);
}
Here is what is seems to do: Levels 0 - 5 = Casual red colour (standard only but changes brightness) Levels 6 - 10 = Whity gold standard colour (standard only but changes brightness) Levels 11 + = Custom set colour (works customed). Why is is the third perk colour works but the other two don't? Both second and third colour share the same picture so it's not the picture itself. Last edited by FluX; 05-29-2011 at 03:49 AM. |
|
#2
|
||||
|
||||
|
I have no idea what you're asking.
__________________
Quote:
|
|
#3
|
|||
|
|||
|
Basically what im trying to do is change the perk picture (the perks that go ontop of your character and bottom left of the screen) to custom colours. I have changed the perks to go bronze, silver and then gold BUT for some reason the first two perks (Red Perk - levels 0 - 5 and Gold Perk - levels 6 - 10) doesn't want to change colour but changes brightness of the colour.
The past part of the code can change colour to whatever RGB code I change it to (originally green). I have checked the code but it's exactly the same for all three parts of the perks. The texture picture is not the answer either as the code is saying they are using the same texture. How can I get the other two perk sections to work with my specific colour? |
|
#4
|
|||
|
|||
|
*Bump*
Please someone help me get this working, I can't change colour of the perk but only the saturation/brightness of it. |
|
#5
|
|||
|
|||
|
Not sure if this is what you're asking about but... red perk icon only consists of color Red, so you can only scale the color value between black and red.
Yellow perk icon consists of colors Red and Green, thus allowing you to only use red, green, yellow and black color scales (not blue). If you want to modify blue color of the icons you need to import new white perk icon textures. |
|
#6
|
|||
|
|||
|
Right i've made my own picture perks to replace them. I can get this working but I can't get the stars to work at all. Anyone know how to edit the stars in-game (next to the perk symbol) that represents perk level?
I've seen that there is a SRHUDKillingFloor.uc file but don't want to touch (plus I can't find the picture names there). ----------------------Got above working--------------------- Found and changed the perk stars but im having a problem with a custom picture set im doing. I can change the "OnHUDIcon" and "OnHUDGoldIcon" to my custom pictures but I can't get my other custom pictures to work at the same time. (Located at bottom of every perk in defaultproperties: Code:
OnHUDIcon=Texture'FluXiPerksTex.BBerserker' OnHUDGoldIcon=Texture'FluXiPerksTex.GBerserker' How could I make a "OnHUDSilverIcon" so I can edit all perks and add my silver version to it? I've tried to do what I found in the ServerPerksV3 HUD addon had but I can only get stars to work and not the perks itself. They still show up as a gold perk (original). Last edited by FluX; 06-01-2011 at 04:54 AM. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|