well, i have this item:
actually, it only delivers damage to agents, who are NOT in the player_team. but it seems, this doesnt work what did i wrong?
Edit: uhm, player_agent isnt always the player, is it? its the one who uses the item?
Code:
["fire_wave","Reisa du Brisingr", [("fire",0)],itp_type_thrown |itp_primary|itp_bonus_against_shield ,itcf_throw_stone, 4938 , weight(4)|spd_rtng(90) | shoot_speed(50) | thrust_damage(60 , pierce)|max_ammo(200)|weapon_length(65),imodbits_none,
[(ti_on_weapon_attack, [(play_sound,"snd_footstep_water"),(assign,":distance",99999),(get_player_agent_no, ":player_agent"),
(agent_get_team,":player_team", ":player_agent"),
(try_for_agents,":agent"),
(agent_is_alive,":agent"),
(agent_is_human,":agent"),
(agent_get_look_position, pos2, ":agent"),
(get_distance_between_positions,":dist",pos1,pos2),
(lt,":dist",":distance"),
(assign,":chosen",":agent"),
(assign,":distance",":dist"),
(end_try),
(agent_get_position,pos1,":chosen"),
(position_move_y,pos1,1000),
(assign,":mul",1),
(try_for_range,":num",1,11),
(val_mul,":num",":mul"),
(val_mul,":num",200),
(position_move_z,pos1,300),
(position_move_x,pos1,":num"),
(particle_system_burst,"psys_massive_fire",pos1,75),
(position_move_z,pos1,-300),
(try_for_agents,":agent"),
(neq,agent_has_item_equipped,":agent","itm_black_helmet"),
(agent_get_position,pos2,":agent"),
(get_distance_between_positions,":dist",pos1,pos2),
(lt,":dist",300),
(neq,":agent",":player_agent"),
(agent_get_team,":team",":agent"),
(neq,":team",":player_team"),
#(agent_get_position,pos2,":agent"),
#(get_distance_between_positions,":dist",pos1,pos2),
#(lt,":dist",300),
(store_agent_hit_points, ":cur_hit_points",":agent",1),
(val_sub,":cur_hit_points",25),
(agent_set_hit_points,":agent",":cur_hit_points",1),
(agent_deliver_damage_to_agent,":player_agent",":agent"),
(end_try),
(val_mul,":mul",-1),
(end_try),],)]],
actually, it only delivers damage to agents, who are NOT in the player_team. but it seems, this doesnt work what did i wrong?
Edit: uhm, player_agent isnt always the player, is it? its the one who uses the item?