Author Topic: Probably a bug: defense not working  (Read 905 times)

Zoythrus

  • Guest
Probably a bug: defense not working
« on: 18 December 2010, 22:35:08 »
ok, for my mod, im trying to make a defense that fires every 4 seconds (its to balance out it's one-hit-kill abilities). i tested this on the 1004 snapshot of GAE

the problem is, it's not firing correctly

before, i had the attack-speed = 10 and the attack-start-time = 0. it would fire about 10 times, then wait for a few seconds, then fire again (even if enemies were near)

now, the attack-speed = 100 and the attack-start-time is = 4, and now it wont fire at all.

i dont get it!

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Probably a bug: defense not working
« Reply #1 on: 19 December 2010, 08:27:52 »
You can't have a start time over 1.
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

Zoythrus

  • Guest
Re: Probably a bug: defense not working
« Reply #2 on: 19 December 2010, 17:37:23 »
yeah, i realized that now. but even at 0, it was firing wrong...

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Probably a bug: defense not working
« Reply #3 on: 19 December 2010, 19:57:02 »
Well, attack start time might not be the optimal choice. It's just the delay between attacks, but the anim and attack speed are what are mostly used (note: make sure they are both exactly the same value). You want it to fire every 4 seconds? Give it 4 EP, 1 EP Regeneration, and the attack will have a 4 EP cost.
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

Zoythrus

  • Guest
Re: Probably a bug: defense not working
« Reply #4 on: 19 December 2010, 20:38:45 »
not a bad idea....

EDIT: i just realized that it uses EP to transform into another mode (it will have 3 modes: infantry, tanks, and aircraft)

any other ideas?
« Last Edit: 19 December 2010, 20:48:01 by Zoythrus »

 

anything