Search found 7 matches

Return to advanced search

I did it that way, because the sound is all or only you. but it can it easily be changed or commented out. You also could use minetest.get_modnames to see if the mod bones is install. If it is then just if over it. But if you were doing a coop or something like that. it could be of use. It would als...
by Microsuperman
Mon Oct 15, 2012 23:53
 
Forum: WIP Mods
Topic: death and hurt sounds
Replies: 8
Views: 1290

Well I was playing around with death sound. I have found that using the code minetest.sound_play({name="ds_hurt"}, {pos = pname, gain = 0.5, max_hear_distance = 8}) or minetest.sound_play({name="ds_hurt"}, {pos, gain = .25}) no matter how far you are from each other when you die. It plays the sound ...
by Microsuperman
Mon Oct 15, 2012 20:21
 
Forum: WIP Mods
Topic: death and hurt sounds
Replies: 8
Views: 1290

Well with the hunger and drowning they way they play a sound is by having it created damage with a sound added too it. if player:get_hp() > 0 then player:set_hp(player:get_hp() - DROWNING_DAMAGE) pos = player:getpos() pos.y=pos.y+1 minetest.sound_play({name="drowning_gurp"}, {pos = pos, gain = 1.0, ...
by Microsuperman
Sun Oct 14, 2012 03:27
 
Forum: WIP Mods
Topic: death and hurt sounds
Replies: 8
Views: 1290

death and hurt sounds

I have been looking at trying to make a mod to add sound to when you get hurt and when you die. But I can't seem to figure out how the api's minetest.sound_play minetest.register_on_dieplayer structure works. Let alone how to use them together. Also I don't see an api for when you get hurt. Could so...
by Microsuperman
Sat Oct 13, 2012 19:25
 
Forum: WIP Mods
Topic: death and hurt sounds
Replies: 8
Views: 1290

being new to minetest. I didn't see the "unofficial engine development" at the bottom. but I did come up with an idea for an api that could make 3d creatures http://minetest.net/forum/viewtopic.php?pid=46927#p46927. what do you guys think?
by Microsuperman
Sat Oct 13, 2012 18:31
 
Forum: Partly official engine development
Topic: 3D animals
Replies: 42
Views: 10992

3d model API. I have an API Idea that I Think would be a great. but maybe not that easy to impliment. I have an API Idea that I think would be a great. but maybe not that easy to implement. I think this game could use a 3d model API for creatures. Now my idea is to to make rectangles. That you speci...
by Microsuperman
Wed Oct 10, 2012 04:28
 
Forum: Modding Discussion
Topic: Post your mod requests/ideas here
Replies: 2053
Views: 266021

how to tell if I am the top of the tree?

I'm learning how to make mods, and well playing around with jeija's tutoral. I strip all the leaves off of the trees. so I want to put them back on. but I need to know when I am 2 tree blocks from the top. So my question is how do you tell when I am not on the top of the tree. minetest.register_abm(...
by Microsuperman
Fri Oct 05, 2012 02:37
 
Forum: WIP Mods
Topic: how to tell if I am the top of the tree?
Replies: 1
Views: 422

Return to advanced search