Bears and Wolves.
Posted: Thu Jan 18, 2007 1:25 am
I put a few bears and wolves on my map I found in the terrain map editor. I was poking around a noticed that they had some animation code in the decorations file in the France map.
<Animations>
<State>
<ID>1</ID>
<SequenceID>1000</SequenceID>
<fMinPlayTime>1.0</fMinPlayTime>
<fMaxPlayTime>2.0</fMaxPlayTime>
<Transitions>
<Transition>
<State>2</State>
<Chance>100</Chance>
</Transition>
</Transitions>
</State>
<State>
<ID>2</ID>
<SequenceID>1001</SequenceID>
<Transitions>
<State>1</State>
<Chance>100</Chance>
</Transitions>
</State>
</Animations>
........................................................
I found out you can put in different ID numbers that cause different actions. For example:
<SequenceID>1000</SequenceID>
Just change the 1000 to 1010 and the bear or wolf will run in place.
I compiled this list of actions.
1000 = does not move
1001 = fidget
1010 = runs
1012 = runs and dies
1024 = dies
1022 = strikes
--------------------------------------------
I have not been able to do any repeat actions except the running. I tried playing with the other variables with no luck. Anybody have any experience with the animations? I would like to have them doing repeat actions. I guess this was something they were going to do and did not follow through with???
<Animations>
<State>
<ID>1</ID>
<SequenceID>1000</SequenceID>
<fMinPlayTime>1.0</fMinPlayTime>
<fMaxPlayTime>2.0</fMaxPlayTime>
<Transitions>
<Transition>
<State>2</State>
<Chance>100</Chance>
</Transition>
</Transitions>
</State>
<State>
<ID>2</ID>
<SequenceID>1001</SequenceID>
<Transitions>
<State>1</State>
<Chance>100</Chance>
</Transitions>
</State>
</Animations>
........................................................
I found out you can put in different ID numbers that cause different actions. For example:
<SequenceID>1000</SequenceID>
Just change the 1000 to 1010 and the bear or wolf will run in place.
I compiled this list of actions.
1000 = does not move
1001 = fidget
1010 = runs
1012 = runs and dies
1024 = dies
1022 = strikes
--------------------------------------------
I have not been able to do any repeat actions except the running. I tried playing with the other variables with no luck. Anybody have any experience with the animations? I would like to have them doing repeat actions. I guess this was something they were going to do and did not follow through with???