Author Topic: Artillery crosshair Question  (Read 1202 times)

0 Members and 1 Guest are viewing this topic.

Offline Kaperson

  • Sergeant
  • *
  • Posts: 13
    • View Profile
  • Side: Neutral
Artillery crosshair Question
« on: June 24, 2016, 01:24:44 pm »
Anyone know where artillery crosshair placed? I'm tried to find this but I found nothing :(

Offline Pio

  • Sergeant
  • *
  • Posts: 47
    • View Profile
    • my steam profile
  • Side: Neutral
Re: Artillery crosshair Question
« Reply #1 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]
« Last Edit: July 01, 2016, 10:50:03 pm by Pio »