Flying Squirrel Entertainment

Mount & Blade Warband: Napoleonic Wars => Modifications => Topic started by: Kaperson on June 24, 2016, 01:24:44 pm

Title: Artillery crosshair Question
Post by: Kaperson on June 24, 2016, 01:24:44 pm
Anyone know where artillery crosshair placed? I'm tried to find this but I found nothing :(
Title: Re: Artillery crosshair Question
Post by: Pio on July 01, 2016, 02:10:16 am
If you are looking for an image that you could easily replace then you won't find it. Arty crosshair is made of a few rectangles aligned together and it's all done through the script. It is possible to edit the code to make it display a custom image instead. I'm not sure if it would work perfectly though. If you are interested in that script you can find it in module_presentations.py:

Spoiler
Code
  ("multiplayer_cannon_crosshair", prsntf_read_only|prsntf_manual_end_only, 0, [ #MM
    (ti_on_presentation_load,
     [(set_fixed_point_multiplier, 1000),
         
      (assign,"$g_close_crosshair",0),
     
      (create_mesh_overlay,reg0,"mesh_white_plane"),
      (overlay_set_color,reg0,0xFFFFFF),
      (overlay_set_alpha,reg0,0xD6),
      (position_set_x,pos1,500),
      (position_set_y,pos1,335),
      (overlay_set_position,reg0,pos1),
      (position_set_x,pos1,80),
      (position_set_y,pos1,2000),
      (overlay_set_size,reg0,pos1),
     
      (create_mesh_overlay,reg0,"mesh_white_plane"),
      (overlay_set_color,reg0,0xFFFFFF),
      (overlay_set_alpha,reg0,0xD6),
      (position_set_x,pos1,480),
      (position_set_y,pos1,375),
      (overlay_set_position,reg0,pos1),
      (position_set_x,pos1,2000),
      (position_set_y,pos1,80),
      (overlay_set_size,reg0,pos1),
     
      (create_mesh_overlay,reg0,"mesh_white_plane"),
      (overlay_set_color,reg0,0xFFFFFF),
      (overlay_set_alpha,reg0,0xD6),
      (position_set_x,pos1,485),
      (position_set_y,pos1,360),
      (overlay_set_position,reg0,pos1),
      (position_set_x,pos1,1500),
      (position_set_y,pos1,90),
      (overlay_set_size,reg0,pos1),
     
      (create_mesh_overlay,reg0,"mesh_white_plane"),
      (overlay_set_color,reg0,0xFFFFFF),
      (overlay_set_alpha,reg0,0xD6),
      (position_set_x,pos1,490),
      (position_set_y,pos1,345),
      (overlay_set_position,reg0,pos1),
      (position_set_x,pos1,1000),
      (position_set_y,pos1,80),
      (overlay_set_size,reg0,pos1),
     
      (presentation_set_duration, 999999),
      ]),
    (ti_on_presentation_run, [
      #(store_trigger_param_1,":cur_time"),
     
      (eq,"$g_close_crosshair",1),
      (presentation_set_duration, 0),
      ]),
    ]),
[close]