KF2-Server-Extension/ServerExt/Classes/Ext_TraitRetali.uc
2020-11-28 23:04:55 +03:00

21 lines
530 B
Ucode

Class Ext_TraitRetali extends Ext_TraitBase;
static function bool PreventDeath(KFPawn_Human Player, Controller Instigator, Class<DamageType> DamType, Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data)
{
local ExtProj_SUPERGrenade P;
P = Player.Spawn(class'ExtProj_SUPERGrenade');
if(P!=None)
{
P.bExplodeOnContact = false; // Nope!
P.InstigatorController = Player.Controller;
P.ClusterNades = class'ExtProj_CrackerGrenade';
}
return false;
}
defaultproperties
{
DefLevelCosts(0)=50
DefMinLevel=40
}