New sound type for climbable nodes like ladders

User avatar
Wuzzy
Member
 
Posts: 2161
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

New sound type for climbable nodes like ladders

by Wuzzy » Sun Jun 22, 2014 13:29

Okay, here is a very simple suggestion:

I suggest to add a new sound type for nodes, and it shall be called “climb”.
This sound is played when a player climbs up or down (using space bar or shift, for example) a node which is marked as climbable=true. In other words, a ladder (for example).
For nodes which are not climbable, the assignment to the climb variable shall be simply ignored.
Currently there is no sound played at all when climbing a climbable node.

Example:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
node_definition = {
description = "metal ladder",
climbable = true,
sounds = { climb = { name = "metal_ladder_climb", gain = 1 } },
--[[ pretend here are other parts of the node definition which are crucial for the node definition itself, but not important for this suggestion ]]
}

This node shall produce the sound “metal_ladder_climb.ogg” when climbed (upwards or downwards).
 

fraang
Member
 
Posts: 10
Joined: Thu Oct 11, 2012 14:42

Re: New sound type for climbable nodes like ladders

by fraang » Sun Jun 22, 2014 14:45

+1

Improves the immersion into the game world and makes it more plausible. :D
 

User avatar
Inocudom
Member
 
Posts: 2889
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

Re: New sound type for climbable nodes like ladders

by Inocudom » Sun Jun 22, 2014 16:25

Another thing is that Minecraft does not have this feature, so it can be added for the sake of originality.
 

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou

Re: New sound type for climbable nodes like ladders

by Calinou » Sun Jun 22, 2014 17:35

Inocudom wrote:Another thing is that Minecraft does not have this feature, so it can be added for the sake of originality.


It has ladder climbing sounds since 1.4.
 

emugod
Member
 
Posts: 33
Joined: Tue Aug 13, 2013 19:49

Re: New sound type for climbable nodes like ladders

by emugod » Thu Jul 10, 2014 03:46

can nodes have multiple sound types, for example with ladders both one for on first attaching to it, and for actually climbing it? or how about randomly selecting from multiple different sounds?
 

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou

Re: New sound type for climbable nodes like ladders

by Calinou » Thu Jul 10, 2014 07:49

emugod wrote:can nodes have multiple sound types, for example with ladders both one for on first attaching to it, and for actually climbing it? or how about randomly selecting from multiple different sounds?


Any sound can have random variations, just name the files like this:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
sound.1.ogg
sound.2.ogg

sound.8.ogg
sound.9.ogg
 

Rhys
Member
 
Posts: 379
Joined: Wed May 22, 2013 15:22

Re: New sound type for climbable nodes like ladders

by Rhys » Sun Aug 31, 2014 14:20

Very nice idea Wuzzy. :)
 


Return to Minetest Features

Who is online

Users browsing this forum: No registered users and 5 guests

cron