本帖最后由 a1550887802 于 2024-8-31 19:07 编辑
##################################################
("zz_zz_z_mine_code_only",sokf_moveable,"box_a",0,
[
(ti_on_scene_prop_init,
[
(store_trigger_param_1, ":sprop_instance"),
(prop_instance_get_position, pos45, ":sprop_instance"),
(prop_instance_animate_to_position,":sprop_instance",pos45,500),
]),
(ti_on_scene_prop_animation_finished,
[
(store_trigger_param_1, ":sprop_instance"),
(prop_instance_get_position,pos30,":sprop_instance"),
(copy_position,pos45,pos30),
(prop_instance_animate_to_position,":sprop_instance",pos45,100),
(try_begin),
(assign, ":close", 0),
(try_for_agents,":cur_agent"),
(agent_is_alive, ":cur_agent"),
(agent_get_position,pos52,":cur_agent"),
(prop_instance_get_position, pos45, ":sprop_instance"),
(get_distance_between_positions,":distance",pos52,pos45),
(le,":distance", 150),
(assign, ":close", 1),
(try_begin),
(eq, ":close", 1),
(agent_get_position,pos52,":cur_agent"),
(prop_instance_get_position, pos45, ":sprop_instance"),
(get_distance_between_positions,":distance",pos52,pos45),
(le,":distance", 350),
(agent_deliver_damage_to_agent, ":cur_agent", ":cur_agent", 500),
(try_end),
(try_end),
(try_begin),
(eq, ":close", 1),
(play_sound_at_position, "snd_pistol_shot", pos45, 0),
(init_position,pos50),
(position_copy_origin,pos50,pos45),
(particle_system_burst, "psys_village_fire_big", pos50, 20),
(particle_system_burst, "psys_village_fire_smoke_big", pos50, 10),
(particle_system_burst_no_sync, "psys_village_fire_smoke_big", pos50, 20),
(position_move_z, pos50, -68000),
(prop_instance_animate_to_position,":sprop_instance",pos50,10000),
(try_end),
(try_end),
]),
]),
###############################################
|