Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. Red Dead Redemption 2

      1. PC
      2. Gameplay
      3. Missions
      4. Help & Support
    2. Red Dead Online

      1. Gameplay
      2. Find Lobbies & Outlaws
      3. Help & Support
      4. Frontier Pursuits
    1. Crews & Posses

      1. Recruitment
    2. Events

    1. GTA Online

      1. Diamond Casino & Resort
      2. DLC
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Grand Theft Auto Series

    3. GTA 6

    4. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    5. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA IV Mods
    6. GTA Chinatown Wars

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA SA Mods
    10. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA VC Mods
    11. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA III Mods
    12. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    13. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    3. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Programming
      5. Movies & TV
      6. Music
      7. Sports
      8. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. News

    2. Forum Support

    3. Site Suggestions

Sign in to follow this  
lilmb

? Black and white screen when low on health?

Recommended Posts

lilmb

Hey!

I wanna know, if it is possible to script a CLEO mod which makes your screen in GTA: SA go black&white (grayscale) when you are low on health? It would help a lot when you are low on health, but can't look at health bar all the time, cause you're in some heavy gunfight.

 

Thank you! smile.gif

Share this post


Link to post
Share on other sites
jtr007

this is i have been playin around with lately,

 

thread 'HEALTH' 0AAE: release_mp3 $HMP30 0AAC: $HMP30 = load_mp3 "CLEO\TEST.MP3" :HEALTH_60wait 0 if 0184:   actor $PLAYER_ACTOR health >= 20 else_jump @HEALTH_89 jump @HEALTH_60 :HEALTH_890AAD: set_mp3 $HMP30 perform_action 1 $100 = 0 $101 = Actor.Health($PLAYER_ACTOR)[email protected] = 0 :HEALTH_118wait 1 if  5000 > [email protected] else_jump @HEALTH_182 [email protected] += 1 $102 = Actor.Health($PLAYER_ACTOR)if 003A:   $102 == $101 // (int) else_jump @HEALTH_234 jump @HEALTH_118 :HEALTH_182$100 = 255 wait 100 $101 += 1 Actor.Health($PLAYER_ACTOR) = $101if  $101 == 100 else_jump @HEALTH_182 jump @HEALTH_60 :[email protected] = 0 $101 = Actor.Health($PLAYER_ACTOR)jump @HEALTH_118 

 

Share this post


Link to post
Share on other sites
lilmb

Wow, nice. As I understand from your script, when player has less than 20% health, it plays a mp3 sound. Or am I totally wrong? biggrin.gif

Share this post


Link to post
Share on other sites
jtr007

You totally right, but it also recharges slowly but, lol.gif

Share this post


Link to post
Share on other sites
lilmb

Ok, nice. smile.gif

But do you (or someone else) know if it is possible to make screen black&white when below 20% health?

Is it possible to do with CLEO?

 

I thought that .txd could do it, but then again, how could you make it to filter screen to become b&w?

Share this post


Link to post
Share on other sites
fastman92

You have to create image with little transparent alfa on whole image and add image to txd. But it's work for graphics, I'm not expert. Then draw image from this txd dictionary.

But drawing txd on whole screen will probably dramatically drop FPS.

Share this post


Link to post
Share on other sites
coin-god

No it wont work. What you are talking about is a postprocessor effect. We need hardcoding for that. A dll or asi mod.

 

Cleo cant do that.

Share this post


Link to post
Share on other sites
yair1221

i used a memory address with 2 bytes, as 10 bytes

that caused the precise effect, but i cant remember what was it

ill post if i remember

maybe i have it in a main file somewhere

Share this post


Link to post
Share on other sites
lilmb

@Fastman92: I tried it, but it just made the colors darker. It looked cool though.

@Goin-god: That's what I thought. I remember that there was a special Night Vision mod (by famous CLEO scripter) that made NV to become black and white. I think it was .asi though not CLEO. Thanks anyway!

@Yair1221: Ok, I hope that you find it! Thanks! smile.gif

Share this post


Link to post
Share on other sites
riquenunes
@Goin-god: That's what I thought. I remember that there was a special Night Vision mod (by famous CLEO scripter) that made NV to become black and white. I think it was .asi though not CLEO. Thanks anyway!

It's an asi, it should be possible to use that asi and enable night vision when with low health, making the screen become black and white. The only problem is that this asi doesn't work for me, so I can't test by myself.

Share this post


Link to post
Share on other sites
MAD BOSS

Where to find that ASI mod you're speaking of?

Share this post


Link to post
Share on other sites
lilmb

Yeah, the mod doesn't work for me, too. Or most likely I am just installing it the wrong way. biggrin.gif

 

But maybe someone knows how to change that script to become b&w on low health? smile.gif

Share this post


Link to post
Share on other sites
jtr007
But maybe someone knows how to change that script to become b&w on low health? smile.gif

Does it have to be black and white?

 

What if it was flashing black, white or red? instead of a 2 tone effect?

Share this post


Link to post
Share on other sites
lilmb

This b&w effect is in game called Alan Wake. I thought its cool, so that's why b&w.

But wouldnt flashing disturb the gameplay? It would make you dizzy too biggrin.gif

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.