KF2-CustomZeds/CustomZeds/Classes/WMPawn_ZedFleshpound_Predator.uc

71 lines
1.4 KiB
Ucode
Raw Normal View History

2022-05-16 13:35:37 +00:00
class WMPawn_ZedFleshpound_Predator extends KFPawn_ZedFleshpound;
var linearColor PredatorColor;
static function string GetLocalizedName()
{
return "Fleshpound Predator";
}
simulated function PostBeginPlay()
{
IntendedBodyScale = 1.3f;
bVersusZed = True;
super.PostBeginPlay();
UpdateGameplayMICParams();
}
simulated function UpdateGameplayMICParams()
{
local byte i;
super.UpdateGameplayMICParams();
if(IsAliveAndWell() && WorldInfo.NetMode != NM_DedicatedServer)
{
for (i = 0; i < CharacterMICs.length; ++i)
{
CharacterMICs[i].SetVectorParameterValue('Vector_GlowColor', PredatorColor);
CharacterMICs[i].SetVectorParameterValue('Vector_FresnelGlowColor', PredatorColor);
}
}
}
function bool CanBeGrabbed(KFPawn GrabbingPawn, optional bool bIgnoreFalling, optional bool bAllowSameTeamGrab)
{
return False;
}
simulated event bool UsePlayerControlledZedSkin()
{
return True;
}
defaultproperties
{
ControllerClass=Class'CustomZeds.WMAIController_ZedFleshpound_Predator'
DefaultGlowColor=(G=0.25f)
PredatorColor=(R=0.2f,G=1.0f,B=0.1f,A=1.0f)
FootstepCameraShakeInnerRadius=230.0f
FootstepCameraShakeOuterRadius=1035.0f
bVersusZed=False
DoshValue=0
Health=9999
Mass=250.0f
GroundSpeed=500.0f
SprintSpeed=660.0f
XPValues(0)=20
XPValues(1)=25
XPValues(2)=25
XPValues(3)=30
HitZones(0)=(GoreHealth=9999)
Name="Default__WMPawn_ZedFleshpound_Predator"
}