#1 01-05-2024 13:32

Remca12
Registered: 30-06-2019
Posts: 33

Black and white filter on the screen like in GTA 4 for gta Vice city.

Hello. I'm trying to do desaturation by layering a filter on top of the environment and learning about screen painting along the way. So far there has been a “haze” (in the screenshot). This is a cleo script for Vice City. And at the same time I season it with rain. I took the text displayed on the screen from the MAIN section and want it to remain invisible (you can use any text from the MAIN section, but it should still remain invisible).

Please help me realize my plans, I still don’t know how to do bleaching any other way.

{$CLEO .cs}

0000:

03A4: name_thread 'BACKFC'

0001: wait 2000 ms 

0006: TIMERA = 0 // @ = int

0004: $hz = 0 // $ = int

while true
wait 0
03F0: enable_text_draw 1

    if //разукрашиваем в нужный цвет на протяжении 5сек
    001B:   5000 > TIMERA // int > @ //5sekund
    then //5секунд это временное условие, позже заменится на смерть нужного педа
    01B6: set_weather 2
    0050: gosub @BACKFC_15844
    0340: set_text_draw_color 0 0 0 0
    045A: text_draw_1number 0.0 0.0 'BIKE' $hz
    end
   
    01B7: release_weather
//    break
end
03F0: enable_text_draw 0 //когда прошло 5секунд выключаем рисование на экране и погода будет сброшена.

:BACKFC_15844 //вытягиваем эффект на весь экран.
//0341: set_text_draw_align_justify 1
//03E4: set_text_draw_align_right 0
0343: set_text_linewidth 3500.0
//0348: set_text_draw_proportional 1
//0342: set_text_draw_centered 0
0345: set_text_draw_in_box 1
033F: set_text_draw_letter_width_height 1.6 55.6
0051: return

//0A93: terminate_this_custom_script

Offline

Board footer

Powered by FluxBB