- 好友
- 6
- 在线时间
- 9552 小时
- 最后登录
- 2024-11-21
子爵[版主]
高级术士
- UID
- 79668
- 第纳尔
- 9958
- 精华
- 2
- 互助
- 144
- 荣誉
- 46
- 贡献
- 30
- 魅力
- 382
- 注册时间
- 2008-6-10
鲜花( 221) 鸡蛋( 0)
|
发表于 2013-1-28 23:28:08
|
显示全部楼层
这样看来我一个地方没弄好,我再看看。
不对啊,我测试时,我带着诺多箭射出的就是诺多箭
你用的是什么箭?如果是自己新增的那是会自动用练习箭代替的。除了诺多箭和练习箭外,其他箭都是连续的不可能弄调 ...
异界行者 发表于 2012-12-2 12:56
try_for_range_backwards在看着你- (store_trigger_param_1,":shooter"),#Get the attacker Agent for add_missile'
- (try_for_range, ":unused", 1, 6),
- #(try_for_range, ":unused", 1, 1),
- (agent_get_wielded_item,":agent_cur_weapon",":shooter"),
- (gt,":agent_cur_weapon",0),
-
- (assign,":cur_weapon_slot",-1),
- (assign,":item_slot_num",4),
- (try_for_range,":cur_item_slot",0,":item_slot_num"),
- (eq,":cur_weapon_slot",-1),
- (agent_get_item_slot, ":item_no", ":shooter", ":cur_item_slot"),
- (eq,":item_no",":agent_cur_weapon"),
- (assign,":cur_weapon_slot",":cur_item_slot"),
- (try_end),
-
- (agent_get_item_cur_ammo, ":cur_ammo", ":shooter",":cur_weapon_slot"),
- (gt,":cur_ammo",0),
- (val_sub,":cur_ammo",1),
- (agent_set_ammo,":shooter",":agent_cur_weapon",":cur_ammo"),
-
- #match the right ammmo type
- (assign,":cur_ammo_id","itm_van_helsing_crossbow_bolt"),#as default
- (assign,":item_slot_num",4),
- (try_for_range,":cur_item_slot",0,":item_slot_num"),
- (agent_get_item_slot, ":item_no", ":shooter", ":cur_item_slot"),
- (gt,":item_no",-1),
- (item_get_type, ":item_type", ":item_no"),
- (eq,":item_type",itp_type_bolts),
- (agent_get_item_cur_ammo, ":cur_ammo_2", ":shooter", ":cur_item_slot"),
- (gt,":cur_ammo_2",0),
- (assign,":cur_ammo_id",":item_no"),
- (assign,":item_slot_num",0),#break
- (try_end),
-
- (agent_get_horse,":horse",":shooter"),
- (agent_get_look_position,pos3,":shooter"),
- (agent_get_position,pos4,":shooter"),
- (position_copy_rotation,pos4,pos3),
- (try_begin),
- (gt, ":horse", -1),
- (position_move_z,pos4,270),
- (else_try),
- (neg|gt, ":horse", -1),
- (position_move_z,pos4,170),
- (try_end),
-
- #Shotgun script
- #Rifle Version
- (set_fixed_point_multiplier, 100),
- (store_random_in_range, ":z_offset", -300, 301),#Random Rotation of Z
- (position_rotate_x_floating, pos4, 9000), # change axis by rotating 90 degrees
- (position_rotate_y_floating, pos4, ":z_offset"), # rotate z floating
- (position_rotate_x_floating, pos4, -9000), # change axis back
- (store_random_in_range, ":x_offset", -300, 301),#Random Rotation of X
- (position_rotate_x_floating, pos4, ":x_offset"), # Final adjustment of X
-
- (add_missile, ":shooter", pos4, 9000, "itm_van_helsing_crossbow", 0, ":cur_ammo_id", 0),
-
- (try_end),
- ]),]],
复制代码 这是我自己弄得多重箭,自己看下是否有什么收获
(set_fixed_point_multiplier, 100),
这一句可以让各种场景下的各种数据标准统一 |
|