39 lines
1.0 KiB
Ucode
39 lines
1.0 KiB
Ucode
class NiceSkillEnforcerJuggernautA extends NiceSkill
|
|
abstract;
|
|
|
|
var string abilityID;
|
|
var float distance;
|
|
var float cooldown;
|
|
var float duration;
|
|
|
|
function static SkillSelected(NicePlayerController nicePlayer)
|
|
{
|
|
local NiceAbilityManager.NiceAbilityDescription stupor;
|
|
|
|
if(nicePlayer == none) return;
|
|
if(nicePlayer.abilityManager == none) return;
|
|
|
|
stupor.ID = default.abilityID;
|
|
stupor.icon = Texture'NicePackT.HudCounter.demo';
|
|
stupor.cooldownLength = default.cooldown;
|
|
stupor.canBeCancelled = false;
|
|
nicePlayer.abilityManager.AddAbility(stupor);
|
|
}
|
|
|
|
function static SkillDeSelected(NicePlayerController nicePlayer)
|
|
{
|
|
if(nicePlayer == none) return;
|
|
if(nicePlayer.abilityManager == none) return;
|
|
|
|
nicePlayer.abilityManager.RemoveAbility(default.abilityID);
|
|
}
|
|
|
|
defaultproperties
|
|
{
|
|
abilityID="juggernaut"
|
|
Distance=800.000000
|
|
cooldown=30
|
|
SkillName="Juggernaut"
|
|
SkillEffects="Startle zeds around you for three seconds."
|
|
}
|