From bc6781e1046a7692a6f960e64cf6ba6a7d4944e4 Mon Sep 17 00:00:00 2001 From: nc-dk Date: Sat, 4 Mar 2017 22:05:54 +1100 Subject: [PATCH 01/10] Update shadowraze.lua Added sound, particles, damage and conjoined levelling up of the individual Shadowrazes. --- .../heroes/hero_nevermore/shadowraze.lua | 85 ++++++++++++++++--- 1 file changed, 72 insertions(+), 13 deletions(-) diff --git a/game/scripts/vscripts/heroes/hero_nevermore/shadowraze.lua b/game/scripts/vscripts/heroes/hero_nevermore/shadowraze.lua index cb5e4b69..14a32091 100644 --- a/game/scripts/vscripts/heroes/hero_nevermore/shadowraze.lua +++ b/game/scripts/vscripts/heroes/hero_nevermore/shadowraze.lua @@ -1,17 +1,76 @@ --[[ - Author: Noya - Date: April 5, 2015 - Return a front position at a distance + Author: Noya + nc-dk + Date: March 4, 2017 + Obtains a forward position relative to caster, then fires effects and does damage to units within the area of effect. ]] -function ShadowrazePoint( event ) - local caster = event.caster - local fv = caster:GetForwardVector() - local origin = caster:GetAbsOrigin() - local distance = event.distance +function Raze( keys ) + local caster = keys.caster + local ability = keys.ability + + --Finding Raze location + local vOrigin = caster:GetAbsOrigin() + local vForward = caster:GetForwardVector() + local iDistance = ability:GetSpecialValueFor("shadowraze_range") + local ability_location = vOrigin + vForward * iDistance + + --Radius and damage + local ability_damage = ability:GetSpecialValueFor("shadowraze_damage") + local damage_radius = ability:GetSpecialValueFor("shadowraze_radius") + + --Create Shadowraze particle on damage origin + local particle = ParticleManager:CreateParticle("particles/units/heroes/hero_nevermore/nevermore_shadowraze.vpcf", PATTACH_CUSTOMORIGIN, nil) --Setting an owning entity hides the particle if the handle cannot be see by a player + ParticleManager:SetParticleControl(particle, 0, ability_location) + ParticleManager:SetParticleControl(particle, 1, ability_location) + + --Fires sound at target location + EmitSoundOnLocationWithCaster(ability_location, "Hero_Nevermore.Shadowraze", caster) + + --Finds legal targets on damage location + local target_table = FindUnitsInRadius(caster:GetTeam(), ability_location, nil, damage_radius, DOTA_UNIT_TARGET_TEAM_ENEMY, DOTA_UNIT_TARGET_BASIC + DOTA_UNIT_TARGET_HERO, DOTA_UNIT_TARGET_FLAG_NONE, FIND_ANY_ORDER, false) + if #target_table > 0 then + for _, enemy in pairs (target_table) do + ApplyDamage({ victim = enemy, attacker = caster, damage = ability_damage, damage_type = DAMAGE_TYPE_MAGICAL }) + end + end +end + +--- + +--[[ + Author: nc-dk + Date: March 4, 2017 + Whenever the datadriven "OnUpgrade" event is triggered on one Shadowraze, level all three to the same ability. +]] +function LevelRaze( keys ) + --If any Shadowraze is levelled up, skill them to the same level - local front_position = origin + fv * distance - local result = {} - table.insert(result, front_position) + --Obtaining general ability info + local ability = keys.ability + local ability_name = ability:GetAbilityName() + local ability_level = ability:GetLevel() + local caster = keys.caster + + --Getting all Shadowraze's on the caster + local raze1 = caster:FindAbilityByName("nevermore_shadowraze1_datadriven") + local raze2 = caster:FindAbilityByName("nevermore_shadowraze2_datadriven") + local raze3 = caster:FindAbilityByName("nevermore_shadowraze3_datadriven") + + --If the current Shadowraze isn't the one used in the ability, attempt to skill it. + if raze1 ~= ability_name then + if raze1:GetLevel() < ability_level then --Less then to prevent a loop (when the other Raze's are levelled, they'll call upon this script too). + raze1:SetLevel(ability_level) + end + end + + if raze2 ~= ability_name then + if raze2:GetLevel() < ability_level then + raze2:SetLevel(ability_level) + end + end - return result -end \ No newline at end of file + if raze3 ~= ability_name then + if raze3:GetLevel() < ability_level then + raze3:SetLevel(ability_level) + end + end +end From 459757b770b2440c825f7af341ec34f12988746e Mon Sep 17 00:00:00 2001 From: nc-dk Date: Sat, 4 Mar 2017 22:23:23 +1100 Subject: [PATCH 02/10] Update nevermore_shadowraze1_datadriven.txt Updated values for 7.02, no longer uses ScriptSelectPoints and now can level all three Razes at once. --- .../nevermore_shadowraze1_datadriven.txt | 138 +++++++++--------- 1 file changed, 68 insertions(+), 70 deletions(-) diff --git a/game/scripts/npc/abilities/nevermore_shadowraze1_datadriven.txt b/game/scripts/npc/abilities/nevermore_shadowraze1_datadriven.txt index 3864c714..264601d6 100644 --- a/game/scripts/npc/abilities/nevermore_shadowraze1_datadriven.txt +++ b/game/scripts/npc/abilities/nevermore_shadowraze1_datadriven.txt @@ -1,84 +1,82 @@ -// Rewrite of Nevermore Shadowraze 1 -// Author: Noya -// Date: April 5, 2015 -"nevermore_shadowraze1_datadriven" -{ - // General - //------------------------------------------------------------------------------------------------------------- - "BaseClass" "ability_datadriven" - "AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_NO_TARGET | DOTA_ABILITY_BEHAVIOR_IGNORE_BACKSWING" - "AbilityUnitDamageType" "DAMAGE_TYPE_MAGICAL" - "SpellImmunityType" "SPELL_IMMUNITY_ENEMIES_NO" - "FightRecapLevel" "1" - "AbilityTextureName" "nevermore_shadowraze1" - - // Casting - //------------------------------------------------------------------------------------------------------------- - "AbilityCastPoint" "0.67 0.67 0.67 0.67" + // Rewrite of Nevermore Shadowraze 1 + // Author: nc-dk + // Date: March 4, 2017 + "nevermore_shadowraze1_datadriven" + { + // General + //------------------------------------------------------------------------------------------------------------- + "BaseClass" "ability_datadriven" + "AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_NO_TARGET | DOTA_ABILITY_BEHAVIOR_IGNORE_BACKSWING" + "AbilityUnitDamageType" "DAMAGE_TYPE_MAGICAL" + "SpellImmunityType" "SPELL_IMMUNITY_ENEMIES_NO" + "FightRecapLevel" "1" + "AbilityTextureName" "nevermore_shadowraze1" + + // Casting + //------------------------------------------------------------------------------------------------------------- + "AbilityCastPoint" "0.55 0.55 0.55 0.55" + "AbilityCastAnimation" "ACT_DOTA_RAZE_1" + "AOERadius" "250" - // Time - //------------------------------------------------------------------------------------------------------------- - "AbilityCooldown" "10.0 10.0 10.0 10.0" + // Time + //------------------------------------------------------------------------------------------------------------- + "AbilityCooldown" "10.0 10.0 10.0 10.0" - // Damage. - //------------------------------------------------------------------------------------------------------------- - "AbilityDamage" "75 150 225 300" + // Damage. + //------------------------------------------------------------------------------------------------------------- + "AbilityDamage" "100 175 250 325" - // Cost - //------------------------------------------------------------------------------------------------------------- - "AbilityManaCost" "75 75 75 75" + // Cost + //------------------------------------------------------------------------------------------------------------- + "AbilityManaCost" "90 90 90 90" - // Special - //------------------------------------------------------------------------------------------------------------- - "AbilitySpecial" - { - "01" - { - "var_type" "FIELD_INTEGER" - "shadowraze_radius" "250" - } - "02" + // Special + //------------------------------------------------------------------------------------------------------------- + "AbilitySpecial" { - "var_type" "FIELD_INTEGER" - "shadowraze_range" "200" + "01" + { + "var_type" "FIELD_INTEGER" + "shadowraze_radius" "250" + } + "02" + { + "var_type" "FIELD_INTEGER" + "shadowraze_range" "200" + } + "03" + { + "var_type" "FIELD_INTEGER" + "shadowraze_cooldown" "3" + } + "04" + { + "var_type" "FIELD_INTEGER" + "shadowraze_damage" "100 175 250 325" + } } - "03" + + "precache" { - "var_type" "FIELD_INTEGER" - "shadowraze_cooldown" "3" + "particle" "particles/units/heroes/hero_nevermore/nevermore_shadowraze.vpcf" + "soundfile" "soundevents/game_sounds_heroes/game_sounds_nevermore.vsndevts" } - } - - "precache" - { - "particle" "particles/units/heroes/hero_nevermore/nevermore_shadowraze.vpcf" - "soundfile" "soundevents/game_sounds_heroes/game_sounds_nevermore.vsndevts" - } - "OnSpellStart" - { - //TODO: FireSound and Particle - - "Damage" + "OnSpellStart" { - "Target" + "RunScript" { - "Center" "CASTER" - "Radius" "%shadowraze_radius" - "Teams" "DOTA_UNIT_TARGET_TEAM_ENEMY" - "Types" "DOTA_UNIT_TARGET_HERO | DOTA_UNIT_TARGET_BASIC" - - "ScriptSelectPoints" - { - "ScriptFile" "heroes/hero_nevermore/shadowraze.lua" - "Function" "ShadowrazePoint" - "Target" "CASTER" - "Count" "1" - "distance" "%shadowraze_range" - } + "ScriptFile" "heroes/hero_nevermore/shadowraze.lua" + "Function" "Raze" } - "Type" "DAMAGE_TYPE_MAGICAL" - "Damage" "%AbilityDamage" + } + + "OnUpgrade" + { + "RunScript" + { + "ScriptFile" "heroes/hero_nevermore/shadowraze.lua" + "Function" "LevelRaze" + } } } -} From c0bb429dabe523a7bdcf26ece4903ec9cb0416e3 Mon Sep 17 00:00:00 2001 From: nc-dk Date: Sat, 4 Mar 2017 22:26:08 +1100 Subject: [PATCH 03/10] Update nevermore_shadowraze2_datadriven.txt Updated values for 7.02, no longer uses ScriptSelectPoints and now can level all three Razes at once. --- .../nevermore_shadowraze2_datadriven.txt | 113 +++++++++++------- 1 file changed, 71 insertions(+), 42 deletions(-) diff --git a/game/scripts/npc/abilities/nevermore_shadowraze2_datadriven.txt b/game/scripts/npc/abilities/nevermore_shadowraze2_datadriven.txt index 471036d6..7ed35b9e 100644 --- a/game/scripts/npc/abilities/nevermore_shadowraze2_datadriven.txt +++ b/game/scripts/npc/abilities/nevermore_shadowraze2_datadriven.txt @@ -1,53 +1,82 @@ -// Rewrite of Nevermore Shadowraze 2 -// Author: Noya -// Date: April 5, 2015 -"nevermore_shadowraze2_datadriven" -{ - // General - //------------------------------------------------------------------------------------------------------------- - "BaseClass" "ability_datadriven" - "AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_NO_TARGET | DOTA_ABILITY_BEHAVIOR_IGNORE_BACKSWING" - "OnLearnbar" "0" - "AbilityUnitDamageType" "DAMAGE_TYPE_MAGICAL" - "SpellImmunityType" "SPELL_IMMUNITY_ENEMIES_NO" - "FightRecapLevel" "1" - "AbilityTextureName" "nevermore_shadowraze2" - - // Casting - //------------------------------------------------------------------------------------------------------------- - "AbilityCastPoint" "0.67 0.67 0.67 0.67" + // Rewrite of Nevermore Shadowraze 2 + // Author: nc-dk + // Date: March 4, 2017 + "nevermore_shadowraze2_datadriven" + { + // General + //------------------------------------------------------------------------------------------------------------- + "BaseClass" "ability_datadriven" + "AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_NO_TARGET | DOTA_ABILITY_BEHAVIOR_IGNORE_BACKSWING" + "AbilityUnitDamageType" "DAMAGE_TYPE_MAGICAL" + "SpellImmunityType" "SPELL_IMMUNITY_ENEMIES_NO" + "FightRecapLevel" "1" + "AbilityTextureName" "nevermore_shadowraze2" + + // Casting + //------------------------------------------------------------------------------------------------------------- + "AbilityCastPoint" "0.55 0.55 0.55 0.55" + "AbilityCastAnimation" "ACT_DOTA_RAZE_2" + "AOERadius" "450" - // Time - //------------------------------------------------------------------------------------------------------------- - "AbilityCooldown" "10.0 10.0 10.0 10.0" + // Time + //------------------------------------------------------------------------------------------------------------- + "AbilityCooldown" "10.0 10.0 10.0 10.0" - // Damage. - //------------------------------------------------------------------------------------------------------------- - "AbilityDamage" "75 150 225 300" + // Damage. + //------------------------------------------------------------------------------------------------------------- + "AbilityDamage" "100 175 250 325" - // Cost - //------------------------------------------------------------------------------------------------------------- - "AbilityManaCost" "75 75 75 75" + // Cost + //------------------------------------------------------------------------------------------------------------- + "AbilityManaCost" "90 90 90 90" - // Special - //------------------------------------------------------------------------------------------------------------- - "AbilitySpecial" - { - "01" + // Special + //------------------------------------------------------------------------------------------------------------- + "AbilitySpecial" + { + "01" + { + "var_type" "FIELD_INTEGER" + "shadowraze_radius" "250" + } + "02" + { + "var_type" "FIELD_INTEGER" + "shadowraze_range" "450" + } + "03" + { + "var_type" "FIELD_INTEGER" + "shadowraze_cooldown" "3" + } + "04" + { + "var_type" "FIELD_INTEGER" + "shadowraze_damage" "100 175 250 325" + } + } + + "precache" { - "var_type" "FIELD_INTEGER" - "shadowraze_radius" "250" + "particle" "particles/units/heroes/hero_nevermore/nevermore_shadowraze.vpcf" + "soundfile" "soundevents/game_sounds_heroes/game_sounds_nevermore.vsndevts" } - "02" + + "OnSpellStart" { - "var_type" "FIELD_INTEGER" - "shadowraze_range" "450" + "RunScript" + { + "ScriptFile" "heroes/hero_nevermore/shadowraze.lua" + "Function" "Raze" + } } - "03" + + "OnUpgrade" { - "var_type" "FIELD_INTEGER" - "shadowraze_cooldown" "3" + "RunScript" + { + "ScriptFile" "heroes/hero_nevermore/shadowraze.lua" + "Function" "LevelRaze" + } } } -} - From 355fa79a67df1f38f1505e08a8bf17a85c13b834 Mon Sep 17 00:00:00 2001 From: nc-dk Date: Sat, 4 Mar 2017 22:27:52 +1100 Subject: [PATCH 04/10] Update nevermore_shadowraze2_datadriven.txt Fixed the lines having an extra tab. --- .../nevermore_shadowraze2_datadriven.txt | 132 +++++++++--------- 1 file changed, 66 insertions(+), 66 deletions(-) diff --git a/game/scripts/npc/abilities/nevermore_shadowraze2_datadriven.txt b/game/scripts/npc/abilities/nevermore_shadowraze2_datadriven.txt index 7ed35b9e..242144b7 100644 --- a/game/scripts/npc/abilities/nevermore_shadowraze2_datadriven.txt +++ b/game/scripts/npc/abilities/nevermore_shadowraze2_datadriven.txt @@ -1,82 +1,82 @@ - // Rewrite of Nevermore Shadowraze 2 - // Author: nc-dk - // Date: March 4, 2017 - "nevermore_shadowraze2_datadriven" - { - // General - //------------------------------------------------------------------------------------------------------------- +// Rewrite of Nevermore Shadowraze 2 +// Author: nc-dk +// Date: March 4, 2017 +"nevermore_shadowraze2_datadriven" +{ + // General + //------------------------------------------------------------------------------------------------------------- "BaseClass" "ability_datadriven" - "AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_NO_TARGET | DOTA_ABILITY_BEHAVIOR_IGNORE_BACKSWING" - "AbilityUnitDamageType" "DAMAGE_TYPE_MAGICAL" - "SpellImmunityType" "SPELL_IMMUNITY_ENEMIES_NO" - "FightRecapLevel" "1" - "AbilityTextureName" "nevermore_shadowraze2" + "AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_NO_TARGET | DOTA_ABILITY_BEHAVIOR_IGNORE_BACKSWING" + "AbilityUnitDamageType" "DAMAGE_TYPE_MAGICAL" + "SpellImmunityType" "SPELL_IMMUNITY_ENEMIES_NO" + "FightRecapLevel" "1" + "AbilityTextureName" "nevermore_shadowraze2" - // Casting - //------------------------------------------------------------------------------------------------------------- - "AbilityCastPoint" "0.55 0.55 0.55 0.55" - "AbilityCastAnimation" "ACT_DOTA_RAZE_2" - "AOERadius" "450" + // Casting + //------------------------------------------------------------------------------------------------------------- + "AbilityCastPoint" "0.55 0.55 0.55 0.55" + "AbilityCastAnimation" "ACT_DOTA_RAZE_2" + "AOERadius" "450" - // Time - //------------------------------------------------------------------------------------------------------------- - "AbilityCooldown" "10.0 10.0 10.0 10.0" + // Time + //------------------------------------------------------------------------------------------------------------- + "AbilityCooldown" "10.0 10.0 10.0 10.0" - // Damage. - //------------------------------------------------------------------------------------------------------------- - "AbilityDamage" "100 175 250 325" + // Damage. + //------------------------------------------------------------------------------------------------------------- + "AbilityDamage" "100 175 250 325" - // Cost - //------------------------------------------------------------------------------------------------------------- - "AbilityManaCost" "90 90 90 90" + // Cost + //------------------------------------------------------------------------------------------------------------- + "AbilityManaCost" "90 90 90 90" - // Special - //------------------------------------------------------------------------------------------------------------- - "AbilitySpecial" + // Special + //------------------------------------------------------------------------------------------------------------- + "AbilitySpecial" + { + "01" { - "01" - { - "var_type" "FIELD_INTEGER" - "shadowraze_radius" "250" - } - "02" - { - "var_type" "FIELD_INTEGER" - "shadowraze_range" "450" - } - "03" - { - "var_type" "FIELD_INTEGER" - "shadowraze_cooldown" "3" - } - "04" - { - "var_type" "FIELD_INTEGER" - "shadowraze_damage" "100 175 250 325" - } + "var_type" "FIELD_INTEGER" + "shadowraze_radius" "250" } - - "precache" + "02" { - "particle" "particles/units/heroes/hero_nevermore/nevermore_shadowraze.vpcf" - "soundfile" "soundevents/game_sounds_heroes/game_sounds_nevermore.vsndevts" + "var_type" "FIELD_INTEGER" + "shadowraze_range" "450" } - - "OnSpellStart" + "03" { - "RunScript" - { - "ScriptFile" "heroes/hero_nevermore/shadowraze.lua" - "Function" "Raze" - } + "var_type" "FIELD_INTEGER" + "shadowraze_cooldown" "3" } + "04" + { + "var_type" "FIELD_INTEGER" + "shadowraze_damage" "100 175 250 325" + } + } - "OnUpgrade" + "precache" + { + "particle" "particles/units/heroes/hero_nevermore/nevermore_shadowraze.vpcf" + "soundfile" "soundevents/game_sounds_heroes/game_sounds_nevermore.vsndevts" + } + + "OnSpellStart" + { + "RunScript" { - "RunScript" - { - "ScriptFile" "heroes/hero_nevermore/shadowraze.lua" - "Function" "LevelRaze" - } + "ScriptFile" "heroes/hero_nevermore/shadowraze.lua" + "Function" "Raze" } } + + "OnUpgrade" + { + "RunScript" + { + "ScriptFile" "heroes/hero_nevermore/shadowraze.lua" + "Function" "LevelRaze" + } + } +} From 0697b67a9141fbeb084ec46ad10e1b1181901f28 Mon Sep 17 00:00:00 2001 From: nc-dk Date: Sat, 4 Mar 2017 22:30:03 +1100 Subject: [PATCH 05/10] Update nevermore_shadowraze1_datadriven.txt Fixed all lines having an extra tab. --- .../nevermore_shadowraze1_datadriven.txt | 134 +++++++++--------- 1 file changed, 67 insertions(+), 67 deletions(-) diff --git a/game/scripts/npc/abilities/nevermore_shadowraze1_datadriven.txt b/game/scripts/npc/abilities/nevermore_shadowraze1_datadriven.txt index 264601d6..1da14600 100644 --- a/game/scripts/npc/abilities/nevermore_shadowraze1_datadriven.txt +++ b/game/scripts/npc/abilities/nevermore_shadowraze1_datadriven.txt @@ -1,82 +1,82 @@ - // Rewrite of Nevermore Shadowraze 1 - // Author: nc-dk - // Date: March 4, 2017 - "nevermore_shadowraze1_datadriven" - { - // General - //------------------------------------------------------------------------------------------------------------- - "BaseClass" "ability_datadriven" - "AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_NO_TARGET | DOTA_ABILITY_BEHAVIOR_IGNORE_BACKSWING" - "AbilityUnitDamageType" "DAMAGE_TYPE_MAGICAL" - "SpellImmunityType" "SPELL_IMMUNITY_ENEMIES_NO" - "FightRecapLevel" "1" - "AbilityTextureName" "nevermore_shadowraze1" +// Rewrite of Nevermore Shadowraze 1 +// Author: nc-dk +// Date: March 4, 2017 +"nevermore_shadowraze1_datadriven" +{ + // General + //------------------------------------------------------------------------------------------------------------- + "BaseClass" "ability_datadriven" + "AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_NO_TARGET | DOTA_ABILITY_BEHAVIOR_IGNORE_BACKSWING" + "AbilityUnitDamageType" "DAMAGE_TYPE_MAGICAL" + "SpellImmunityType" "SPELL_IMMUNITY_ENEMIES_NO" + "FightRecapLevel" "1" + "AbilityTextureName" "nevermore_shadowraze1" - // Casting - //------------------------------------------------------------------------------------------------------------- - "AbilityCastPoint" "0.55 0.55 0.55 0.55" - "AbilityCastAnimation" "ACT_DOTA_RAZE_1" - "AOERadius" "250" + // Casting + //------------------------------------------------------------------------------------------------------------- + "AbilityCastPoint" "0.55 0.55 0.55 0.55" + "AbilityCastAnimation" "ACT_DOTA_RAZE_1" + "AOERadius" "250" - // Time - //------------------------------------------------------------------------------------------------------------- - "AbilityCooldown" "10.0 10.0 10.0 10.0" + // Time + //------------------------------------------------------------------------------------------------------------- + "AbilityCooldown" "10.0 10.0 10.0 10.0" - // Damage. - //------------------------------------------------------------------------------------------------------------- - "AbilityDamage" "100 175 250 325" + // Damage. + //------------------------------------------------------------------------------------------------------------- + "AbilityDamage" "100 175 250 325" - // Cost - //------------------------------------------------------------------------------------------------------------- - "AbilityManaCost" "90 90 90 90" + // Cost + //------------------------------------------------------------------------------------------------------------- + "AbilityManaCost" "90 90 90 90" - // Special - //------------------------------------------------------------------------------------------------------------- - "AbilitySpecial" + // Special + //------------------------------------------------------------------------------------------------------------- + "AbilitySpecial" + { + "01" { - "01" - { - "var_type" "FIELD_INTEGER" - "shadowraze_radius" "250" - } - "02" - { - "var_type" "FIELD_INTEGER" - "shadowraze_range" "200" - } - "03" - { - "var_type" "FIELD_INTEGER" - "shadowraze_cooldown" "3" - } - "04" - { - "var_type" "FIELD_INTEGER" - "shadowraze_damage" "100 175 250 325" - } + "var_type" "FIELD_INTEGER" + "shadowraze_radius" "250" } - - "precache" + "02" { - "particle" "particles/units/heroes/hero_nevermore/nevermore_shadowraze.vpcf" - "soundfile" "soundevents/game_sounds_heroes/game_sounds_nevermore.vsndevts" + "var_type" "FIELD_INTEGER" + "shadowraze_range" "200" } - - "OnSpellStart" + "03" { - "RunScript" - { - "ScriptFile" "heroes/hero_nevermore/shadowraze.lua" - "Function" "Raze" - } + "var_type" "FIELD_INTEGER" + "shadowraze_cooldown" "3" } + "04" + { + "var_type" "FIELD_INTEGER" + "shadowraze_damage" "100 175 250 325" + } + } - "OnUpgrade" + "precache" + { + "particle" "particles/units/heroes/hero_nevermore/nevermore_shadowraze.vpcf" + "soundfile" "soundevents/game_sounds_heroes/game_sounds_nevermore.vsndevts" + } + + "OnSpellStart" + { + "RunScript" { - "RunScript" - { - "ScriptFile" "heroes/hero_nevermore/shadowraze.lua" - "Function" "LevelRaze" - } + "ScriptFile" "heroes/hero_nevermore/shadowraze.lua" + "Function" "Raze" } } + + "OnUpgrade" + { + "RunScript" + { + "ScriptFile" "heroes/hero_nevermore/shadowraze.lua" + "Function" "LevelRaze" + } + } + From f88da5a525f0472d9a3384537a37051eb5c24e10 Mon Sep 17 00:00:00 2001 From: nc-dk Date: Sat, 4 Mar 2017 22:33:31 +1100 Subject: [PATCH 06/10] Update nevermore_shadowraze3_datadriven.txt 7.02 + no ScriptSelectPoints + level all Razes + paragraphing + formatting. --- .../nevermore_shadowraze3_datadriven.txt | 53 ++++++++++++++----- 1 file changed, 41 insertions(+), 12 deletions(-) diff --git a/game/scripts/npc/abilities/nevermore_shadowraze3_datadriven.txt b/game/scripts/npc/abilities/nevermore_shadowraze3_datadriven.txt index 06f4e39f..f0211849 100644 --- a/game/scripts/npc/abilities/nevermore_shadowraze3_datadriven.txt +++ b/game/scripts/npc/abilities/nevermore_shadowraze3_datadriven.txt @@ -1,33 +1,34 @@ // Rewrite of Nevermore Shadowraze 3 -// Author: Noya -// Date: April 5, 2015 +// Author: nc-dk +// Date: March 4, 2017 "nevermore_shadowraze3_datadriven" { // General //------------------------------------------------------------------------------------------------------------- "BaseClass" "ability_datadriven" - "AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_NO_TARGET | DOTA_ABILITY_BEHAVIOR_IGNORE_BACKSWING" - "OnLearnbar" "0" + "AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_NO_TARGET | DOTA_ABILITY_BEHAVIOR_IGNORE_BACKSWING" "AbilityUnitDamageType" "DAMAGE_TYPE_MAGICAL" - "SpellImmunityType" "SPELL_IMMUNITY_ENEMIES_NO" - "FightRecapLevel" "1" + "SpellImmunityType" "SPELL_IMMUNITY_ENEMIES_NO" + "FightRecapLevel" "1" "AbilityTextureName" "nevermore_shadowraze3" - + // Casting //------------------------------------------------------------------------------------------------------------- - "AbilityCastPoint" "0.67 0.67 0.67 0.67" + "AbilityCastPoint" "0.55 0.55 0.55 0.55" + "AbilityCastAnimation" "ACT_DOTA_RAZE_3" + "AOERadius" "700" // Time //------------------------------------------------------------------------------------------------------------- - "AbilityCooldown" "10.0 10.0 10.0 10.0" + "AbilityCooldown" "10.0 10.0 10.0 10.0" // Damage. //------------------------------------------------------------------------------------------------------------- - "AbilityDamage" "75 150 225 300" + "AbilityDamage" "100 175 250 325" // Cost //------------------------------------------------------------------------------------------------------------- - "AbilityManaCost" "75 75 75 75" + "AbilityManaCost" "90 90 90 90" // Special //------------------------------------------------------------------------------------------------------------- @@ -48,6 +49,34 @@ "var_type" "FIELD_INTEGER" "shadowraze_cooldown" "3" } + "04" + { + "var_type" "FIELD_INTEGER" + "shadowraze_damage" "100 175 250 325" + } } -} + "precache" + { + "particle" "particles/units/heroes/hero_nevermore/nevermore_shadowraze.vpcf" + "soundfile" "soundevents/game_sounds_heroes/game_sounds_nevermore.vsndevts" + } + + "OnSpellStart" + { + "RunScript" + { + "ScriptFile" "heroes/hero_nevermore/shadowraze.lua" + "Function" "Raze" + } + } + + "OnUpgrade" + { + "RunScript" + { + "ScriptFile" "heroes/hero_nevermore/shadowraze.lua" + "Function" "LevelRaze" + } + } +} From e7d40940b25ad64a99759da2f33a49a14dcfac56 Mon Sep 17 00:00:00 2001 From: nc-dk Date: Sat, 4 Mar 2017 22:34:10 +1100 Subject: [PATCH 07/10] Update nevermore_shadowraze3_datadriven.txt Fixed AbilitySpecial not being aligned. --- .../npc/abilities/nevermore_shadowraze3_datadriven.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/game/scripts/npc/abilities/nevermore_shadowraze3_datadriven.txt b/game/scripts/npc/abilities/nevermore_shadowraze3_datadriven.txt index f0211849..3fa213b4 100644 --- a/game/scripts/npc/abilities/nevermore_shadowraze3_datadriven.txt +++ b/game/scripts/npc/abilities/nevermore_shadowraze3_datadriven.txt @@ -37,22 +37,22 @@ "01" { "var_type" "FIELD_INTEGER" - "shadowraze_radius" "250" + "shadowraze_radius" "250" } "02" { "var_type" "FIELD_INTEGER" - "shadowraze_range" "700" + "shadowraze_range" "700" } "03" { "var_type" "FIELD_INTEGER" - "shadowraze_cooldown" "3" + "shadowraze_cooldown" "3" } "04" { "var_type" "FIELD_INTEGER" - "shadowraze_damage" "100 175 250 325" + "shadowraze_damage" "100 175 250 325" } } From 21b14ad718457b603d5706353668608e43c0a0b2 Mon Sep 17 00:00:00 2001 From: nc-dk Date: Sat, 4 Mar 2017 22:35:04 +1100 Subject: [PATCH 08/10] Update nevermore_shadowraze2_datadriven.txt Fixed minor formatting issues. --- .../nevermore_shadowraze2_datadriven.txt | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/game/scripts/npc/abilities/nevermore_shadowraze2_datadriven.txt b/game/scripts/npc/abilities/nevermore_shadowraze2_datadriven.txt index 242144b7..25796b46 100644 --- a/game/scripts/npc/abilities/nevermore_shadowraze2_datadriven.txt +++ b/game/scripts/npc/abilities/nevermore_shadowraze2_datadriven.txt @@ -5,30 +5,30 @@ { // General //------------------------------------------------------------------------------------------------------------- - "BaseClass" "ability_datadriven" - "AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_NO_TARGET | DOTA_ABILITY_BEHAVIOR_IGNORE_BACKSWING" + "BaseClass" "ability_datadriven" + "AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_NO_TARGET | DOTA_ABILITY_BEHAVIOR_IGNORE_BACKSWING" "AbilityUnitDamageType" "DAMAGE_TYPE_MAGICAL" - "SpellImmunityType" "SPELL_IMMUNITY_ENEMIES_NO" - "FightRecapLevel" "1" + "SpellImmunityType" "SPELL_IMMUNITY_ENEMIES_NO" + "FightRecapLevel" "1" "AbilityTextureName" "nevermore_shadowraze2" // Casting //------------------------------------------------------------------------------------------------------------- - "AbilityCastPoint" "0.55 0.55 0.55 0.55" + "AbilityCastPoint" "0.55 0.55 0.55 0.55" "AbilityCastAnimation" "ACT_DOTA_RAZE_2" - "AOERadius" "450" + "AOERadius" "450" // Time //------------------------------------------------------------------------------------------------------------- - "AbilityCooldown" "10.0 10.0 10.0 10.0" + "AbilityCooldown" "10.0 10.0 10.0 10.0" // Damage. //------------------------------------------------------------------------------------------------------------- - "AbilityDamage" "100 175 250 325" + "AbilityDamage" "100 175 250 325" // Cost //------------------------------------------------------------------------------------------------------------- - "AbilityManaCost" "90 90 90 90" + "AbilityManaCost" "90 90 90 90" // Special //------------------------------------------------------------------------------------------------------------- @@ -37,22 +37,22 @@ "01" { "var_type" "FIELD_INTEGER" - "shadowraze_radius" "250" + "shadowraze_radius" "250" } "02" { "var_type" "FIELD_INTEGER" - "shadowraze_range" "450" + "shadowraze_range" "450" } "03" { "var_type" "FIELD_INTEGER" - "shadowraze_cooldown" "3" + "shadowraze_cooldown" "3" } "04" { "var_type" "FIELD_INTEGER" - "shadowraze_damage" "100 175 250 325" + "shadowraze_damage" "100 175 250 325" } } From c75cccb6cda6dbd615825219eaf669b8527b0188 Mon Sep 17 00:00:00 2001 From: nc-dk Date: Sat, 4 Mar 2017 22:35:33 +1100 Subject: [PATCH 09/10] Update nevermore_shadowraze2_datadriven.txt Fixed "BaseClass" sticking out --- game/scripts/npc/abilities/nevermore_shadowraze2_datadriven.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/scripts/npc/abilities/nevermore_shadowraze2_datadriven.txt b/game/scripts/npc/abilities/nevermore_shadowraze2_datadriven.txt index 25796b46..1aa2f8c7 100644 --- a/game/scripts/npc/abilities/nevermore_shadowraze2_datadriven.txt +++ b/game/scripts/npc/abilities/nevermore_shadowraze2_datadriven.txt @@ -5,7 +5,7 @@ { // General //------------------------------------------------------------------------------------------------------------- - "BaseClass" "ability_datadriven" + "BaseClass" "ability_datadriven" "AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_NO_TARGET | DOTA_ABILITY_BEHAVIOR_IGNORE_BACKSWING" "AbilityUnitDamageType" "DAMAGE_TYPE_MAGICAL" "SpellImmunityType" "SPELL_IMMUNITY_ENEMIES_NO" From 20a82fb9d61c80d5725aa3a4c70ec2a0d3b83e2e Mon Sep 17 00:00:00 2001 From: nc-dk Date: Sat, 4 Mar 2017 22:36:47 +1100 Subject: [PATCH 10/10] Update nevermore_shadowraze1_datadriven.txt Minor formatting fixes --- .../nevermore_shadowraze1_datadriven.txt | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/game/scripts/npc/abilities/nevermore_shadowraze1_datadriven.txt b/game/scripts/npc/abilities/nevermore_shadowraze1_datadriven.txt index 1da14600..ba8ad3dd 100644 --- a/game/scripts/npc/abilities/nevermore_shadowraze1_datadriven.txt +++ b/game/scripts/npc/abilities/nevermore_shadowraze1_datadriven.txt @@ -5,30 +5,30 @@ { // General //------------------------------------------------------------------------------------------------------------- - "BaseClass" "ability_datadriven" - "AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_NO_TARGET | DOTA_ABILITY_BEHAVIOR_IGNORE_BACKSWING" + "BaseClass" "ability_datadriven" + "AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_NO_TARGET | DOTA_ABILITY_BEHAVIOR_IGNORE_BACKSWING" "AbilityUnitDamageType" "DAMAGE_TYPE_MAGICAL" - "SpellImmunityType" "SPELL_IMMUNITY_ENEMIES_NO" - "FightRecapLevel" "1" + "SpellImmunityType" "SPELL_IMMUNITY_ENEMIES_NO" + "FightRecapLevel" "1" "AbilityTextureName" "nevermore_shadowraze1" // Casting //------------------------------------------------------------------------------------------------------------- - "AbilityCastPoint" "0.55 0.55 0.55 0.55" + "AbilityCastPoint" "0.55 0.55 0.55 0.55" "AbilityCastAnimation" "ACT_DOTA_RAZE_1" - "AOERadius" "250" + "AOERadius" "250" // Time //------------------------------------------------------------------------------------------------------------- - "AbilityCooldown" "10.0 10.0 10.0 10.0" + "AbilityCooldown" "10.0 10.0 10.0 10.0" // Damage. //------------------------------------------------------------------------------------------------------------- - "AbilityDamage" "100 175 250 325" + "AbilityDamage" "100 175 250 325" // Cost //------------------------------------------------------------------------------------------------------------- - "AbilityManaCost" "90 90 90 90" + "AbilityManaCost" "90 90 90 90" // Special //------------------------------------------------------------------------------------------------------------- @@ -37,22 +37,22 @@ "01" { "var_type" "FIELD_INTEGER" - "shadowraze_radius" "250" + "shadowraze_radius" "250" } "02" { "var_type" "FIELD_INTEGER" - "shadowraze_range" "200" + "shadowraze_range" "200" } "03" { "var_type" "FIELD_INTEGER" - "shadowraze_cooldown" "3" + "shadowraze_cooldown" "3" } "04" { "var_type" "FIELD_INTEGER" - "shadowraze_damage" "100 175 250 325" + "shadowraze_damage" "100 175 250 325" } }