Jump to content
The Dark Mod Forums

Water arrow splash falls through brushes


R Soul

Recommended Posts

I don't know if this is a bug or just a thing we have to live with, and if in Dark Radiant we can do anything about it:

 

While trying out ways of building spiral stairs I noticed that the splash effect from a water arrow fell through the the stairs and put out the torch on the level below (the equivalent of falling though the floor to the room below).

 

There will be ways of positioning torches to prevent this sort of thing (not lining them up in the top view, having a good height difference etc), but I think it's quite reasonable to expect the splash not to fall through the floor. Is there any special brush or model (or other technique) that stops effects like this?

 

Link to comment
Share on other sites

No.

 

Particle effects don't understand brush boundaries.

 

I did some work years ago to prevent the gas particle effect from passing through these boundaries and gassing AI and flames on the far side, to increase realism.

 

It was a lot of work.

 

I had intended to address water particles as well, but I never did the work.

 

The best you can do is to not place flames below other flames on upper floors.

Link to comment
Share on other sites

The water arrow result creates a stim that exists for 1.2 seconds and moves downwards at 150 doom units/second. Its radius is 24 doom units. This means (in theory), that you can turn out a flame at the level below the floor you are currently standing on, if the distance between the floor and the flame is smaller then 150*1.2+24=204 doom units.

 

You could try to alter the waterarrow definition to change that behaviour. You'll find it under def/tdm_weapon_waterarrow.def. Copy that to your fm folder (in def folder) and change the entityDefs for atdm:result_arrow_waterarrow as well as for atdm:result_arrow_waterarrow_holy (the latter only if you use holy water in your mission).

entityDef atdm:result_arrow_waterarrow
{
    "inherit"            "atdm:result_arrow_base"

    // parametric particles -- temp
    "model_dud"            "waterarrow.prt"

    // water splash
    // placeholder D3 sound for now
    "snd_dud"            "arrow_water_impact"
    "sprS_dud"          "arrow_water_impact"

    "copy_bind"            "0"

    //warning: changing remove_delay cuts the particle off in mid-animation!
    "remove_delay"        "3"
    
    "sr_type_1"                    "2"        // STIM_WATER -> script/tdm_stim_response.script
    "sr_radius_1"                    "24"        // Radius in Doom 3 units
    "sr_velocity_1"                    "0 0 -150"    // units per second
    "sr_falloffexponent_1"            "2"
    "sr_duration_1"                "1200"        // stim duration 1200 ms
    "sr_time_interval_1"        "100"        // stim check is made roughly every 100 ms
}

sr_duration_1 handels the duration of the stim. Decreasing that should do the trick. You could also change the velocity, but than the stim might not be synced with the particle effect anymore. Unless you are aiming to create your own partice, you probably don't want that.

 

Hope that helps :)

  • 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

entityDef atdm:result_arrow_waterarrow
{
    "inherit"            "atdm:result_arrow_base"
etc...

 

Does something in the above control how many cycles of splashes the water arrow releases upon impact (like, maybe "sr_type_1" field)? Seems like it is going through two cycles for me, I'd like it to be one...

Edited by Darkness_Falls
Link to comment
Share on other sites

The number of cycles is defined in the particle file.

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

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.
      · 6 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...