Toribash
Original Post
[REQ] Color BoilBlood
so... yeah, i have the boilblood.lua script and it's so cool.
but i want to change the colors.
like others scripts i want to write /ec COLOR and i want the blood turn that colour.

i want to do it with every color in toribash, but dont worry.
you do the script and then i change the colour.

Script code:
run_cmd("option blood 0")
local function get_joint_3d()
--blood
set_color(1, 0, 0, 1)
--Big Blood
for i=0,get_num_blood_particles()-1 do
x,y,z = get_blood_pos(i)
R3 = math.random()
Radius = get_blood_radius(i)
draw_sphere(x, y, z, Radius+(R3/65))
end
end

add_hook("draw3d", "sphere", get_joint_3d)
add_hook("draw2d", "sphere", draw2d)

well, i configured the script like this^
but now i want the colors.
you dont have to put "set_color(0.25,1,0,1)" (example)
you just put set_color(0,0,0,0) and then i configure it.
-----
any question, please post. and thanks!
Last edited by 0rigami; Feb 21, 2011 at 09:46 PM. Reason: <24 hour edit/bump
Easy stuff.
Going to work on something.

Do you want me to remove the boil effect? I can if you want.
Last edited by Yoyo; Feb 22, 2011 at 05:57 PM.
multiple texture uploader! updated: multiple texture remover!
updated pretty colorlist!

<BobJoelZ> ok ive just rebooted my pc and ive tried to activate my reflex on yahoo internet explorer :/ no luck

<Aracoon> I do not enjoy having anal sex with multiple men
If you want, I might add an option to able/disable boiling blood.
multiple texture uploader! updated: multiple texture remover!
updated pretty colorlist!

<BobJoelZ> ok ive just rebooted my pc and ive tried to activate my reflex on yahoo internet explorer :/ no luck

<Aracoon> I do not enjoy having anal sex with multiple men
whoa, it will be interesting, but like i have DeScript, and i can load/unload the script quickly.
so... do it if you want.
Last edited by 0rigami; Feb 22, 2011 at 09:06 PM.
Finished.
Now, you can do /ec blood void (or whatever color you want) and it will turn black (or whatever color you chose).
And, you can also type /ec boil to toggle between activated and deactivated.
It's off by default.

I hope this is what you wanted. =)
Attached Files
blood.lua (5.3 KB, 24 views)
multiple texture uploader! updated: multiple texture remover!
updated pretty colorlist!

<BobJoelZ> ok ive just rebooted my pc and ive tried to activate my reflex on yahoo internet explorer :/ no luck

<Aracoon> I do not enjoy having anal sex with multiple men
You could stop the boiling when in freeze. It would be more realistic.
What sucks is that the script makes TB lagg like hell. At least with raytracing enabled.
Nice idea anyways.

e: Since it TB lagged even if I turned boiling off I made some changes to the code. Now it really will be turned off, normal blood will be drawn and if you activate it again, it'll say "boiling activated" not "boiling deactivated" ;)
Attached Files
blood.lua (5.4 KB, 12 views)
Last edited by psycore; Feb 24, 2011 at 08:38 AM.
Signature temporarily out of order.