Page 1 of 2

how do I turn off the red taken damage stain?

Posted: October 18th, 2011, 7:37 am
by SmokingJoePot
Hi, Im running codjumper on my server but when I fall or shoot the rocket on the ground I get a blotchy red stain on my screen, I guess its blood and it pulsates, showing that I've taken damage. How do I turn off the red blotchy stain that appears because it seems to blind players from jumping again. It seems to fade when I crouch but it doesn't go away, I've even tried making some settings in the config file. I want to permanetly turn it off. Where in the .iwd can I turn the scipt off? Thank you for any help I get, its really buggin alot of players.

Re: how do I turn off the red taken damage stain?

Posted: October 18th, 2011, 8:19 am
by iCYsoldier
I can't be sure, but I believe this is controlled in the script, where it adjusts the intensity of the blood based on how much damage you've taken. In the mod, the script would be in the actual fast file, so editing the .iwd wouldn't do anything.

Re: how do I turn off the red taken damage stain?

Posted: October 18th, 2011, 9:25 am
by <LT>YosemiteSam[NL]
Is this for Cod2 ? (people almost never say for what game it is these days :( )

Re: how do I turn off the red taken damage stain?

Posted: October 18th, 2011, 10:11 am
by [SoE]_Zaitsev
It's in the mod because it's also in the normal game. Not sure if you can remove it.

Re: how do I turn off the red taken damage stain?

Posted: October 18th, 2011, 10:52 am
by IzNoGoD
In cod2 i was able to remove it by causing the float/double that gives the part of the damage (damage/self.health) a very small value. Or maybe health is controlled by an int, and i gave it an overflow?

Anyway, by giving a lot of maxhealth i was able to make it all go away:


I did this by:

self.maxhealth = 100000000;
self.health = self.maxhealth;

Re: how do I turn off the red taken damage stain?

Posted: October 18th, 2011, 11:44 am
by <LT>YosemiteSam[NL]
I changed the color to blue (for my invisible overlay).
So if you can change the color you can also change it into nothing at all I recon.

Re: how do I turn off the red taken damage stain?

Posted: October 18th, 2011, 1:50 pm
by Drofder2004
<LT>YosemiteSam[NL] wrote:I changed the color to blue (for my invisible overlay).
So if you can change the color you can also change it into nothing at all I recon.
This. The easiest way to remove a graphic is by changing it (or in this case giving it a alpha layer to hide it).

Re: how do I turn off the red taken damage stain?

Posted: October 18th, 2011, 9:08 pm
by SmokingJoePot
Oh sorry, this is for cod4. Where in the mod.ff can I disable it. If I can't change it in the mod.ff, how do you change the color to alpha and where do I imput the value. I want to find the .iwi of the color and convert it to .dds, open it up in photoshop and change the color but I don't know the name of it. Can someone expain how?

Re: how do I turn off the red taken damage stain?

Posted: October 18th, 2011, 10:36 pm
by <LT>YosemiteSam[NL]
I think it's the image in "iw_02.iwd"
Name of the image : "Overlay_low_health"
Not sure if it's that one but I think so.

Re: how do I turn off the red taken damage stain?

Posted: October 18th, 2011, 10:44 pm
by SmokingJoePot
We had the health at 5000, like this

self.maxhealth = 5000;
self.health = self.maxhealth;

And it removed it for awhile, we would shoot the ground and it removed it but when we jumped from very high up and shoot down it came back, Im gonna try

self.maxhealth = 100000000;
self.health = self.maxhealth;

I think this will get rid of it, so I appreciate your help IzNoGoD.

I'll also try converting the "Overlay_low_health" file to .dds and replace it with something thats invisible, idk how to do that just yet, I guess I'll make it white and turn the transparent up, so thanks alot <LT>YosemiteSam[NL] , this is gonna help, I just know it.

Re: how do I turn off the red taken damage stain?

Posted: October 18th, 2011, 10:47 pm
by <LT>YosemiteSam[NL]
No prob m8. Hope it works.
And let us know if it worked...for future reference.

Re: how do I turn off the red taken damage stain?

Posted: October 19th, 2011, 12:56 am
by SmokingJoePot
ok, setting the health to 100000000 worked and also editing the .iwi worked but setting the health to 100000000 also made it so you don't see the damage loss at the bottom left hand of the screen. ie. damage 220. My brother figured out how to edit the iwi's alpha channel so he didn't have to color the image all blue. I really appreciate yalls help.

Re: how do I turn off the red taken damage stain?

Posted: October 19th, 2011, 10:28 pm
by Drofder2004
You dont have to colour it blue anyway, that was just the example of how YosemiteSam used iwi edit.

Re: how do I turn off the red taken damage stain?

Posted: October 20th, 2011, 11:03 am
by [SoE]_Zaitsev
The way I see it work is that you get the red stuff at critical damage. Obviously if you have a billion health it just won't pop up.

Re: how do I turn off the red taken damage stain?

Posted: October 20th, 2011, 4:48 pm
by Copy-Cat
Sup bro, wanted to add my video on the fix I did, maybe it will be helpfull to others trying to do the same.



The song I am using on my videos I produced here at my studio, that is why I am using it, but for some wierd reason the video is not playable in Germany, because of a copyright. Go Figure.