deus-ex-randomizer
deus-ex-randomizer copied to clipboard
maybe adjust HP with renderScale?
change renderScale from a range of 0.9 to 1.1, to 0.85 to 1.15
make HP be a slightly wider range so it makes a difference, like 0.7 to 1.3?
this might be obsolete since we have custom pawn classes that come with different renderScales and HP amounts
causes issues with GenerateTotalHealth()
since half health on each limb means they're far below the default values, and the game counts them dead if they take too much damage across all the parts
in DXREnemies RandomizeSize
I did this
sp = ScriptedPawn(a);
if(sp != None) {
scale = pow(scale, 4);
scale = FClamp(scale, 0.5, 1.2);
scale = 0.5;
sp.Health *= scale;
sp.HealthHead *= scale;
sp.HealthTorso *= scale;
sp.HealthLegLeft *= scale;
sp.HealthLegRight *= scale;
sp.HealthArmLeft *= scale;
sp.HealthArmRight *= scale;
sp.MinHealth *= scale;
sp.GenerateTotalHealth();
}
can still do them in VMD just fine. I store all the original health data in a variable in VMDBufferPawn, in case you're curious.
var int StartingHealthValues[7]; //Head, Body, Left Arm, Right, Left Leg, Right Leg... And lastly, Health itself.
you could set those instead of Default.X values to safely randomize health without breaking things