1 |
if (live_call()) |
2 |
return global.live_result; |
3 |
object[0] = 2863; |
4 |
object[1] = 2859; |
5 |
object[2] = 2860; |
6 |
object[3] = 2869; |
7 |
object[4] = 2876; |
8 |
object[5] = 2877; |
9 |
object[6] = 485; |
10 |
object[7] = 663; |
11 |
object[8] = 220; |
12 |
object[9] = 930; |
13 |
object[10] = 2879; |
14 |
object[11] = 672; |
15 |
object[12] = 2953; |
16 |
object[13] = 239; |
17 |
object[14] = 549; |
18 |
var alpha_new = starlo_take_aim_overlay_alpha; |
19 |
var alpha_id = shader_alpha; |
20 |
for (var i = 0; i < array_length_1d(object); i++) |
21 |
{ |
22 |
if (instance_exists(object[i])) |
23 |
{ |
24 |
with (object[i]) |
25 |
{ |
26 |
shader_set(sh_grayscale); |
27 |
shader_set_uniform_f(alpha_id, alpha_new); |
28 |
draw_self(); |
29 |
if (object_index == obj_martlet_final_wing) |
30 |
{ |
31 |
if (!surface_exists(wing_surf)) |
32 |
wing_surf = surface_create(surface_get_width(application_surface), surface_get_height(application_surface)); |
33 |
surface_set_target(wing_surf); |
34 |
draw_clear_alpha(c_black, 0); |
35 |
draw_sprite_ext(spr_martlet_final_wing_mask, image_index, x, y, image_xscale, 1, image_angle, c_white, image_alpha); |
36 |
draw_set_blend_mode_ext(7, bm_inv_dest_alpha); |
37 |
draw_sprite_tiled(space_test, 0, 0, 0); |
38 |
draw_set_blend_mode(bm_normal); |
39 |
surface_reset_target(); |
40 |
draw_surface(wing_surf, 0, 0); |
41 |
} |
42 |
shader_reset(); |
43 |
} |
44 |
} |
45 |
} |