hardcode removed / husk proj fix
This commit is contained in:
parent
1438773ffd
commit
31a99d413b
653 changed files with 1294 additions and 1272 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue