Jump to content
The Dark Mod Forums

Surface types


Tels

Recommended Posts

I just looked today at our surface types and corrected the wiki article on it a bit.

 

While doing so, I wondered two things:

 

* we have "paper", and there is the original "cardboard" from D3. What is the difference between these two? Why did we add paper?

 

* What does it take to add more surface types? (I know you can basically just "use" it without having to define it anywhere in the code, but where would I setup the sound properties etc.?)

 

The second question is because we have the ability to tell the SEED to spawn things based on the underlying surface. However, some of the surface categories are a bit broad - f.i. you want to differentiate for mushrooms based on where they grow. Some of them only grow on dry needles, some of them only in wet areas.

 

We have:

 

  • dirt
  • gravel
  • grass
  • rock
  • sand
  • mud
  • straw

 

but that is not enough to differentiate between these things. I also wonder how one would f.i. tag these texture:

 

* dry needles (wood area, akin to dry leaves)

* wet, rich soil (garden areas where plants grow, it is not dirt, not mud)

* turf

* heath (that could be "sand")

 

under the existing scheme.

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Link to comment
Share on other sites

* What does it take to add more surface types? (I know you can basically just "use" it without having to define it anywhere in the code, but where would I setup the sound properties etc.?)

I believe there is a string list of "new" surface types that is initialized in gameLocal.cpp. Spawnargs for sound properties have to be added on an individual basis for propagated sounds. Otherwise if it sees a surface type, but doesn't find a spawnarg for a propagated sound for that surface, it will just use the default soundprop volume.

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

      Finally got round to publishing a tutorial on baking normal maps in Blender, since most of the ones we have are inaccessible or years out of date.
      · 0 replies
    • nbohr1more

      The FAQ wiki is almost a proper FAQ now. Probably need to spin-off a bunch of the "remedies" for playing older TDM versions into their own article.
      · 1 reply
    • nbohr1more

      Was checking out old translation packs and decided to fire up TDM 1.07. Rightful Property with sub-20 FPS areas yay! ( same areas run at 180FPS with cranked eye candy on 2.12 )
      · 3 replies
    • taffernicus

      i am so euphoric to see new FMs keep coming out and I am keen to try it out in my leisure time, then suddenly my PC is spouting a couple of S.M.A.R.T errors...
      tbf i cannot afford myself to miss my network emulator image file&progress, important ebooks, hyper-v checkpoint & hyper-v export and the precious thief & TDM gamesaves. Don't fall yourself into & lay your hands on crappy SSD
       
      · 7 replies
    • 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.
      · 7 replies
×
×
  • Create New...