Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mines question
#2
Code:
        if Dist <= 0.5 * Rng then
            set Damage = Dmg
        else
            set Damage = (1.75-1.5*(Dist/Rng)) * Dmg

Dist = Distance between the triggering unit and the mine
Rng = the maximum range of the mine (in this case its 600)
Dmg = the mine damage, depends on the mine and attack upgrades

It does basically mean that full damage is dealt within half the range (300), after that the damage slowly goes down to 25% of the maximum. So at 301 range its just slightly lower than the full damage.
This post has been brought to you by Sand - it's everywhere, get used to it.
Reply


Messages In This Thread
Mines question - by Batto - 2008-03-14, 02:36:36
Re: Mines question - by Exodus - 2008-03-14, 03:12:32
Re: Mines question - by Batto - 2008-03-14, 12:21:28

Possibly Related Threads…
Thread Author Replies Views Last Post
  question about Kinetic Shield stibi- 4 5,823 2014-05-16, 21:41:52
Last Post: stibi-
  Clarify tooltips of armors / Question about weapon damage griffin1987 1 2,691 2014-03-01, 17:12:43
Last Post: Exodus
  Assist Mines PaPPa_D 0 2,032 2011-07-31, 09:38:55
Last Post: PaPPa_D
  Does remove fuse suck hard? Or the hulls pwn mines better? TKF 12 8,024 2009-11-21, 22:43:03
Last Post: IlPalazzo
  disable putting wards, mines and factories in enemy base benben10 17 9,211 2009-05-04, 22:30:30
Last Post: Tynkywinky



Users browsing this thread: 2 Guest(s)