initial commit
This commit is contained in:
28
aghanim_singleplayer/scripts/vscripts/abilities/ascension_bomb.lua
Executable file
28
aghanim_singleplayer/scripts/vscripts/abilities/ascension_bomb.lua
Executable file
@@ -0,0 +1,28 @@
|
||||
|
||||
ascension_bomb = class({})
|
||||
LinkLuaModifier( "modifier_bomber_death_explosion", "modifiers/creatures/modifier_bomber_death_explosion", LUA_MODIFIER_MOTION_NONE )
|
||||
|
||||
-----------------------------------------------------------------------------------------
|
||||
|
||||
function ascension_bomb:Precache( context )
|
||||
PrecacheResource( "particle", "particles/units/heroes/hero_techies/techies_remote_mines_detonate.vpcf", context )
|
||||
PrecacheResource( "particle", "particles/dark_moon/darkmoon_calldown_marker_ring.vpcf", context )
|
||||
PrecacheResource( "particle", "particles/units/heroes/hero_gyrocopter/gyro_guided_missile_target.vpcf", context )
|
||||
end
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
function ascension_bomb:OnSpellStart()
|
||||
|
||||
if not IsServer() then
|
||||
return
|
||||
end
|
||||
|
||||
local hTarget = self:GetCursorTarget()
|
||||
if hTarget == nil then
|
||||
return
|
||||
end
|
||||
|
||||
hTarget:AddNewModifier( hTarget, self, "modifier_bomber_death_explosion", {} )
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user