I've noticed something in the perfectai and the genericai scripts and I don't like it so I decidet to ask if anyone else has this problem too.Now I made an enemy pawn and used the perfectai script with it,I set it's sightdist to 2000 and put my pawn in further than 2000 of the enemy pawn.When the game started I tried to shoot the pawn with the sniper without getting into it's sightdist,but when I shot it,It didn't die.Than I tought there's something with the weapon I'm using so I decided to get closer to the enemy and shoot him,but I accidently got into it's sightdist and than the enemy died without shooting at it.I tried to do it again,but it was the same the enemy dies only when I get into it's sightdist.It doesn't even executes the pain order,I tried to shoot it only once with a pistol -Noreaction...I got into it's sightdist and than the pain order was executed by the pawn...
Anyone else has the same problem? Help PLZ!
Now That Shouldn't Be Happening,Right?
- metal_head
- Posts: 1244
- Joined: Sat Jan 05, 2008 8:31 pm
- Location: Bulgaria,Sofia
- Contact:
Re: Now That Shouldn't Be Happening,Right?
It seems to me that the pain orders and death checking are not being run until the pawn has recognized the player. Need to add code to check these prior to that. I'll check into fixing it if I get some spare time.
"So, what's the life of a programmer like?" "...Huh? What life?!"
RF System X:
http://www.realityfactory.info/forum/vi ... f=9&t=3599
RF System X:
http://www.realityfactory.info/forum/vi ... f=9&t=3599
- metal_head
- Posts: 1244
- Joined: Sat Jan 05, 2008 8:31 pm
- Location: Bulgaria,Sofia
- Contact:
Re: Now That Shouldn't Be Happening,Right?
It would be great,thanks!