KF2-CustomZeds/CustomZeds/Classes/WMPawn_ZedCrawler_Huge.uc

46 lines
894 B
Ucode
Raw Normal View History

2022-05-16 13:35:37 +00:00
class WMPawn_ZedCrawler_Huge extends WMPawn_ZedCrawler_NoElite;
var const float ExtraDamageResistance;
static function string GetLocalizedName()
{
2022-08-22 15:43:13 +00:00
return class'CustomZeds.WMPawn_ZedConstants'.default.HugeString @ super.GetLocalizedName();
2022-05-16 13:35:37 +00:00
}
simulated function PostBeginPlay()
{
IntendedBodyScale = 1.55f;
super.PostBeginPlay();
}
function float GetDamageTypeModifier(class<DamageType> DT)
{
local float CurrentMod;
CurrentMod = super.GetDamageTypeModifier(DT);
return FMax(0.025f, CurrentMod - ExtraDamageResistance);
}
defaultproperties
{
DifficultySettings=Class'CustomZeds.WMDifficulty_Crawler_Big'
bKnockdownWhenJumpedOn=False
DoshValue=24
Health=375
Mass=300.0f
GroundSpeed=340.0f
SprintSpeed=420.0f
ExtraDamageResistance=0.55f
XPValues(0)=16
XPValues(1)=20
XPValues(2)=20
XPValues(3)=20
HitZones(0)=(GoreHealth=200)
Name="Default__WMPawn_ZedCrawler_Huge"
}