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

@ -21,22 +21,32 @@ function bool MeleeDamageTarget(int hitdamage, vector pushdir) {
Poison(KFHumanPawn(Controller.Target));
return result;
}
function Poison(KFHumanPawn poisonedPawn){
function Poison(KFHumanPawn poisonedPawn)
{
local Inventory I;
local bool bFoundPoison;
if(poisonedPawn.Inventory != none){
for(I = poisonedPawn.Inventory; I != none; I = I.Inventory)
if(I != none && MeanPoisonInventory(I) != none){
if (poisonedPawn.Inventory != none)
{
for (I = poisonedPawn.Inventory; I != none; I = I.Inventory)
{
// why we double check Inv != none here???
if (I != none && MeanPoisonInventory(I) != none)
{
bFoundPoison = true;
MeanPoisonInventory(I).poisonStartTime = Level.TimeSeconds;
}
}
}
}
if(!bFoundPoison){
I = Controller.Spawn(class<Inventory>(DynamicLoadObject("NicePack.MeanPoisonInventory", Class'Class')));
if (!bFoundPoison)
{
I = Controller.Spawn(class<Inventory>(DynamicLoadObject(string(class'MeanPoisonInventory'), class'Class')));
MeanPoisonInventory(I).poisonStartTime = Level.TimeSeconds;
I.GiveTo(poisonedPawn);
}
}
defaultproperties
{
GroundSpeed=190.000000

View file

@ -48,10 +48,10 @@ function RangedAttack(Actor A) {
defaultproperties
{
maxNormalShots=3
HuskFireProjClass=Class'NicePack.MeanHuskFireProjectile'
HuskFireProjClass=class'MeanHuskFireProjectile'
remainingStuns=1
MenuName="Mean Husk"
ControllerClass=Class'NicePack.MeanZombieHuskController'
ControllerClass=class'MeanZombieHuskController'
Skins(0)=Texture'NicePackT.MonsterMeanHusk.burns_tatters'
Skins(1)=Shader'NicePackT.MonsterMeanHusk.burns_shdr'
}