zedtest3 #3
1 changed files with 16 additions and 5 deletions
RemovePoisonAndBleed inv accessed none fix
commit
3247720a46
|
|
@ -182,21 +182,32 @@ simulated function HandleNiceHealingMechanicsAndSkills
|
|||
healed.bZedTimeInvincible = true;
|
||||
}
|
||||
}
|
||||
simulated function RemovePoisonAndBleed(NiceHumanPawn healed){
|
||||
|
||||
simulated function RemovePoisonAndBleed(NiceHumanPawn healed)
|
||||
{
|
||||
local Inventory I;
|
||||
local MeanReplicationInfo MRI;
|
||||
|
||||
// log spam fix
|
||||
if (healed == none)
|
||||
return;
|
||||
|
||||
// No bleeding
|
||||
MRI = class'MeanReplicationInfo'.static.
|
||||
findSZri(healed.PlayerReplicationInfo);
|
||||
if(MRI != none)
|
||||
if (MRI != none)
|
||||
MRI.stopBleeding();
|
||||
// No poison
|
||||
if(healed.inventory == none) return;
|
||||
for(I = healed.inventory; I != none; I = I.inventory){
|
||||
if(MeanPoisonInventory(I) != none)
|
||||
if (healed.inventory == none)
|
||||
return;
|
||||
|
||||
for (I = healed.inventory; I != none; I = I.inventory)
|
||||
{
|
||||
if (MeanPoisonInventory(I) != none)
|
||||
I.Destroy();
|
||||
}
|
||||
}
|
||||
|
||||
// Tells server to heal given human pawn.
|
||||
simulated function ServerHealTarget(NiceHumanPawn healed, float charPotency,
|
||||
Pawn instigator){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue