I'm trying to put the flame staff from the Curtains of Fire Magic Mod into my Midkemia mod. The code is below and as you see from the screenshots it works fine with the musket animation. However, I'd rather use the pistol animation so the flame is coming out of my right hand. However, when I do this it shoots at about a 45 degree angle up.... I've tried messing with some of the numbers in the code and those don't see to effect the direction. Does anybody know what does? It almost looks like it is either:
1) the angle of my right-hand
2) the angle between my left-hand and right-hand
3) other?
any idea's how I could change this or maybe a better 2h animation? I'd prefer the single hand, but maybe the first few frames of draw_bow might work.....
1) the angle of my right-hand
2) the angle between my left-hand and right-hand
3) other?
any idea's how I could change this or maybe a better 2h animation? I'd prefer the single hand, but maybe the first few frames of draw_bow might work.....
["flame_strike","Flame Strike", [("wooden_staff",0)],itp_type_musket |itp_merchandise|itp_primary|itp_bonus_against_shield,itcf_shoot_musket|itcf_reload_pistol, 1000 , weight(0.01)|abundance(90)|spd_rtng(89) | shoot_speed(160) | thrust_damage(60, pierce)|max_ammo(|accuracy(95)|weapon_length(10),imodbits_none,
[(ti_on_weapon_attack, [
(try_for_range,reg5,1,500),
(particle_system_burst, "psys_torch_fire", pos1, 15), #duration?
(position_move_y,pos1,10), #spacing?
(copy_position,pos2,pos1),
(position_set_z_to_ground_level, pos2),
(get_distance_between_positions,":dist",pos1,pos2),
(lt,":dist",10),
(particle_system_burst, "psys_cooking_fire_1", pos1, 25), #?
(particle_system_burst, "psys_cooking_smoke", pos1, 10),
(play_sound,"snd_magic_flame_strike"),
(get_player_agent_no, ":player_agent"), #SW modified
(try_for_agents,":agent"),
(agent_get_position,pos2,":agent"),
(get_distance_between_positions,":dist",pos1,pos2),
(lt,":dist",300),
(agent_set_hit_points,":agent",0,0),
#(agent_deliver_damage_to_agent,":agent",":agent"), #SW modified
(agent_deliver_damage_to_agent,":player_agent",":agent"),
(end_try),
(scene_prop_get_instance,":instance", "spr_explosion", 0),
(position_copy_origin,pos2,pos1),
(prop_instance_set_position,":instance",pos2),
(position_move_z,pos2,1000),
(prop_instance_animate_to_position,":instance",pos2,175), #?
(assign,reg5,1000),
(end_try),],)]],
[(ti_on_weapon_attack, [
(try_for_range,reg5,1,500),
(particle_system_burst, "psys_torch_fire", pos1, 15), #duration?
(position_move_y,pos1,10), #spacing?
(copy_position,pos2,pos1),
(position_set_z_to_ground_level, pos2),
(get_distance_between_positions,":dist",pos1,pos2),
(lt,":dist",10),
(particle_system_burst, "psys_cooking_fire_1", pos1, 25), #?
(particle_system_burst, "psys_cooking_smoke", pos1, 10),
(play_sound,"snd_magic_flame_strike"),
(get_player_agent_no, ":player_agent"), #SW modified
(try_for_agents,":agent"),
(agent_get_position,pos2,":agent"),
(get_distance_between_positions,":dist",pos1,pos2),
(lt,":dist",300),
(agent_set_hit_points,":agent",0,0),
#(agent_deliver_damage_to_agent,":agent",":agent"), #SW modified
(agent_deliver_damage_to_agent,":player_agent",":agent"),
(end_try),
(scene_prop_get_instance,":instance", "spr_explosion", 0),
(position_copy_origin,pos2,pos1),
(prop_instance_set_position,":instance",pos2),
(position_move_z,pos2,1000),
(prop_instance_animate_to_position,":instance",pos2,175), #?
(assign,reg5,1000),
(end_try),],)]],