本帖最后由 老贾JAX 于 2022-10-27 09:33 编辑
我喜欢给自己娱乐一下就会加这种之类的东西 不过我在站内找的 要么不适用潘德 要么会损坏文件 而且基本都是根据多重箭写的
所以分享一个用多重箭改的并适用潘德的霰弹枪代码
触发条件-武器攻击
(play_sound,"snd_pistol_shot"),
(position_move_x,pos1,0),
(position_move_y,pos1,20),
(particle_system_burst,"psys_torch_smoke",pos1,2),
(position_move_x,pos1,0),
(position_move_y,pos1,130),
(particle_system_burst,"psys_torch_smoke",pos1,4),
(particle_system_burst,"psys_torch_smoke",pos1,4),
(particle_system_burst,"psys_torch_smoke",pos1,4),
(store_trigger_param_1,":var_0"),
(try_begin),
(assign,":var_5",0),
(assign,":var_3",0),
(agent_get_troop_id,":var_1",":var_0"),
(2170,":var_21","skl_36",":var_1"),
(assign,":var_5",":var_21"),
(ge,":var_5",1),
(1726,":var_2",":var_0"),
(get_player_agent_no,":var_4"),
(assign,":var_7","itm_no_item"),
(try_for_range,":var_8",0,4),
(1804,":var_9",":var_0",":var_8"),
(try_begin),
(eq,":var_9",":var_2"),
(1542,":var_10",":var_1",":var_8"),
(else_try),
(eq,":var_9",0),
(try_begin),
(eq,":var_7","itm_no_item"),
(assign,":var_7",":var_9"),
(try_end),
(try_end),
(eq,":var_9",":var_2"),
(try_end),
(try_begin),
(eq,":var_7","itm_no_item"),
(assign,":var_7",0),
(try_end),
(ge,":var_5",1),
(copy_position,pos20,pos1),
(1506,":var_17",":var_1"),
(assign,":var_19",140),
(convert_to_fixed_point,":var_19"),
(try_for_range,":var_8",0,":var_5"),
(agent_get_look_position,pos3,":var_0"),
(copy_position,pos2,pos1),
(718,2,3),
(store_random_in_range,":var_6",0,41),
(store_sub,":var_6",20,":var_6"),
(position_move_x,pos2,":var_6"),
(store_random_in_range,":var_6",0,41),
(store_sub,":var_6",20,":var_6"),
(position_move_z,pos2,":var_6"),
(store_random_in_range,":var_6",0,5),
(store_sub,":var_6",2,":var_6"),
(725,2,":var_6"),
(store_random_in_range,":var_6",0,5),
(store_sub,":var_6",2,":var_6"),
(723,2,":var_6"),
(1829,":var_0",2,":var_19",":var_2",":var_10",":var_7",0),
(try_end),
(try_end),
|