骑马与砍杀中文站论坛

 找回密码
 注册(Register!)

QQ登录

只需一步,快速开始

搜索
查看: 324|回复: 2

[求助] 求大佬发个能在其他mod里泛用的多重投掷触发器

[复制链接]
鲜花(0) 鸡蛋(0)
发表于 2018-2-12 21:42:52 | 显示全部楼层 |阅读模式
谢谢大佬们了
鲜花(1) 鸡蛋(0)
发表于 2018-2-13 08:47:08 来自手机 | 显示全部楼层
http://bbs.mountblade.com.cn/thread-481449-1-2.html
好多呢,自己多翻几个帖子就能找到,目前潘德,领军者,私兵大陆我玩过都能用,这个比较变态,不过可以改小箭支的数量
鲜花(0) 鸡蛋(0)
发表于 2018-2-13 12:32:59 | 显示全部楼层
【霰弹枪代码,用于武器。觸發條件:武器攻擊】
(play_sound,"snd_pistol_shot"),
(position_move_x,pos1,0),
(position_move_y,pos1,20),
(particle_system_burst,"psys_pistol_smoke",pos1,20),
(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"),【skl_36表示铁骨技能,可以选择其他技能。不要用伪代码改,会报错。用PY代码手动输入】
(store_mul,":var_5",":var_21",5),【这里5是发射弹数的倍数,改大发射多子弹。子弹等于铁骨+1乘5。加减乘除随便改。】
(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","itm_Ammo"),【备注:itm_Ammo是弹药,改为itm_cartridges为原版弹药筒。同时也是散射模型,可以改为投掷类物品】
(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","itm_Ammo"),【备注:itm_Ammo是弹药,改为itm_cartridges为原版弹药筒。同时也是散射模型,可以改为投掷类物品】
(try_end),
(ge,":var_5",1),
(copy_position,pos20,pos1),
(1506,":var_17",":var_1"),
(assign,":var_19",140),【局部变量19=140.这里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),
您需要登录后才可以回帖 登录 | 注册(Register!)

本版积分规则

Archiver|手机版|小黑屋|骑马与砍杀中文站 ( 鄂ICP备07001403号 )

GMT+8, 2018-5-25 22:59 , Processed in 0.094528 second(s), 23 queries , Gzip On, Memcache On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表