Array
(
[scriptVersion] => 7
[oeValues] => Array
(
[RngBuff1] => 250
[MissileHoming] => 1
[Upgrade] => Array
(
)
[targs1] => Array
(
)
[goldcost] => 300
[weapsOn] => 1
[dice1] => 1
[Missilespeed] => 2500
[file] => units\human\Rifleman\Rifleman.mdl
[modelScale] => 0.7
[atkType1] => siege
[weapTp1] => instant
[acquire] => 1300
[rangeN1] => 1400
[upgrades] => Array
(
)
[cool1] => 2.5
[Ubertip] => A long ranged tower which is good against bosses, but weak against mass creeps.
[abilList] => Array
(
)
[Name] => Sniper
[Missileart] => Abilities\Weapons\Rifle\RifleImpact.mdl
[Art] => ReplaceableTextures\CommandButtons\BTNRifleman.blp
[buildingShadow] => Array
(
)
[unitSound] => Rifleman
[turnRate] => 0.6
[sides1] => 1
[uberSplat] => ESMB
[auto] => Array
(
)
[dmgplus1] => 424
[bldtm] => 1
)
[settings] => Array
(
[author] => cedi
[element] => iron
[authorDisplay] => cedi
[balanceTip] => |cffFFFF00-70% |rdmg to masses|n|cffFFFF00-30% |rdmg to normals|n|cffFFFF00+20% |rdmg to champions (|cffFFFF00+1.6%|r/lvl)|n|cffFFFF00+50% |rdmg to bosses (|cffFFFF00+4%|r/lvl)|n|cffFFFF00+20% |rdmg to air (|cffFFFF00+1.6%|r/lvl)
[rarity] => uncommon
[version] => 1.0
[abil_factor] => 0.68
)
[effects] => Array
(
[0] => Array
(
[x] => -25.5837
[y] => -39.4401
[z] => 0
[scale] => 0.85
[rot] => 0.261799
[file] => Doodads\LordaeronSummer\Plants\RiverRushes\RiverRushes0.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
[1] => Array
(
[x] => 26.2837
[y] => -1.31888
[z] => 0
[scale] => 0.85
[rot] => 1.0472
[file] => Doodads\LordaeronSummer\Plants\RiverRushes\RiverRushes0.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
[2] => Array
(
[x] => -19.8671
[y] => 27.121
[z] => 0
[scale] => 0.85
[rot] => 4.72984
[file] => Doodads\LordaeronSummer\Plants\RiverRushes\RiverRushes0.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
)
[dmgTable] => Array
(
[0] => Array
(
[id] => MOD_DMG_TO_MASS
[base] => -0.7
[add] => 0
)
[1] => Array
(
[id] => MOD_DMG_TO_NORMAL
[base] => -0.3
[add] => 0
)
[2] => Array
(
[id] => MOD_DMG_TO_CHAMPION
[base] => 0.2
[add] => 0.016
)
[3] => Array
(
[id] => MOD_DMG_TO_BOSS
[base] => 0.5
[add] => 0.04
)
[4] => Array
(
[id] => MOD_DMG_TO_AIR
[base] => 0.2
[add] => 0.016
)
)
[triggers] => Array
(
[0] => Array
(
[name] => Header
[code] => 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
[values] => Array
(
[icon] =>
[visible] => false
[name] =>
[short_explain] =>
[long_explain] =>
)
)
[1] => Array
(
[name] => On Attack
[code] => set Projectile.createLinearInterpolationFromUnitToUnit(cedi_sniper_rocket,tower,4.0+tower.getLevel()*0.1, tower.calcSpellCritNoBonus(),tower,Event.getTarget(),0.25,true).userReal = 150.0
[values] => Array
(
[icon] => ReplaceableTextures\PassiveButtons\PASBTNHumanArtilleryUpOne.blp
[visible] => true
[name] => Rocket Strike
[short_explain] => Gives a chance to deal splash damage on attack.
[ONATTACK_chance] => 0.30
[ONATTACK_chanceLevelAdd] => 0.006
[long_explain] => |cffFFFF8030%|r chance to fire a rocket towards the attacked unit. On impact it deals |cffFFFF80400|r damage in a |cffFFFF80150|r AoE. Deals |cffFFFF80125%|r damage to mass creeps.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.6%|r chance|n|cffFFFF80+10|r damage
)
)
)
[abilities] => Array
(
)
[buffs] => Array
(
)
[units] => Array
(
)
[references] => Array
(
[0] => Array
(
[export] => true
[category] => global
[typ] => ProjectileType
[name] => cedi_sniper_rocket
)
)
)