project-navigation
Personal tools

Author Topic: Number of turns for incendiary and smoke effects  (Read 4792 times)

Offline beng

  • Rookie
  • ***
  • Posts: 63
    • View Profile
Number of turns for incendiary and smoke effects
« on: February 22, 2015, 04:54:28 am »
How does one alter the length of time that smoke or fire persists when a smoke or incendiary munition is fired?
I see in the .ufo files a line that says rounds. How does that work?

Is it possible to make a shorter duration incendiary grenade that only burns an area for the turn when it is fired, then the alien movement time, so that civilians don't walk into the flames and your troops can move through the area in the next turn?

Offline anonymissimus

  • Sergeant
  • *****
  • Posts: 347
    • View Profile
Re: Number of turns for incendiary and smoke effects
« Reply #1 on: February 22, 2015, 05:28:20 pm »
so that civilians don't walk into the flames and your troops can move through the area in the next turn?
I consider civies walking there a bug. They are guaranteed to die. The alien right beside and driving them does not mean they will however - that alien may attack phalanx instead or it may be dead its next turn.

Offline DarkRain

  • Project Coder
  • Captain
  • ***
  • Posts: 746
    • View Profile
Re: Number of turns for incendiary and smoke effects
« Reply #2 on: February 24, 2015, 01:57:07 am »
Yes the rounds property is the one you are looking for, it counts whole rounds, that is: once all players have moved and it is your turn again, so you cannot achieve what you are looking for one round means "untill is your turn again" while zero rounds would mean "once your turn ends (before aliens start their turn)" - that is, if zero is even a valid value at all (don't remember right now)

As for civilians walking on fire, yes it is a bug (it even has an entry on our bug tracker) currently the AI will try to not end their turn on fire (or gas, etc) unless other more pressing issues force them on it (might need balancing) but sadly that doesn't preclude them from trying to cross the fire to get to the other side... of course the same applies to your soldiers: if you don't pay attention they will happily walk into the fire when trying to get somewhere else, instead of going around... (but then, they stop walking the moment they are hurt, so won't walk themselves to death, unless you are too stubborn)