21 lines
531 B
Ucode
21 lines
531 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
|
|
} |