View Issue Details

IDProjectCategoryView StatusLast Update
0002169The Dark ModAIpublic03.06.2011 03:59
Reportergrayman Assigned Tograyman  
PrioritynormalSeveritynormalReproducibilityalways
Status closedResolutionfixed 
PlatformWin32OSWindowsOS VersionXP
Product VersionTDM 1.01 
Target VersionTDM 1.03Fixed in VersionTDM 1.03 
Summary0002169: Strange AI behaviour/death when underwater
DescriptionIf an AI (a citywatch guard in this case) finds itself underwater, the following odd behavior occurs:

The AI continues with its idle animations and voices. It might stretch. It might talk about going to the kitchen. Then, when it notices it's underwater, it starts to cough, then it dies. It will drop whatever its holding, and will slump over, still standing. It doesn't collapse to the floor.

This behavior is different than that in TDM 1.00. There the AI would get alarmed, start walking around underwater looking for an enemy (asking it to come out), then die after a couple minutes. It would drop everything, then raise its arms, and remain standing.

The behavior is better in TDM 1.01. The AI dies more quickly, and doesn't have time to go wandering around looking for someone to smack. However, it takes about 10s or so before it notices it's underwater, so its behavior prior to that is as if it were standing on dry land, breathing air.
Steps To Reproducedmap the attached map.

Press the button and the guard will drop into the water.

Watch the fun.
TagsNo tags attached.
Attached Files
AI_in_H2O.map (13,231 bytes)

Activities

grayman

grayman

10.11.2010 07:03

viewer   ~0003284

In 1.02, AI collapse correctly. Still need to look at disallowing idle barking and animations.
grayman

grayman

10.11.2010 20:18

viewer   ~0003286

I've made corrections to disable idle barking and animations when an AI is underwater.

Checking them in soon.
grayman

grayman

13.11.2010 20:31

viewer   ~0003289

Last edited: 14.11.2010 23:53

Code changes:

rev 4273:

IdleAnimationTask.cpp
RepeatedBarkTask.cpp
SingleBarkTask.cpp

Testing:

Dropped several AI into water and observed their corrected behavior.

Issue History

Date Modified Username Field Change
12.03.2010 18:53 grayman New Issue
12.03.2010 18:53 grayman File Added: AI_in_H2O.map
24.04.2010 15:32 greebo Assigned To => greebo
24.04.2010 15:32 greebo Status new => acknowledged
24.04.2010 15:33 greebo Assigned To greebo =>
24.04.2010 15:33 greebo Summary Strange AI death => Strange AI behaviour/death when underwater
10.11.2010 07:03 grayman Note Added: 0003284
10.11.2010 07:03 grayman Assigned To => grayman
10.11.2010 20:18 grayman Note Added: 0003286
12.11.2010 21:44 grayman Status acknowledged => resolved
12.11.2010 21:44 grayman Resolution open => fixed
12.11.2010 21:44 grayman Fixed in Version => TDM 1.03
12.11.2010 21:44 grayman Target Version => TDM 1.03
13.11.2010 20:31 grayman Note Added: 0003289
14.11.2010 23:53 grayman Note Edited: 0003289
03.06.2011 03:59 greebo Status resolved => closed