tFighterPilot
Sergeant at Arms
Is closer than ever?
Crawling Animation:
Edit: Added link to the crawling animation of the author (Earendil)
Code:
common_crawl_change= (0, 0, 0,
[
(neg|conversation_screen_is_active),
(key_clicked, key_z),
],
[
(get_player_agent_no, ":ag"),
(try_begin),
(eq, "$crawling", 1),
(assign, "$crawling", 0),
(else_try),
(assign, "$crawling", 1),
(try_end),
])
common_crawling_set=(0, 0, 0,
[
(assign, "$crawlfor", 0),
(neg|conversation_screen_is_active),
(game_key_is_down, gk_move_forward),
(eq, "$crawling", 1),
],
[(assign, "$crawlfor", 1),])
common_crawling=(0, 0, 0,
[(eq, "$crawl_ani_on", 1, 1),],
[
(get_player_agent_no, ":ag"),
(agent_get_position, pos12, ":ag"),
(agent_get_look_position, pos13, ":ag"),
(position_get_rotation_around_z, ":rotag", pos13),
(assign, ":spdx", 0.0),
(assign, ":spdy", 0.0),
(store_sin, ":spdx", ":rotag"),
(store_cos, ":spdy", ":rotag"),
(val_div, ":spdx", 100),
(val_div, ":spdy", 100),
(position_move_y, pos12, ":spdy"),
(position_move_x, pos12, ":spdx"),
(agent_set_position, ":ag", pos12),
])
common_anicrawl=(1, 0, 0, [],
[
(get_player_agent_no, ":ag"),
(assign, "$crawl_ani_on", 0),
(try_begin),
(eq, "$crawlfor", 1),
(agent_set_animation, ":ag", "anim_crawling_forward"),
(assign, "$crawl_ani_on", 1),
(else_try),
(eq, "$crawling", 1),
(agent_set_animation, ":ag", "anim_crawling_still"),
(try_end),
])
Crawling Animation:
M&B Repository - Shutdown
www.mbrepository.com
Edit: Added link to the crawling animation of the author (Earendil)
Last edited by a moderator: