KF2-Server-Extension/ServerExt/Classes/Ext_TraitRetali.uc

21 lines
531 B
Ucode
Raw Normal View History

2017-10-20 02:00:49 +00:00
Class Ext_TraitRetali extends Ext_TraitBase;
2020-11-28 20:04:55 +00:00
static function bool PreventDeath(KFPawn_Human Player, Controller Instigator, Class<DamageType> DamType, Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data)
2017-10-20 02:00:49 +00:00
{
local ExtProj_SUPERGrenade P;
P = Player.Spawn(class'ExtProj_SUPERGrenade');
2020-11-28 20:12:58 +00:00
if (P!=None)
2017-10-20 02:00:49 +00:00
{
P.bExplodeOnContact = false; // Nope!
P.InstigatorController = Player.Controller;
P.ClusterNades = class'ExtProj_CrackerGrenade';
}
return false;
}
defaultproperties
{
DefLevelCosts(0)=50
DefMinLevel=40
}