?骑砍1战团mod开发-开着坦克碾平卡拉迪亚大陆_哔哩哔哩_bilibili
一.坦克炮弹/前置机枪/后置机枪
(0, 0, 0, [(key_clicked, key_space),(eq, "$g_stand_on_tank", 1)],[
(init_position, pos1),
(get_player_agent_no, ":player_agent"),
(agent_get_position, pos1, ":player_agent"),
(position_rotate_z, pos1, "$g_tank_paoguan_rotate_z"),
(position_move_y, pos1, 470),
(position_move_z, pos1, 170),
(set_spawn_position, pos1),
(spawn_scene_prop, "spr_8ra_coehorn_shell"),
(scene_prop_set_slot, reg0, scene_prop_is_boom, 0),
(agent_set_animation, ":player_agent", "anim_god_horse_man_sit_down"),
]),
(0, 0, 0, [(key_clicked, key_left_mouse_button),(eq, "$g_stand_on_tank", 1)],[
(init_position, pos1),
(get_player_agent_no, ":player_agent"),
(prop_instance_get_position, pos1, "$g_tank_cheti_instance_no"),
(position_move_z, pos1, 100),
(position_move_y, pos1, 300),
(position_move_x, pos1, 100),
(set_spawn_position, pos1),
(spawn_scene_prop, "spr_huojian_fly"),
(position_move_x, pos1, -200),
(set_spawn_position, pos1),
(spawn_scene_prop, "spr_huojian_fly"),
(play_sound, "snd_rifle_shot_far1"),
(agent_play_sound, ":player_agent", "snd_rifle_shot_far1"),
(agent_set_animation, ":player_agent", "anim_god_horse_man_sit_down"),
]),
(0, 0, 0, [(key_clicked, key_right_mouse_button),(eq, "$g_stand_on_tank", 1)],[
(init_position, pos1),
(get_player_agent_no, ":player_agent"),
(prop_instance_get_position, pos1, "$g_tank_cheti_instance_no"),
(position_move_z, pos1, 150),
(position_move_y, pos1, -300),
(position_move_x, pos1, 120),
(position_rotate_z, pos1, 180),
(set_spawn_position, pos1),
(spawn_scene_prop, "spr_huojian_fly"),
(position_move_x, pos1, 210),
(set_spawn_position, pos1),
(spawn_scene_prop, "spr_huojian_fly"),
(play_sound, "snd_rifle_shot_far1"),
(agent_play_sound, ":player_agent", "snd_rifle_shot_far1"),
(agent_set_animation, ":player_agent", "anim_god_horse_man_sit_down"),
]),
二.坦克移动?
(0, 0, 0, [(key_clicked, key_numpad_5),(eq, "$g_stand_on_tank", 0)],[
(init_position, pos1),
(assign, "$g_stand_on_tank", 1),
(get_player_agent_no, ":player_agent"),
(agent_set_no_dynamics, ":player_agent", 1),
#(agent_set_visibility, ":player_agent", 0),
(agent_get_position, pos1, ":player_agent"),
(position_move_z, pos1, 100),
(agent_set_position, ":player_agent", pos1),
(agent_set_animation, ":player_agent", "anim_god_horse_man_sit_down"),
(agent_get_position, pos1, ":player_agent"),
(position_move_z, pos1, -100),
(position_move_y, pos1, -130),
(position_set_z_to_ground_level, pos1),
(set_spawn_position, pos1),
(spawn_scene_prop, "spr_89_hushi_cheti"),
(assign, "$g_tank_cheti_instance_no", reg0),
(position_move_y, pos1, 130),
(position_rotate_z, pos1, "$g_tank_paoguan_rotate_z"),
(position_move_y, pos1, -130),
(set_spawn_position, pos1),
(spawn_scene_prop, "spr_89_hushi_paoguan"),
(assign, "$g_tank_paoguan_instance_no", reg0),
(spawn_scene_prop, "spr_89_hushi_paota"),
(assign, "$g_tank_paota_instance_no", reg0),
(mission_cam_set_mode, 1, 1, 0),
(play_sound, "snd_btlfld1_light_tank_idle"),
]),
(0, 0, 0, [(eq, "$g_stand_on_tank", 1)],[
(init_position, pos1),
(init_position, pos2),
(init_position, pos3),
(init_position, pos4),
(get_player_agent_no, ":player_agent"),
(agent_get_position, pos1, ":player_agent"),
(position_move_z, pos1, -100),
(position_move_y, pos1, -130),
(position_set_z_to_ground_level, pos1),
(prop_instance_set_position, "$g_tank_cheti_instance_no", pos1),
(position_move_y, pos1, 130),
(position_rotate_z, pos1, "$g_tank_paoguan_rotate_z"),
(position_move_y, pos1, -130),
(prop_instance_set_position, "$g_tank_paota_instance_no", pos1),
(prop_instance_set_position, "$g_tank_paoguan_instance_no", pos1),
(agent_get_look_position, pos2, ":player_agent"),
(position_move_z, pos2, 100, 1),
(position_move_z, pos2, 100, 0),
(position_move_y, pos2, -800, 0),
(mission_cam_animate_to_position, pos2, 1, 0),
(try_for_prop_instances, ":instance_no", "spr_huojian_fly"),
(prop_instance_get_position, pos3, ":instance_no"),
(position_move_y, pos3, 200),
(prop_instance_set_position, ":instance_no", pos3),
(set_fixed_point_multiplier, 1000),
(try_for_agents, ":agent_no", pos3, 2000),
(try_begin),
(agent_is_alive, ":agent_no"),
(neg|agent_is_ally, ":agent_no"),
(agent_deliver_damage_to_agent, ":player_agent", ":agent_no", 40, "itm_khergit_arrows"),
(particle_system_burst, "psys_dummy_smoke", pos3, 30),
(scene_prop_fade_out, ":instance_no", 1),
(try_end),
(try_end),
(try_end),
(try_for_prop_instances, ":instance_no", "spr_8ra_coehorn_shell"),
(try_begin),
(scene_prop_slot_eq, ":instance_no", scene_prop_is_boom, 0),
(prop_instance_get_position, pos4, ":instance_no"),
(position_move_y, pos4, 500),
(position_move_z, pos4, -50),
(prop_instance_set_position, ":instance_no", pos4),
(set_fixed_point_multiplier, 1000),
(position_get_distance_to_ground_level, ":shell_to_ground_level", pos4),
(assign, ":is_boom", 0),
(try_for_agents, ":agent_no", pos4, 3000),
(try_begin),
(agent_is_alive, ":agent_no"),
(neg|agent_is_ally, ":agent_no"),
(assign, ":is_boom", 1),
(agent_deliver_damage_to_agent, ":player_agent", ":agent_no", 100, "itm_khergit_arrows"),
(try_end),
(try_end),
(try_begin),
(lt, ":shell_to_ground_level", 300),
(assign, ":is_boom", 1),
(try_end),
(try_begin),
(eq, ":is_boom", 1),
(scene_prop_fade_out, ":instance_no", 1),
(scene_prop_set_slot, ":instance_no", scene_prop_is_boom, 1),
(play_sound, "snd_god_mine_boom"),
(particle_system_burst, "psys_dummy_smoke_big", pos4, 30),
(try_end),
(try_end),
(try_end),
(agent_get_position, pos1, ":player_agent"),
(try_for_agents, ":agent_no", pos1, 1500),
(try_begin),
(agent_is_alive, ":agent_no"),
(neg|agent_is_ally, ":agent_no"),
(agent_deliver_damage_to_agent, ":player_agent", ":agent_no", 300, "itm_khergit_arrows"),
(try_end),
(try_end),
]),
(0, 0, 0, [(game_key_is_down, gk_move_left),(eq, "$g_stand_on_tank", 1)],[
(get_player_agent_no, ":player_agent"),
(val_add, "$g_tank_paoguan_rotate_z", 1),
(agent_set_animation, ":player_agent", "anim_god_horse_man_sit_down"),
]),
(0, 0, 0, [(game_key_is_down, gk_move_right),(eq, "$g_stand_on_tank", 1)],[
(get_player_agent_no, ":player_agent"),
(val_sub, "$g_tank_paoguan_rotate_z", 1),
(agent_set_animation, ":player_agent", "anim_god_horse_man_sit_down"),
]),
(0, 0, 0, [(game_key_is_down, gk_move_forward),(eq, "$g_stand_on_tank", 1)],[
(init_position, pos1),
(get_player_agent_no, ":player_agent"),
(agent_get_position, pos1, ":player_agent"),
(position_move_z, pos1, -100),
(position_move_y, pos1, 7),
(position_set_z_to_ground_level, pos1),
(position_move_z, pos1, 100),
(agent_set_position, ":player_agent", pos1),
(agent_set_animation, ":player_agent", "anim_god_horse_man_sit_down"),
]),
(0, 0, 0, [(game_key_is_down, gk_move_backward),(eq, "$g_stand_on_tank", 1)],[
(init_position, pos1),
(get_player_agent_no, ":player_agent"),
(agent_get_position, pos1, ":player_agent"),
(position_move_z, pos1, -100),
(position_move_y, pos1, -7),
(position_set_z_to_ground_level, pos1),
(position_move_z, pos1, 100),
(agent_set_position, ":player_agent", pos1),
(agent_set_animation, ":player_agent", "anim_god_horse_man_sit_down"),
]),