View Single Post
Old 15-09-14, 16:35   #9
Titak
Moderator
 
Titak's Avatar
 
Join Date: Jul 2003
Location: Drenthe, The Netherlands
Posts: 32,752
Default

EXAMPLE 7 - STUMBLE_TO_RUN AFTER A FALL
-------------------------------------------------------------------

This move will make Lara stumble into a run when you keep pressing arrow up when landing safely after a fall.


Download animation

animation-stumble.zip

This animation was originally created by Geckokid.
The script I made works with this animation.


Script command

Animation= 487, KEY1_UP, IGNORE, FAN_SET_FREE_HANDS_TEMP, ENV_MULT_CONDITION, 6, IGNORE, -24
MultEnvCondition= 6, ENV_FRAME_NUMBER, 1, IGNORE, ENV_NO_BLOCK_IN_FRONT, IGNORE, IGNORE



What does it all mean?

487
This is the animationnumber of the ladder-to-monkey animation.
You can ofcourse put the animation in another slot and then you have to change this number to the slotnumber you placed the animation in.

KEY1_UP
To activate the animation you have to press Action and arrow up.

IGNORE
No KEY2_ is assigned, so that’s why IGNORE is put in this field.

IGNORE
FAN_SET_FREE_HANDS_TEMP is added to tell the game that Lara's hands are free during the animation.
So even if she is holding guns or a torch during the animation, she will move her arms properly.

ENV_MULT_CONDITION
Since more than one ENV_ command is needed, ENV_MULT_CONDITION is used. I this example it points to MultEnvCondition= 6 but if number 6 is already used, you can ofcourse change it to another number.

6
This is the ID number of the MultEnvCondition= command.
As said above, you can ofcourse change this in case ID 6 is already used.

IGNORE
No Extra value/condition is needed so that’s why IGNORE is put in this field.

-24
This is the animationnumber of Lara landing after a longer drop.


In the MultiEnvCondition=:
ENV_FRAME_NUMBER, 1, IGNORE,
Means that the animation should start at frame 1 of animation 24.

ENV_NO_BLOCK_IN_FRONT, IGNORE, IGNORE
With this ENV_ condition added, Lara won't perform the animation when she lands right in front of a block.

Note that with this script Lara will perform the move when she is on the edge of a hole in the floor. So she will fall in when you make her stumble!
This can be avoided by putting yet another ENV_ condition in the MultiEnvCondition= command, but I prefer it having this way: more realistic imo.


Screenshot

__________________
If it walks like a duck and if it quacks like a duck, it is a duck.

Last edited by Titak; 30-12-14 at 11:02.
Titak is online now