Jump to content
The Dark Mod Forums

clearing away blood with a water arrow


stumpy

Recommended Posts

don't know how it works in the dark mod so I came up with my own.

 

you need a set of blood textures, say 12 tga files, from full color blood to no blood, just start with a blood splat and change the alpha value till the blood splat is no longer visible.

 

then you need a patch with a gui texture on it, turn this into a func_static.

give it a name like bloodsplatspot

add a gui pointing at a gui using code below

add a response

type water

effect run script details run the script blood_clearup

 

blood script

void blood_clearup()

{

sys.trigger($bloodsplatspot);

}

 

gui code.

 

windowDef Desktop

{

rect 0, 0, 640, 480

 

onTrigger

{

set "Fadeblood::noTime" "0";

resetTime "Fadeblood" 0;

}

 

windowDef BloodSplatMain //full color no alpha image

{

rect 0, 0, 640, 480

background "guis/assets/blood/bloodsplat1.tga"

matcolor 0.2, 0.2, 0.2, 1

visible 1

}

 

windowDef Fadeblood

{

rect 0, 0, 640, 480

 

noTime 1

onTime 0

{

set "BloodSplatMain::visible" "0";

set "BloodSplat1::visible" "1";

}

onTime 200

{

set "BloodSplat1::visible" "0";

set "BloodSplat2::visible" "1";

}

onTime 400

{

set "BloodSplat2::visible" "0";

set "BloodSplat3::visible" "1";

}

onTime 600

{

set "BloodSplat3::visible" "0";

set "BloodSplat4::visible" "1";

}

onTime 800

{

set "BloodSplat4::visible" "0";

set "BloodSplat5::visible" "1";

}

onTime 1000

{

set "BloodSplat5::visible" "0";

set "BloodSplat6::visible" "1";

}

onTime 1200

{

set "BloodSplat6::visible" "0";

set "BloodSplat7::visible" "1";

}

onTime 1400

{

set "BloodSplat7::visible" "0";

set "BloodSplat8::visible" "1";

}

onTime 1600

{

set "BloodSplat8::visible" "0";

set "BloodSplat9::visible" "1";

}

onTime 1800

{

set "BloodSplat9::visible" "0";

set "BloodSplat10::visible" "1";

}

onTime 2000

{

set "BloodSplat10::visible" "0";

set "BloodSplat11::visible" "1";

}

onTime 2200

{

set "BloodSplat11::visible" "0";

}

}

 

windowDef BloodSplat1

{

rect 0, 0, 640, 480

background "guis/assets/blood/bloodsplat1.tga"

matcolor 0.2, 0.2, 0.2, 1

visible 0

}

windowDef BloodSplat2

{

rect 0, 0, 640, 480

background "guis/assets/blood/bloodsplat2.tga"

matcolor 0.2, 0.2, 0.2, 1

visible 0

}

windowDef BloodSplat3

{

rect 0, 0, 640, 480

background "guis/assets/blood/bloodsplat3.tga"

matcolor 0.2, 0.2, 0.2, 1

visible 0

}

windowDef BloodSplat4

{

rect 0, 0, 640, 480

background "guis/assets/blood/bloodsplat4.tga"

matcolor 0.2, 0.2, 0.2, 1

visible 0

}

windowDef BloodSplat5

{

rect 0, 0, 640, 480

background "guis/assets/blood/bloodsplat5.tga"

matcolor 0.2, 0.2, 0.2, 1

visible 0

}

windowDef BloodSplat6

{

rect 0, 0, 640, 480

background "guis/assets/blood/bloodsplat6.tga"

matcolor 0.2, 0.2, 0.2, 1

visible 0

}

windowDef BloodSplat7

{

rect 0, 0, 640, 480

background "guis/assets/blood/bloodsplat7.tga"

matcolor 0.2, 0.2, 0.2, 1

visible 0

}

windowDef BloodSplat8

{

rect 0, 0, 640, 480

background "guis/assets/blood/bloodsplat8.tga"

matcolor 0.2, 0.2, 0.2, 1

visible 0

}

windowDef BloodSplat9

{

rect 0, 0, 640, 480

background "guis/assets/blood/bloodsplat9.tga"

matcolor 0.2, 0.2, 0.2, 1

visible 0

}

windowDef BloodSplat10

{

rect 0, 0, 640, 480

background "guis/assets/blood/bloodsplat10.tga"

matcolor 0.2, 0.2, 0.2, 1

visible 0

}

windowDef BloodSplat11

{

rect 0, 0, 640, 480

background "guis/assets/blood/bloodsplat11.tga"

matcolor 0.2, 0.2, 0.2, 1

visible 0

}

}

 

there's probably other ways to trigger it without using a script. Don't know how to get blood on ground though unless you place it yourself, or use something along the lines of the way the moss arrow works with scattering moss bits around.

Edited by stumpy
  • Like 1
Link to comment
Share on other sites

Isn't that default behaviour?! :huh:

  • Like 1

FM's: Builder Roads, Old Habits, Old Habits Rebuild

Mapping and Scripting: Apples and Peaches

Sculptris Models and Tutorials: Obsttortes Models

My wiki articles: Obstipedia

Texture Blending in DR: DR ASE Blend Exporter

Link to comment
Share on other sites

i don't know, I just wanted a magic symbol drawn in blood, and a way to wash it away, I've never got the in game blood to appear because in auto animates itself and disappears as soon as its placed in game without the use of water.

  • Like 1
Link to comment
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.

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.

  • Recent Status Updates

    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 3 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
    • Petike the Taffer

      Maybe a bit of advice ? In the FM series I'm preparing, the two main characters have the given names Toby and Agnes (it's the protagonist and deuteragonist, respectively), I've been toying with the idea of giving them family names as well, since many of the FM series have named protagonists who have surnames. Toby's from a family who were usually farriers, though he eventually wound up working as a cobbler (this serves as a daylight "front" for his night time thieving). Would it make sense if the man's popularly accepted family name was Farrier ? It's an existing, though less common English surname, and it directly refers to the profession practiced by his relatives. Your suggestions ?
      · 9 replies
    • nbohr1more

      Looks like the "Reverse April Fools" releases were too well hidden. Darkfate still hasn't acknowledge all the new releases. Did you play any of the new April Fools missions?
      · 5 replies
×
×
  • Create New...