Index | FAQ | Search | Memberlist | Usergroups | Profile | Log in to check your private messages | Log in | Register

Darkplaces - Effect Changes

| Inside3d Forums Forum Index -> Engine Programming

View previous topic :: View next topic
Author | Message
--- | ---
Seven Joined: 06 Oct 2007 Posts: 19 Location: Germany |

Posted: Fri Oct 12, 2007 7:16 pm Post subject: Darkplaces - Effect Changes |

Dear all, I am using Darkplaces engine and really love it, due to the fact, that you can change most of the things in the options menu. I am quite new to coding and console commands, so this is a big benefit for me. (Beside the beautiful looking of Darkplaces of course)
Now to my question:
As everyone know, the blood in Darkplaces is quite dark (using the "new blood", which is by default activated).
I found out, that the effects in Darkplaces can be changed quite easy, by using the file "effectinfo.txt" from DPmod and copy it to ID1 folder.
I played around in effectinfo.txt a little and found the effect TE_BLOOD, which is responsible for the blood from enemies after shoot them.
Now I didnt find a line, with the "color 0xxxxxxx"code in TE_BLOOD.
Many other effects have this "color 0xxxxxxxx" line, so I just copied it to the TE_BLOOD effect.
What is the logic behind the color code ?
There is always "0x" and then 6 digits. Behind that its "0x" with 6 digits again.
I thought the 6 digits would represent the hexcode for the color (like shown here http://de.wikipedia.org/wiki/Webfarben ),
but it isnt. When I use ff0000, it should be pure red, but in fact its kind of green and on top more transparent...
Can someone help me making the blood a little more red (brighter), than the original Darkplaces color, by explaining the logic behind the "color 0xxxxxx" code ? (and why there are 2x times the 6 digits)
Here is an example from the TE_BLOOD effect (which has the green, transparent effect I mentioned):
"effect TE_BLOOD
count 0.333
type blood
color 0xff0000 0xff0000 // I added this line and thought it would switch the blood to "red"
tex 24 32
size 8 8
alpha 256 256 64
bounce -1
airfriction 1
liquidfriction 4
velocityjitter 64 64 64
velocitymultiplier 1"
Thank you very much !
Your help is highly appreciated.
Regards,
Seven

Back to top |

leileilol Joined: 15 Oct 2004 Posts: 1321 |

Posted: Sat Oct 13, 2007 4:38 am Post subject: |

you'll also have to edit the particlefont texture _________________

Back to top |

Seven Joined: 06 Oct 2007 Posts: 19 Location: Germany |

Posted: Sat Oct 13, 2007 6:51 pm Post subject: |

Can you please tell me, where I find the file / code particlefont ? I couldnt find it in my complete Quake directory / effectinfo.txt. I also wonder, due to the fact that I can change the color to green, as discribed above, ifI have to change this particlefont.
Remember, Darkplaces uses the "bloodhack" or "New Blood" (as it is described in the Menu / Options).
So I wonder which texture has to be edited.
Please tell me more detailed what else has to be edited.
Thank you very much.
Seven

Back to top |

Display posts from previous:

| Inside3d Forums Forum Index -> Engine Programming | All times are GMT
Page 1 of 1

Jump to:

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2004 phpBB Group