Quadravol fire shouldn't spread to Demolitionist.
This commit is contained in:
parent
9e54f58fa2
commit
bf19ca87d3
2 changed files with 13 additions and 9 deletions
|
|
@ -986,14 +986,18 @@ Class OnFire : Inventory
|
|||
{
|
||||
if ( target == Owner ) return Damage;
|
||||
// spread ourselves
|
||||
let t = OnFire(target.FindInventory("OnFire"));
|
||||
if ( !t )
|
||||
// note: cannot spread to Demolitionist
|
||||
if ( !(target is 'Demolitionist') )
|
||||
{
|
||||
t = Apply(target,instigator,min(Damage,int(Amount*.6))); // prevent "escalating" spread
|
||||
t.cnt = 15; // long delay
|
||||
let t = OnFire(target.FindInventory("OnFire"));
|
||||
if ( !t )
|
||||
{
|
||||
t = Apply(target,instigator,min(Damage,int(Amount*.6))); // prevent "escalating" spread
|
||||
t.cnt = 15; // long delay
|
||||
}
|
||||
else if ( t.Amount < int(Amount*.6) ) t.Amount = min(t.Amount+Damage,int(Amount*.6)); // prevent "escalating" spread
|
||||
t.instigator = instigator;
|
||||
}
|
||||
else if ( t.Amount < int(Amount*.6) ) t.Amount = min(t.Amount+Damage,int(Amount*.6)); // prevent "escalating" spread
|
||||
t.instigator = instigator;
|
||||
return clamp(int(Damage*.15),1,50); // reduced direct damage
|
||||
}
|
||||
|
||||
|
|
@ -1005,7 +1009,7 @@ Class OnFire : Inventory
|
|||
Destroy();
|
||||
return;
|
||||
}
|
||||
if ( Owner is 'Demolitionist' ) amount = min(amount-1,200); // Demo's body puts out fire faster
|
||||
if ( Owner is 'Demolitionist' ) amount = min(amount-1,100); // Demo's body puts out fire faster
|
||||
if ( !(level.maptime%3) )
|
||||
amount--;
|
||||
if ( Owner.player ) amount -= int(abs(actor.deltaangle(Owner.angle,oangle))/30);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue