左手武器反弹投射物,技术含量没什么,帅倒是挺帅的。杀蒙弓哥。
- (ti_on_shield_hit, [#挡箭
- (store_trigger_param_1, ":defender_agent_no"),
- (store_trigger_param, ":attacker_weapon_no", 4),
- (store_trigger_param, ":missile_weapon_no", 5),
- (gt, ":missile_weapon_no", 0),#远程击中
- (set_fixed_point_multiplier, 100),
- (position_rotate_x, pos1, 180),
- (position_move_y, pos1, 10),
- (add_missile, ":defender_agent_no", pos1, 4000, ":attacker_weapon_no", 0, ":missile_weapon_no", 0),
- (agent_set_animation, ":defender_agent_no", "anim_left_hand_block_arrow", 1),
- (agent_get_wielded_item, ":weapon_no", ":defender_agent_no", 1),
- (agent_unequip_item, ":defender_agent_no", ":weapon_no", 2),
- (agent_equip_item, ":defender_agent_no", ":weapon_no", 2),
- (agent_set_wielded_item, ":defender_agent_no", ":weapon_no"),#清除特效
- ]),
复制代码 用到的动作比较重量级,因为希望尽可能多做点随机动作,展现出根据射来箭的方向格挡的感觉,所以做了9个随即动作。
- #左手挡箭术
- ["left_hand_block_arrow", acf_left_cut|acf_enforce_all, amf_accurate_body|amf_play|amf_priority_striked,
- [0.2, "left_hand_block_arrow", 3, 9, blend_in_walk|blend_in_continue],
- [0.2, "left_hand_block_arrow", 9, 16, blend_in_walk|blend_in_continue],
- [0.2, "left_hand_block_arrow", 16, 23, blend_in_walk|blend_in_continue],
- [0.2, "left_hand_block_arrow", 23, 30, blend_in_walk|blend_in_continue],
- [0.2, "left_hand_block_arrow", 30, 37, blend_in_walk|blend_in_continue],
- [0.2, "left_hand_block_arrow", 37, 43, blend_in_walk|blend_in_continue],
- [0.2, "left_hand_block_arrow", 43, 48, blend_in_walk|blend_in_continue],
- [0.2, "left_hand_block_arrow", 48, 55, blend_in_walk|blend_in_continue],
- [0.2, "left_hand_block_arrow", 55, 61, blend_in_walk|blend_in_continue],
- ],
复制代码
|