Sniper v1
300
ID:
662
Family ID:
Author:
cedi
Rarity:
uncommon
Element:
iron
Attack Type:
Physical
Attack Range:
1400
Attack CD:
2.5
Damage:
425-425
Abil. Factor:
0.68
Status:
Approved

Description:

A long ranged tower which is good against bosses, but weak against mass creeps.

Latest Upload Comment:

Restored from 1.10
Specials:
-70% dmg to masses
-30% dmg to normals
+20% dmg to champions (+1.6%/lvl)
+50% dmg to bosses (+4%/lvl)
+20% dmg to air (+1.6%/lvl)
Rocket Strike
30% chance to fire a rocket towards the attacked unit. On impact it deals 400 damage in a 150 AoE. Deals 125% damage to mass creeps.

Level Bonus:
+0.6% chance
+10 damage
Download

Toggle Triggers

Header

    globals
        //@export
        ProjectileType cedi_sniper_rocket
    endglobals    
   
    function RocketHit takes Projectile p, Unit t returns nothing
        call p.doSpellDamagePBAoE(p.userReal,100.0,0.0)
        call DestroyEffect( AddSpecialEffect( "Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl", p.x, p.y ) )
    endfunction
    
    //Do not remove or rename this function!
    //Put your initialization tasks here, this function will be called on map init
    private function init takes nothing returns nothing
        local DamageTable myDT = DamageTable.create()
        call myDT.setBonusToSize( SIZE_MASS, 0.95 )        
        set cedi_sniper_rocket = ProjectileType.createInterpolate( "Abilities\\Weapons\\RocketMissile\\RocketMissile.mdl", 750.00 )
        call cedi_sniper_rocket.setCustomDamageTable( myDT )
        call cedi_sniper_rocket.setEventOnInterpolationFinished(ProjectileTargetEvent.RocketHit)
    endfunction

On Attack

ONATTACK_chance: 0.30 ONATTACK_chanceLevelAdd: 0.006
function onAttack takes Tower tower returns nothing
    set Projectile.createLinearInterpolationFromUnitToUnit(cedi_sniper_rocket,tower,4.0+tower.getLevel()*0.1, tower.calcSpellCritNoBonus(),tower,Event.getTarget(),0.25,true).userReal = 150.0
endfunction