Page 1 of 1

[Oxyd] set_cease_fire and already aimed player

Posted: Sat Mar 26, 2016 5:58 pm
by y.petremann
Already aimed entity in ennemy force still get aimed automaticaly if set to ally.

Setup :
  • Each player do to set their respective force :

    Code: Select all

    /c game.local_player.force = game.create_force(game.local_player.name)
  • Then a player do to set another player as enemy :

    Code: Select all

    /c game.local_player.force.set_cease_fire("",false)
  • Then it aim an shoot with space to the enemy player without kiling
  • Then a player do to set another player as ally :

    Code: Select all

    /c game.local_player.force.set_cease_fire("",true)
  • Then press space : the player still shoot on the ally player
What should it do :
When set_cease_fire is called, every entity (including players,turret does it great now) of the first force targeting any entities of the second force should reset their target

Re: [Oxyd] set_cease_fire and already aimed player

Posted: Sat Mar 26, 2016 6:59 pm
by Oxyd
Nice find. This will be fixed in 0.12.30.