2017-10-20 02:00:49 +00:00
|
|
|
Class Ext_TraitRagdoll extends Ext_TraitBase;
|
|
|
|
|
|
|
|
var float ChanceValues[4];
|
|
|
|
|
2020-11-28 20:04:55 +00:00
|
|
|
static function ApplyEffectOn(KFPawn_Human Player, Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data)
|
2017-10-20 02:00:49 +00:00
|
|
|
{
|
2020-11-28 20:12:58 +00:00
|
|
|
if (ExtHumanPawn(Player)!=None)
|
2017-10-20 02:00:49 +00:00
|
|
|
ExtHumanPawn(Player).NoRagdollChance = Default.ChanceValues[Level-1];
|
|
|
|
}
|
2020-11-28 21:54:57 +00:00
|
|
|
|
2020-11-28 20:04:55 +00:00
|
|
|
static function CancelEffectOn(KFPawn_Human Player, Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data)
|
2017-10-20 02:00:49 +00:00
|
|
|
{
|
2020-11-28 20:12:58 +00:00
|
|
|
if (ExtHumanPawn(Player)!=None)
|
2017-10-20 02:00:49 +00:00
|
|
|
ExtHumanPawn(Player).NoRagdollChance = 0.f;
|
|
|
|
}
|
|
|
|
|
|
|
|
defaultproperties
|
|
|
|
{
|
|
|
|
NumLevels=3
|
|
|
|
DefLevelCosts(0)=30
|
|
|
|
DefLevelCosts(1)=30
|
|
|
|
DefLevelCosts(2)=40
|
|
|
|
DefMinLevel=100
|
2023-05-14 02:49:12 +00:00
|
|
|
|
2017-10-20 02:00:49 +00:00
|
|
|
ChanceValues(0)=0.2
|
|
|
|
ChanceValues(1)=0.5
|
|
|
|
ChanceValues(2)=0.8
|
|
|
|
}
|