hardcode removed / husk proj fix

This commit is contained in:
Shtoyan 2022-01-21 14:25:59 +04:00
commit 31a99d413b
653 changed files with 1294 additions and 1272 deletions

View file

@ -32,12 +32,18 @@ simulated function PostBeginPlay()
}
super(ROBallisticProjectile).PostBeginPlay();
}
simulated function Explode(vector HitLocation, vector HitNormal)
{
local Controller C;
local PlayerController LocalPlayer;
local float ShakeScale;
bHasExploded = True;
// fix for multiple explosions during slomo
if (bHasExploded)
return;
bHasExploded = true;
// Don't explode if this is a dud
if( bDud )
{
@ -75,6 +81,7 @@ simulated function Explode(vector HitLocation, vector HitNormal)
}
}
}
// Get the shake amount for when this projectile explodes
simulated function float GetShakeScale(vector ViewLocation, vector EventLocation)
{
@ -274,7 +281,7 @@ defaultproperties
MaxSpeed=2200.000000
Damage=25.000000
DamageRadius=150.000000
MyDamageType=Class'NicePack.NiceDamTypeFire'
MyDamageType=class'NiceDamTypeFire'
ExplosionDecal=Class'KFMod.FlameThrowerBurnMark'
LightType=LT_Steady
LightHue=45

View file

@ -1809,7 +1809,7 @@ defaultproperties
DetachedSpecialArmClass=Class'KFChar.SeveredRocketArmPatriarch'
HitSound(0)=SoundGroup'KF_EnemiesFinalSnd.Patriarch.Kev_Pain'
DeathSound(0)=SoundGroup'KF_EnemiesFinalSnd.Patriarch.Kev_Death'
ControllerClass=Class'NicePack.NiceZombieBossController'
ControllerClass=class'NiceZombieBossController'
AmbientSound=Sound'KF_BasePatriarch.Idle.Kev_IdleLoop'
Mesh=SkeletalMesh'KF_Freaks_Trip.Patriarch_Freak'
Skins(0)=Combiner'KF_Specimens_Trip_T.gatling_cmb'

View file

@ -512,5 +512,5 @@ defaultproperties
DetachedArmClass=Class'ScrnZedPack.SeveredArmBrute'
DetachedLegClass=Class'ScrnZedPack.SeveredLegBrute'
DetachedHeadClass=Class'ScrnZedPack.SeveredHeadBrute'
ControllerClass=Class'NicePack.NiceZombieBruteController'
ControllerClass=class'NiceZombieBruteController'
}

View file

@ -37,7 +37,7 @@ event Bump(actor Other)
// TODO: is there a better way
if(bPouncing && KFHumanPawn(Other)!=none )
{
KFHumanPawn(Other).TakeDamage(((MeleeDamage - (MeleeDamage * 0.05)) + (MeleeDamage * (FRand() * 0.1))), self ,self.Location,self.velocity, class 'NicePack.NiceZedMeleeDamageType');
KFHumanPawn(Other).TakeDamage(((MeleeDamage - (MeleeDamage * 0.05)) + (MeleeDamage * (FRand() * 0.1))), self ,self.Location,self.velocity, class'NiceZedMeleeDamageType');
if (KFHumanPawn(Other).Health <=0)
{
//TODO - move this to humanpawn.takedamage? Also see KFMonster.MeleeDamageTarget
@ -136,7 +136,7 @@ defaultproperties
ChallengeSound(1)=SoundGroup'KF_EnemiesFinalSnd.Crawler.Crawler_Acquire'
ChallengeSound(2)=SoundGroup'KF_EnemiesFinalSnd.Crawler.Crawler_Acquire'
ChallengeSound(3)=SoundGroup'KF_EnemiesFinalSnd.Crawler.Crawler_Acquire'
ControllerClass=Class'NicePack.NiceZombieCrawlerController'
ControllerClass=class'NiceZombieCrawlerController'
AmbientSound=Sound'KF_BaseCrawler.Crawler_Idle'
Mesh=SkeletalMesh'KF_Freaks_Trip.Crawler_Freak'
Skins(0)=Combiner'KF_Specimens_Trip_T.crawler_cmb'

View file

@ -34,7 +34,7 @@ event Bump(actor Other)
// TODO: is there a better way
if(bPouncing && KFHumanPawn(Other)!=none )
{
KFHumanPawn(Other).TakeDamage(((MeleeDamage - (MeleeDamage * 0.05)) + (MeleeDamage * (FRand() * 0.1))), self ,self.Location,self.velocity, class 'NicePack.NiceZedMeleeDamageType');
KFHumanPawn(Other).TakeDamage(((MeleeDamage - (MeleeDamage * 0.05)) + (MeleeDamage * (FRand() * 0.1))), self ,self.Location,self.velocity, class'NiceZedMeleeDamageType');
if (KFHumanPawn(Other).Health <=0)
{
//TODO - move this to humanpawn.takedamage? Also see KFMonster.MeleeDamageTarget

View file

@ -452,7 +452,7 @@ function SpinDamage(actor Target)
}
if (Target !=none && Target.IsA('KFDoorMover'))
{
Target.TakeDamage(DamageAmount , self ,HitLocation,pushdir, class 'NicePack.NiceZedMeleeDamageType');
Target.TakeDamage(DamageAmount , self ,HitLocation,pushdir, class'NiceZedMeleeDamageType');
PlaySound(MeleeAttackHitSound, SLOT_Interact, 1.25);
}
if (KFHumanPawn(Target)!=none)
@ -462,7 +462,7 @@ function SpinDamage(actor Target)
HumanTarget.Controller.ShakeView(RotMag, RotRate, RotTime, OffsetMag, OffsetRate, OffsetTime);
//TODO - line below was KFPawn. Does this whole block need to be KFPawn, or is it OK as KFHumanPawn?
KFHumanPawn(Target).TakeDamage(DamageAmount, self ,HitLocation,pushdir, class 'NicePack.NiceZedMeleeDamageType');
KFHumanPawn(Target).TakeDamage(DamageAmount, self ,HitLocation,pushdir, class'NiceZedMeleeDamageType');
if (KFHumanPawn(Target).Health <=0)
{
@ -574,7 +574,7 @@ defaultproperties
ChallengeSound(1)=SoundGroup'KF_EnemiesFinalSnd.Fleshpound.FP_Challenge'
ChallengeSound(2)=SoundGroup'KF_EnemiesFinalSnd.Fleshpound.FP_Challenge'
ChallengeSound(3)=SoundGroup'KF_EnemiesFinalSnd.Fleshpound.FP_Challenge'
ControllerClass=Class'NicePack.NiceZombieFleshpoundController'
ControllerClass=class'NiceZombieFleshpoundController'
AmbientSound=Sound'KF_BaseFleshpound.FP_IdleLoop'
Mesh=SkeletalMesh'KF_Freaks_Trip.FleshPound_Freak'
Skins(0)=Combiner'KF_Specimens_Trip_T.fleshpound_cmb'

View file

@ -300,7 +300,7 @@ defaultproperties
ChallengeSound(1)=SoundGroup'KF_EnemiesFinalSnd.GoreFast.Gorefast_Challenge'
ChallengeSound(2)=SoundGroup'KF_EnemiesFinalSnd.GoreFast.Gorefast_Challenge'
ChallengeSound(3)=SoundGroup'KF_EnemiesFinalSnd.GoreFast.Gorefast_Challenge'
ControllerClass=Class'NicePack.NiceZombieGorefastController'
ControllerClass=class'NiceZombieGorefastController'
AmbientSound=Sound'KF_BaseGorefast.Gorefast_Idle'
Mesh=SkeletalMesh'KF_Freaks_Trip.GoreFast_Freak'
Skins(0)=Combiner'KF_Specimens_Trip_T.gorefast_cmb'

View file

@ -379,7 +379,7 @@ static simulated function PreCacheMaterials(LevelInfo myLevel)
}
defaultproperties
{
HuskFireProjClass=Class'NicePack.NiceHuskFireProjectile'
HuskFireProjClass=class'NiceHuskFireProjectile'
stunLoopStart=0.080000
stunLoopEnd=0.900000
idleInsertFrame=0.930000
@ -398,7 +398,7 @@ defaultproperties
ChallengeSound(1)=SoundGroup'KF_EnemiesFinalSnd.Husk.Husk_Challenge'
ChallengeSound(2)=SoundGroup'KF_EnemiesFinalSnd.Husk.Husk_Challenge'
ChallengeSound(3)=SoundGroup'KF_EnemiesFinalSnd.Husk.Husk_Challenge'
ControllerClass=Class'NicePack.NiceZombieHuskController'
ControllerClass=class'NiceZombieHuskController'
AmbientSound=Sound'KF_BaseHusk.Husk_IdleLoop'
Mesh=SkeletalMesh'KF_Freaks2_Trip.Burns_Freak'
Skins(0)=Texture'KF_Specimens_Trip_T_Two.burns.burns_tatters'

View file

@ -651,7 +651,7 @@ defaultproperties
ChallengeSound(1)=SoundGroup'KF_EnemiesFinalSnd.Scrake.Scrake_Challenge'
ChallengeSound(2)=SoundGroup'KF_EnemiesFinalSnd.Scrake.Scrake_Challenge'
ChallengeSound(3)=SoundGroup'KF_EnemiesFinalSnd.Scrake.Scrake_Challenge'
ControllerClass=Class'NicePack.NiceZombieScrakeController'
ControllerClass=class'NiceZombieScrakeController'
AmbientSound=Sound'KF_BaseScrake.Chainsaw.Scrake_Chainsaw_Idle'
Mesh=SkeletalMesh'KF_Freaks_Trip.Scrake_Freak'
Skins(0)=Shader'KF_Specimens_Trip_T.scrake_FB'

View file

@ -237,8 +237,8 @@ static simulated function PreCacheMaterials(LevelInfo myLevel)
}
defaultproperties
{
DetachedArmClass=Class'NicePack.NiceSeveredArmSick'
DetachedLegClass=Class'NicePack.NiceSeveredLegSick'
DetachedHeadClass=Class'NicePack.NiceSeveredHeadSick'
ControllerClass=Class'NicePack.NiceSickZombieController'
DetachedArmClass=class'NiceSeveredArmSick'
DetachedLegClass=class'NiceSeveredLegSick'
DetachedHeadClass=class'NiceSeveredHeadSick'
ControllerClass=class'NiceSickZombieController'
}

View file

@ -489,7 +489,7 @@ defaultproperties
DetachedHeadClass=Class'KFChar.SeveredHeadSiren'
HitSound(0)=SoundGroup'KF_EnemiesFinalSnd.siren.Siren_Pain'
DeathSound(0)=SoundGroup'KF_EnemiesFinalSnd.siren.Siren_Death'
ControllerClass=Class'NicePack.NiceZombieSirenController'
ControllerClass=class'NiceZombieSirenController'
AmbientSound=Sound'KF_BaseSiren.Siren_IdleLoop'
Mesh=SkeletalMesh'KF_Freaks_Trip.Siren_Freak'
Skins(0)=FinalBlend'KF_Specimens_Trip_T.siren_hair_fb'

View file

@ -36,7 +36,7 @@ defaultproperties
StunThreshold=3.000000
fuelRatio=0.650000
clientHeadshotScale=1.200000
niceZombieDamType=Class'NicePack.NiceZedSlashingDamageType'
niceZombieDamType=class'NiceZedSlashingDamageType'
MeleeAnims(0)="Siren_Bite"
MeleeAnims(1)="Siren_Bite2"
MeleeAnims(2)="Siren_Bite"

View file

@ -15,7 +15,7 @@ defaultproperties
{
fuelRatio=0.850000
clientHeadshotScale=1.200000
niceZombieDamType=Class'NicePack.NiceZedSlashingDamageType'
niceZombieDamType=class'NiceZedSlashingDamageType'
MeleeAnims(0)="StalkerSpinAttack"
MeleeAnims(1)="StalkerAttack1"
MeleeAnims(2)="JumpAttack"