Jump to content
The Dark Mod Forums

Making things float


Amadeus

Recommended Posts

So, I'm currently working on an FM and building a small flooded area. Is there a way to make models or brushes float on water (I haven't found anything on the wikis)? It's not terribly important, its just for detail and immersion. Thanks.

  • Like 1
Link to comment
Share on other sites

Is the game code smart enough to know that a wood table weighing X would float compared to the same table made of metal that would not..?

 

Maybe. There's also a "density" spawnarg, but sometimes the code likes to calculate the density based on mass and size, and other times it uses the density setting directly, and sometimes it calculates "mass" based on size and density, and sometimes it uses "mass" directly. I couldn't tell you when each method is used. Very confusing when I first encountered it.

 

Best to just play with "mass" and "density" until you get the results you want.

Link to comment
Share on other sites

So, grayman, would you mind explaining this like I'm five. Is mass a property that I can add to a specific entity or model, or is there a script I need to write. Thanks.

Link to comment
Share on other sites

They are spawnargs on moveables. Func_statics don't need them, as they are static ;) You can also increase the density of the water to let things float, which may be the faster approach.

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

They are spawnargs on moveables. Func_statics don't need them, as they are static ;) You can also increase the density of the water to let things float, which may be the faster approach.

Ooops, quite right!

 

I noticed in Old Habits 2 right at the beginning where you have some breeze blocks and a channel of water, if you drop the blocks in the water they float really high, barely sinking, like you'd expect from concrete that's full of air. I wondered how you did that, but I guess that was how :-)

Link to comment
Share on other sites

Ooops, quite right!

 

I noticed in Old Habits 2 right at the beginning where you have some breeze blocks and a channel of water, if you drop the blocks in the water they float really high, barely sinking, like you'd expect from concrete that's full of air. I wondered how you did that, but I guess that was how :-)

Nope, didn't do anything on the water. The blocks are custom moveables, and I guess the default density is pretty low :)

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

    • Petike the Taffer  »  DeTeEff

      I've updated the articles for your FMs and your author category at the wiki. Your newer nickname (DeTeEff) now comes first, and the one in parentheses is your older nickname (Fieldmedic). Just to avoid confusing people who played your FMs years ago and remember your older nickname. I've added a wiki article for your latest FM, Who Watches the Watcher?, as part of my current updating efforts. Unless I overlooked something, you have five different FMs so far.
      · 0 replies
    • Petike the Taffer

      I've finally managed to log in to The Dark Mod Wiki. I'm back in the saddle and before the holidays start in full, I'll be adding a few new FM articles and doing other updates. Written in Stone is already done.
      · 4 replies
    • nbohr1more

      TDM 15th Anniversary Contest is now active! Please declare your participation: https://forums.thedarkmod.com/index.php?/topic/22413-the-dark-mod-15th-anniversary-contest-entry-thread/
       
      · 0 replies
    • JackFarmer

      @TheUnbeholden
      You cannot receive PMs. Could you please be so kind and check your mailbox if it is full (or maybe you switched off the function)?
      · 1 reply
    • OrbWeaver

      I like the new frob highlight but it would nice if it was less "flickery" while moving over objects (especially barred metal doors).
      · 4 replies
×
×
  • Create New...