View Issue Details

IDProjectCategoryView StatusLast Update
0002431The Dark ModAIpublic10.10.2017 14:42
ReporterSpringheel Assigned To 
PrioritynormalSeveritynormalReproducibilityhave not tried
Status closedResolutionfixed 
Product VersionSVN 
Target VersionTDM 2.04Fixed in VersionTDM 2.04 
Summary0002431: Feature Reqest: Cower Behaviour needs to be added
DescriptionWe have two cowering animations, but need some code to make use of them.

Level 1 behaviour:
AI should player cowering animation (possibly looped, possibly at random intervals) for a set amount of time once they reach their final flee destination.

Level 2 behaviour:
Once cower is completed, and until the AI resumes his business, he should play his cower animation again if the player comes within X distance of the AI.
TagsNo tags attached.

Activities

nbohr1more

nbohr1more

10.10.2017 14:40

developer   ~0009450

FleeDoneState::Think has a cower behavior:

else if (gameLocal.time >= _turnEndTime)
        {
            // We didn't find a friend, stop looking for them after some time
            _searchForFriendDone = true;
            owner->movementSubsystem->ClearTasks();
            owner->SetTurnRate(_oldTurnRate);

            // Play the cowering animation
            owner->SetAnimState(ANIMCHANNEL_TORSO, "Torso_Cower", 4);
            owner->SetAnimState(ANIMCHANNEL_LEGS, "Legs_Cower", 4);
}

Issue History

Date Modified Username Field Change
21.11.2010 01:02 Springheel New Issue
21.11.2010 01:05 Springheel Summary Cower Behaviour needed to be added => Cower Behaviour needs to be added
11.12.2010 16:14 Springheel Summary Cower Behaviour needs to be added => Feature Reqest: Cower Behaviour needs to be added
11.12.2010 16:14 Springheel Description Updated
10.10.2017 14:40 nbohr1more Note Added: 0009450
10.10.2017 14:42 nbohr1more Status new => closed
10.10.2017 14:42 nbohr1more Resolution open => fixed
10.10.2017 14:42 nbohr1more Product Version => SVN
10.10.2017 14:42 nbohr1more Fixed in Version => TDM 2.04
10.10.2017 14:42 nbohr1more Target Version => TDM 2.04