project-navigation
Personal tools

Author Topic: [32055] stunned alien bug  (Read 3382 times)

Offline jerikojerk

  • Squad Leader
  • ****
  • Posts: 149
    • View Profile
[32055] stunned alien bug
« on: August 30, 2010, 01:57:30 am »
to get great improvement, we have to go through some bugs.

what happen: 255 aliens were rescaped from a mission i won.

what is noticeable is that i stunned an ortnok, then the very last remaining ortnok with the stun staff, the orthnok stay alert, then shot a burst of plasma riffle at this ortnok (whom die grrr) and get the following strange victory, immediatly followed by game over message.

Offline jerikojerk

  • Squad Leader
  • ****
  • Posts: 149
    • View Profile
Re: [32055] stunned alien bug
« Reply #1 on: August 30, 2010, 02:33:47 am »
i think killing a alien who was already stunned is the key of this bug. 255 looks like unsigned issue for -1 as i suspect "remaining aliens" are computed from killed alien minus stunned alien.

If you allow to kill stunned alien, you have to increment killed alien count AND decrement stunned alien count.

Did i good guess?

Offline jerikojerk

  • Squad Leader
  • ****
  • Posts: 149
    • View Profile
Re: [32055] stunned alien bug
« Reply #2 on: September 04, 2010, 05:56:57 pm »
i noticed that you could stunned a alien two times, with stunned grenade, and get this victory and the game over.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: [32055] stunned alien bug
« Reply #3 on: September 06, 2010, 08:14:09 pm »

Offline jerikojerk

  • Squad Leader
  • ****
  • Posts: 149
    • View Profile
Re: [32055] stunned alien bug
« Reply #4 on: September 09, 2010, 01:57:35 pm »
ok if i understand well, i apply the patch and pleasure check if it's fixed. I know about the repository been locked, but your project is the only one i follow on sourceforge been affected... what really happens?

Offline Kildor

  • Project Artist
  • Captain
  • ***
  • Posts: 757
  • Project mapper and some other stuff`er
    • View Profile
    • http://ufoai.nx0.ru
Re: [32055] stunned alien bug
« Reply #5 on: September 09, 2010, 02:25:00 pm »
project has been switched to the git. Read news on main page, please.

Offline jerikojerk

  • Squad Leader
  • ****
  • Posts: 149
    • View Profile
Re: [32055] stunned alien bug
« Reply #6 on: September 09, 2010, 03:15:33 pm »
i'm trying to kill an stunned alien, it doesn't work anymore, so the victory message is ok. Your patch seems to work fine.

Code: [Select]
/**
  * @@ -350,14 +424,21 @@ static void G_ActorDie (edict_t * ent, const edict_t *attacker)
  * @todo Discuss whether stunned actor should really drop everything to floor. Maybe
  * it should drop only what he has in hands? Stunned actor can wake later during mission.
  */

i have the habit to remove all the weapons  who are lying on the floor, i don't want a alien to wake up and takes arms.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: [32055] stunned alien bug
« Reply #7 on: September 09, 2010, 04:05:20 pm »
killing a stunned alien should work....