fixes
|
@ -10,8 +10,14 @@ petz.random_mob_sound = function(self)
|
|||
end
|
||||
local random_number = math.random(1, petz.settings.misc_sound_chance)
|
||||
if random_number == 1 then
|
||||
if self.sounds and self.sounds['misc'] then
|
||||
petz.do_sound_effect("object", self.object, self.sounds['misc'])
|
||||
if self.sounds and self.sounds['misc'] then
|
||||
local misc_sound
|
||||
if (type(self.sounds['misc']) == "table") then
|
||||
misc_sound = self.sounds['misc'][math.random(1, #self.sounds['misc'])]
|
||||
else
|
||||
misc_sound = self.sounds['misc']
|
||||
end
|
||||
petz.do_sound_effect("object", self.object, misc_sound)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -957,14 +957,14 @@ end
|
|||
|
||||
function mobkit.lq_mountdriver(self)
|
||||
local auto_drive = false
|
||||
local velo
|
||||
local func = function(self)
|
||||
if not(self.driver) then return true end
|
||||
local rot_steer, rot_view = math.pi/2, 0
|
||||
if self.player_rotation.y == 90 then
|
||||
rot_steer, rot_view = 0, math.pi/2
|
||||
end
|
||||
local acce_y = 0
|
||||
local acce_y = 0
|
||||
local velo
|
||||
if velo == nil then
|
||||
velo= {
|
||||
x= self.max_speed_forward,
|
||||
|
|
|
@ -10,7 +10,7 @@ local scale_baby = 0.5
|
|||
local visual_size_baby = {x=petz.settings.visual_size.x*scale_model*scale_baby, y=petz.settings.visual_size.y*scale_model*scale_baby}
|
||||
petz.pony = {}
|
||||
local mesh = 'petz_pony.b3d'
|
||||
local skin_colors = {"brown", "white", "yellow", "white_dotted", "gray_dotted", "black", "mutation"}
|
||||
local skin_colors = {"brown", "white", "yellow", "white_dotted", "gray_dotted", "black", "light_brown", "light_gray", "mutation"}
|
||||
local textures = {}
|
||||
for n = 1, #skin_colors do
|
||||
textures[n] = "petz_"..pet_name.."_"..skin_colors[n]..".png"
|
||||
|
@ -74,16 +74,19 @@ minetest.register_entity("petz:"..pet_name, {
|
|||
attack={range=0.5, damage_groups={fleshy=3}},
|
||||
|
||||
animation = {
|
||||
walk={range={x=1, y=12}, speed=20, loop=true},
|
||||
run={range={x=13, y=25}, speed=20, loop=true},
|
||||
walk={range={x=1, y=12}, speed=25, loop=true},
|
||||
run={range={x=13, y=25}, speed=25, loop=true},
|
||||
stand={
|
||||
{range={x=26, y=46}, speed=5, loop=true},
|
||||
{range={x=47, y=59}, speed=5, loop=true},
|
||||
{range={x=82, y=94}, speed=5, loop=true},
|
||||
{range={x=82, y=94}, speed=5, loop=true},
|
||||
{range={x=100, y=112}, speed=5, loop=false},
|
||||
{range={x=112, y=118}, speed=5, loop=false},
|
||||
{range={x=118, y=124}, speed=5, loop=false},
|
||||
},
|
||||
},
|
||||
sounds = {
|
||||
misc = "petz_pony_neigh",
|
||||
misc = {"petz_pony_neigh", "petz_pony_snort", "petz_horse_whinny", "petz_pony_blow_lips"},
|
||||
moaning = "petz_pony_moaning",
|
||||
},
|
||||
|
||||
|
|
|
@ -316,3 +316,13 @@ Author: Alexander
|
|||
http://www.orangefreesounds.com/horse-whinny-3/
|
||||
License: The song is permitted for non-commercial use
|
||||
under license “Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)”
|
||||
--------------------------------------------
|
||||
filename: petz_pony_snort.ogg
|
||||
Author: www.zapsplat.com
|
||||
https://www.zapsplat.com/music/horse-snort-human-mimicking-1/
|
||||
License: https://www.zapsplat.com/license-type/standard-license/
|
||||
--------------------------------------------
|
||||
filename: petz_pony_blow_lips.ogg
|
||||
Author: www.zapsplat.com
|
||||
https://www.zapsplat.com/music/horse-blow-lips/
|
||||
License: https://www.zapsplat.com/license-type/standard-license/
|
||||
|
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 2.7 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |