Report, edit, etc...Posted by Kazuma on 2006-12-16 at 18:02:27
Ok in games i've seen units pics as black or weird colors i was jus wondering how to do this? i mean i've messed with %hp and max hp but it doesn't affect any help would be nice!!
Report, edit, etc...Posted by DT_Battlekruser on 2006-12-17 at 00:43:28
To create units with strangely colored wireframes, you can use one of two methods.
1. Check the unit's Fraction Max HP Flag
In Starforge or SCMDraft under Unit Properties you will notice a small box called "HP2" or something like that. Set this to any nonzero value, and it trips the fraction flag for max hp such that a unit with 100% HP will have (max hp + 1)/(max hp) as its HP value.
Strange wireframes are only achieved when the ratio of current hp to max hp is very high, such as 2/1 or 3/2 HP.
It is a common thing that people say that different HP2 values achieve different results. This is a lie. ANY NONZERO VALUE in the HP2 box will increment the current HP to one more than the max HP.
2. Use Sprite-Units
In Starforge, you can go to the Sprite Layer. If you select "Place as Units", any units you place will have (units.dat default HP)/(set max HP) hit points. For example, if you gave a Nexus 150 max hit points in the Unit Properties dialog, a sprite-unit nexus would have 750/150 HP.
Be warned, sprite units may function differently than real units.
Report, edit, etc...Posted by Kazuma on 2006-12-17 at 01:59:54
QUOTE(DT_Battlekruser @ Dec 17 2006, 12:43 AM)
To create units with strangely colored wireframes, you can use one of two methods.
1. Check the unit's Fraction Max HP Flag
In Starforge or SCMDraft under Unit Properties you will notice a small box called "HP2" or something like that. Set this to any nonzero value, and it trips the fraction flag for max hp such that a unit with 100% HP will have (max hp + 1)/(max hp) as its HP value.
Strange wireframes are only achieved when the ratio of current hp to max hp is very high, such as 2/1 or 3/2 HP.
It is a common thing that people say that different HP2 values achieve different results. This is a lie. ANY NONZERO VALUE in the HP2 box will increment the current HP to one more than the max HP.
2. Use Sprite-Units
In Starforge, you can go to the Sprite Layer. If you select "Place as Units", any units you place will have (units.dat default HP)/(set max HP) hit points. For example, if you gave a Nexus 150 max hit points in the Unit Properties dialog, a sprite-unit nexus would have 750/150 HP.
Be warned, sprite units may function differently than real units. [right][snapback]604675[/snapback][/right]