Remove mobs submodule, split mobs into separate folders
|
@ -1 +0,0 @@
|
|||
Subproject commit a6c3db71f152e13ad5068c8536edec60db59e099
|
|
@ -0,0 +1,37 @@
|
|||
=== MOBS-MOD for MINETEST ===
|
||||
Original by PilzAdam
|
||||
Fork by BrandonReese
|
||||
|
||||
Inroduction:
|
||||
This mod adds some basic hostile and friendly mobs to the game.
|
||||
|
||||
How to install:
|
||||
Unzip the archive an place it in minetest-base-directory/mods/minetest/
|
||||
if you have a windows client or a linux run-in-place client. If you have
|
||||
a linux system-wide instalation place it in ~/.minetest/mods/minetest/.
|
||||
If you want to install this mod only in one world create the folder
|
||||
worldmods/ in your worlddirectory.
|
||||
For further information or help see:
|
||||
http://wiki.minetest.com/wiki/Installing_Mods
|
||||
|
||||
License:
|
||||
Sourcecode: WTFPL (see below)
|
||||
Grahpics: WTFPL (see below)
|
||||
Models: WTFPL (by Pavel_S, see below)
|
||||
|
||||
See also:
|
||||
http://minetest.net/
|
||||
|
||||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||
Version 2, December 2004
|
||||
|
||||
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
|
||||
|
||||
Everyone is permitted to copy and distribute verbatim or modified
|
||||
copies of this license document, and changing it is allowed as long
|
||||
as the name is changed.
|
||||
|
||||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. You just DO WHAT THE FUCK YOU WANT TO.
|
|
@ -0,0 +1,57 @@
|
|||
mobs:register_mob("mobs:rat", {
|
||||
type = "animal",
|
||||
hp_min = 1,
|
||||
hp_max = 4,
|
||||
collisionbox = {-0.2, -0.01, -0.2, 0.2, 0.2, 0.2},
|
||||
visual = "mesh",
|
||||
mesh = "mobs_rat.x",
|
||||
textures = {"mobs_rat.png"},
|
||||
makes_footstep_sound = false,
|
||||
walk_velocity = 1,
|
||||
armor = 200,
|
||||
drops = {},
|
||||
drawtype = "front",
|
||||
water_damage = 0,
|
||||
lava_damage = 1,
|
||||
light_damage = 0,
|
||||
|
||||
on_rightclick = function(self, clicker)
|
||||
if clicker:is_player() and clicker:get_inventory() then
|
||||
clicker:get_inventory():add_item("main", "mobs:rat")
|
||||
self.object:remove()
|
||||
end
|
||||
end,
|
||||
sounds = { },
|
||||
step=1,
|
||||
passive = true,
|
||||
blood_amount = 5,
|
||||
blood_offset = 0,
|
||||
})
|
||||
mobs:register_spawn("mobs:rat", {"default:dirt_with_grass", "default:stone"}, 20, -1, 7000, 1, 31000)
|
||||
|
||||
minetest.register_craftitem("mobs:rat", {
|
||||
description = "Rat",
|
||||
inventory_image = "mobs_rat_inventory.png",
|
||||
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
if pointed_thing.above then
|
||||
minetest.env:add_entity(pointed_thing.above, "mobs:rat")
|
||||
itemstack:take_item()
|
||||
end
|
||||
return itemstack
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_craftitem("mobs:rat_cooked", {
|
||||
description = "Cooked Rat",
|
||||
inventory_image = "mobs_cooked_rat.png",
|
||||
|
||||
on_use = minetest.item_eat(3),
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "cooking",
|
||||
output = "mobs:rat_cooked",
|
||||
recipe = "mobs:rat",
|
||||
cooktime = 5,
|
||||
})
|
|
@ -0,0 +1,101 @@
|
|||
mobs:register_mob("mobs:sheep", {
|
||||
type = "animal",
|
||||
hp_min = 8,
|
||||
hp_max = 10,
|
||||
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1, 0.4},
|
||||
textures = {"mobs_sheep.png"},
|
||||
visual = "mesh",
|
||||
mesh = "mobs_sheep.x",
|
||||
makes_footstep_sound = true,
|
||||
walk_velocity = 1,
|
||||
armor = 200,
|
||||
drops = {
|
||||
{name = "mobs:meat_raw",
|
||||
chance = 1,
|
||||
min = 2,
|
||||
max = 3,},
|
||||
},
|
||||
drawtype = "front",
|
||||
water_damage = 1,
|
||||
lava_damage = 5,
|
||||
light_damage = 0,
|
||||
sounds = {
|
||||
random = "mobs_sheep",
|
||||
},
|
||||
animation = {
|
||||
speed_normal = 15,
|
||||
stand_start = 0,
|
||||
stand_end = 80,
|
||||
walk_start = 81,
|
||||
walk_end = 100,
|
||||
},
|
||||
follow = "farming:wheat",
|
||||
view_range = 5,
|
||||
|
||||
on_rightclick = function(self, clicker)
|
||||
local item = clicker:get_wielded_item()
|
||||
if item:get_name() == "farming:wheat" then
|
||||
if not self.tamed then
|
||||
if not minetest.setting_getbool("creative_mode") then
|
||||
item:take_item()
|
||||
clicker:set_wielded_item(item)
|
||||
end
|
||||
self.tamed = true
|
||||
elseif self.naked then
|
||||
if not minetest.setting_getbool("creative_mode") then
|
||||
item:take_item()
|
||||
clicker:set_wielded_item(item)
|
||||
end
|
||||
self.food = (self.food or 0) + 1
|
||||
if self.food >= 8 then
|
||||
self.food = 0
|
||||
self.naked = false
|
||||
self.object:set_properties({
|
||||
textures = {"mobs_sheep.png"},
|
||||
mesh = "mobs_sheep.x",
|
||||
})
|
||||
end
|
||||
end
|
||||
return
|
||||
end
|
||||
if clicker:get_inventory() and not self.naked then
|
||||
self.naked = true
|
||||
if minetest.registered_items["wool:white"] then
|
||||
clicker:get_inventory():add_item("main", ItemStack("wool:white "..math.random(1,3)))
|
||||
end
|
||||
self.object:set_properties({
|
||||
textures = {"mobs_sheep_shaved.png"},
|
||||
mesh = "mobs_sheep_shaved.x",
|
||||
})
|
||||
end
|
||||
end,
|
||||
jump = true,
|
||||
step=1,
|
||||
passive = true,
|
||||
blood_offset = 0.25,
|
||||
blood_amount = 20,
|
||||
})
|
||||
mobs:register_spawn("mobs:sheep", {"default:dirt_with_grass"}, 20, 8, 9000, 2, 31000)
|
||||
|
||||
minetest.register_craftitem("mobs:meat_raw", {
|
||||
description = "Raw Meat",
|
||||
inventory_image = "mobs_meat_raw.png",
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
affects.affectPlayer(user:get_player_name(),"food_poisoning")
|
||||
itemstack:take_item()
|
||||
return itemstack
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_craftitem("mobs:meat", {
|
||||
description = "Meat",
|
||||
inventory_image = "mobs_meat.png",
|
||||
on_use = minetest.item_eat(8),
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "cooking",
|
||||
output = "mobs:meat",
|
||||
recipe = "mobs:meat_raw",
|
||||
cooktime = 5,
|
||||
})
|
|
@ -0,0 +1,890 @@
|
|||
mobs = {}
|
||||
function mobs:register_mob(name, def)
|
||||
minetest.register_entity(name, {
|
||||
name = name,
|
||||
hp_min = def.hp_min,
|
||||
hp_max = def.hp_max,
|
||||
physical = true,
|
||||
collisionbox = def.collisionbox,
|
||||
visual = def.visual,
|
||||
visual_size = def.visual_size,
|
||||
mesh = def.mesh,
|
||||
textures = def.textures,
|
||||
makes_footstep_sound = def.makes_footstep_sound,
|
||||
view_range = def.view_range,
|
||||
walk_velocity = def.walk_velocity,
|
||||
run_velocity = def.run_velocity,
|
||||
damage = def.damage,
|
||||
light_damage = def.light_damage,
|
||||
water_damage = def.water_damage,
|
||||
lava_damage = def.lava_damage,
|
||||
disable_fall_damage = def.disable_fall_damage,
|
||||
drops = def.drops,
|
||||
armor = def.armor,
|
||||
drawtype = def.drawtype,
|
||||
on_rightclick = def.on_rightclick,
|
||||
type = def.type,
|
||||
attack_type = def.attack_type,
|
||||
arrow = def.arrow,
|
||||
shoot_interval = def.shoot_interval,
|
||||
sounds = def.sounds,
|
||||
animation = def.animation,
|
||||
follow = def.follow,
|
||||
jump = def.jump or true,
|
||||
exp_min = def.exp_min or 0,
|
||||
exp_max = def.exp_max or 0,
|
||||
walk_chance = def.walk_chance or 50,
|
||||
attacks_monsters = def.attacks_monsters or false,
|
||||
group_attack = def.group_attack or false,
|
||||
step = def.step or 0,
|
||||
fov = def.fov or 120,
|
||||
passive = def.passive or false,
|
||||
recovery_time = def.recovery_time or 0.5,
|
||||
knock_back = def.knock_back or 3,
|
||||
blood_offset = def.blood_offset or 0,
|
||||
blood_amount = def.blood_amount or 15,
|
||||
blood_texture = def.blood_texture or "mobs_blood.png",
|
||||
rewards = def.rewards or nil,
|
||||
|
||||
stimer = 0,
|
||||
timer = 0,
|
||||
env_damage_timer = 0, -- only if state = "attack"
|
||||
attack = {player=nil, dist=nil},
|
||||
state = "stand",
|
||||
v_start = false,
|
||||
old_y = nil,
|
||||
lifetimer = 600,
|
||||
tamed = false,
|
||||
last_state = nil,
|
||||
pause_timer = 0,
|
||||
|
||||
do_attack = function(self, player, dist)
|
||||
if self.state ~= "attack" then
|
||||
if self.sounds.war_cry then
|
||||
if math.random(0,100) < 90 then
|
||||
minetest.sound_play(self.sounds.war_cry,{ object = self.object })
|
||||
end
|
||||
end
|
||||
self.state = "attack"
|
||||
self.attack.player = player
|
||||
self.attack.dist = dist
|
||||
end
|
||||
end,
|
||||
|
||||
set_velocity = function(self, v)
|
||||
local yaw = self.object:getyaw()
|
||||
if self.drawtype == "side" then
|
||||
yaw = yaw+(math.pi/2)
|
||||
end
|
||||
local x = math.sin(yaw) * -v
|
||||
local z = math.cos(yaw) * v
|
||||
self.object:setvelocity({x=x, y=self.object:getvelocity().y, z=z})
|
||||
end,
|
||||
|
||||
get_velocity = function(self)
|
||||
local v = self.object:getvelocity()
|
||||
return (v.x^2 + v.z^2)^(0.5)
|
||||
end,
|
||||
|
||||
in_fov = function(self,pos)
|
||||
-- checks if POS is in self's FOV
|
||||
local yaw = self.object:getyaw()
|
||||
if self.drawtype == "side" then
|
||||
yaw = yaw+(math.pi/2)
|
||||
end
|
||||
local vx = math.sin(yaw)
|
||||
local vz = math.cos(yaw)
|
||||
local ds = math.sqrt(vx^2 + vz^2)
|
||||
local ps = math.sqrt(pos.x^2 + pos.z^2)
|
||||
local d = { x = vx / ds, z = vz / ds }
|
||||
local p = { x = pos.x / ps, z = pos.z / ps }
|
||||
|
||||
local an = ( d.x * p.x ) + ( d.z * p.z )
|
||||
|
||||
a = math.deg( math.acos( an ) )
|
||||
|
||||
if a > ( self.fov / 2 ) then
|
||||
return false
|
||||
else
|
||||
return true
|
||||
end
|
||||
end,
|
||||
|
||||
set_animation = function(self, type)
|
||||
if not self.animation then
|
||||
return
|
||||
end
|
||||
if not self.animation.current then
|
||||
self.animation.current = ""
|
||||
end
|
||||
if type == "stand" and self.animation.current ~= "stand" then
|
||||
if
|
||||
self.animation.stand_start
|
||||
and self.animation.stand_end
|
||||
and self.animation.speed_normal
|
||||
then
|
||||
self.object:set_animation(
|
||||
{x=self.animation.stand_start,y=self.animation.stand_end},
|
||||
self.animation.speed_normal, 0
|
||||
)
|
||||
self.animation.current = "stand"
|
||||
end
|
||||
elseif type == "walk" and self.animation.current ~= "walk" then
|
||||
if
|
||||
self.animation.walk_start
|
||||
and self.animation.walk_end
|
||||
and self.animation.speed_normal
|
||||
then
|
||||
self.object:set_animation(
|
||||
{x=self.animation.walk_start,y=self.animation.walk_end},
|
||||
self.animation.speed_normal, 0
|
||||
)
|
||||
self.animation.current = "walk"
|
||||
end
|
||||
elseif type == "run" and self.animation.current ~= "run" then
|
||||
if
|
||||
self.animation.run_start
|
||||
and self.animation.run_end
|
||||
and self.animation.speed_run
|
||||
then
|
||||
self.object:set_animation(
|
||||
{x=self.animation.run_start,y=self.animation.run_end},
|
||||
self.animation.speed_run, 0
|
||||
)
|
||||
self.animation.current = "run"
|
||||
end
|
||||
elseif type == "punch" and self.animation.current ~= "punch" then
|
||||
if
|
||||
self.animation.punch_start
|
||||
and self.animation.punch_end
|
||||
and self.animation.speed_normal
|
||||
then
|
||||
self.object:set_animation(
|
||||
{x=self.animation.punch_start,y=self.animation.punch_end},
|
||||
self.animation.speed_normal, 0
|
||||
)
|
||||
self.animation.current = "punch"
|
||||
end
|
||||
end
|
||||
end,
|
||||
|
||||
on_step = function(self, dtime)
|
||||
|
||||
if self.type == "monster" and minetest.setting_getbool("only_peaceful_mobs") then
|
||||
self.object:remove()
|
||||
end
|
||||
|
||||
self.lifetimer = self.lifetimer - dtime
|
||||
if self.lifetimer <= 0 and not self.tamed and self.type ~= "npc" then
|
||||
local player_count = 0
|
||||
for _,obj in ipairs(minetest.get_objects_inside_radius(self.object:getpos(), 10)) do
|
||||
if obj:is_player() then
|
||||
player_count = player_count+1
|
||||
end
|
||||
end
|
||||
if player_count == 0 and self.state ~= "attack" then
|
||||
minetest.log("action","lifetimer expired, removed mob "..self.name)
|
||||
self.object:remove()
|
||||
return
|
||||
end
|
||||
end
|
||||
|
||||
if self.object:getvelocity().y > 0.1 then
|
||||
local yaw = self.object:getyaw()
|
||||
if self.drawtype == "side" then
|
||||
yaw = yaw+(math.pi/2)
|
||||
end
|
||||
local x = math.sin(yaw) * -2
|
||||
local z = math.cos(yaw) * 2
|
||||
self.object:setacceleration({x=x, y=-10, z=z})
|
||||
else
|
||||
self.object:setacceleration({x=0, y=-10, z=0})
|
||||
end
|
||||
|
||||
if self.disable_fall_damage and self.object:getvelocity().y == 0 then
|
||||
if not self.old_y then
|
||||
self.old_y = self.object:getpos().y
|
||||
else
|
||||
local d = self.old_y - self.object:getpos().y
|
||||
if d > 5 then
|
||||
local damage = d-5
|
||||
self.object:set_hp(self.object:get_hp()-damage)
|
||||
if self.object:get_hp() == 0 then
|
||||
self.object:remove()
|
||||
end
|
||||
end
|
||||
self.old_y = self.object:getpos().y
|
||||
end
|
||||
end
|
||||
|
||||
-- if pause state then this is where the loop ends
|
||||
-- pause is only set after a monster is hit
|
||||
if self.pause_timer > 0 then
|
||||
self.pause_timer = self.pause_timer - dtime
|
||||
if self.pause_timer <= 0 then
|
||||
self.pause_timer = 0
|
||||
end
|
||||
return
|
||||
end
|
||||
|
||||
self.timer = self.timer+dtime
|
||||
if self.state ~= "attack" then
|
||||
if self.timer < 1 then
|
||||
return
|
||||
end
|
||||
self.timer = 0
|
||||
end
|
||||
|
||||
if self.sounds and self.sounds.random and math.random(1, 100) <= 1 then
|
||||
minetest.sound_play(self.sounds.random, {object = self.object})
|
||||
end
|
||||
|
||||
local do_env_damage = function(self)
|
||||
local pos = self.object:getpos()
|
||||
local n = minetest.get_node(pos)
|
||||
|
||||
if self.light_damage and self.light_damage ~= 0
|
||||
and pos.y>0
|
||||
and minetest.get_node_light(pos)
|
||||
and minetest.get_node_light(pos) > 4
|
||||
and minetest.get_timeofday() > 0.2
|
||||
and minetest.get_timeofday() < 0.8
|
||||
then
|
||||
self.object:set_hp(self.object:get_hp()-self.light_damage)
|
||||
if self.object:get_hp() == 0 then
|
||||
self.object:remove()
|
||||
end
|
||||
end
|
||||
|
||||
if self.water_damage and self.water_damage ~= 0 and
|
||||
minetest.get_item_group(n.name, "water") ~= 0
|
||||
then
|
||||
self.object:set_hp(self.object:get_hp()-self.water_damage)
|
||||
if self.object:get_hp() == 0 then
|
||||
self.object:remove()
|
||||
end
|
||||
end
|
||||
|
||||
if self.lava_damage and self.lava_damage ~= 0 and
|
||||
minetest.get_item_group(n.name, "lava") ~= 0
|
||||
then
|
||||
self.object:set_hp(self.object:get_hp()-self.lava_damage)
|
||||
if self.object:get_hp() == 0 then
|
||||
self.object:remove()
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
self.env_damage_timer = self.env_damage_timer + dtime
|
||||
if self.state == "attack" and self.env_damage_timer > 1 then
|
||||
self.env_damage_timer = 0
|
||||
do_env_damage(self)
|
||||
elseif self.state ~= "attack" then
|
||||
do_env_damage(self)
|
||||
end
|
||||
|
||||
-- FIND SOMEONE TO ATTACK
|
||||
if ( self.type == "monster" or self.type == "barbarian" ) and minetest.setting_getbool("enable_damage") and self.state ~= "attack" then
|
||||
local s = self.object:getpos()
|
||||
local inradius = minetest.get_objects_inside_radius(s,self.view_range)
|
||||
local player = nil
|
||||
local type = nil
|
||||
for _,oir in ipairs(inradius) do
|
||||
if oir:is_player() then
|
||||
player = oir
|
||||
type = "player"
|
||||
else
|
||||
local obj = oir:get_luaentity()
|
||||
if obj then
|
||||
player = obj.object
|
||||
type = obj.type
|
||||
end
|
||||
end
|
||||
|
||||
if type == "player" or type == "npc" then
|
||||
local s = self.object:getpos()
|
||||
local p = player:getpos()
|
||||
local sp = s
|
||||
p.y = p.y + 1
|
||||
sp.y = sp.y + 1 -- aim higher to make looking up hills more realistic
|
||||
local dist = ((p.x-s.x)^2 + (p.y-s.y)^2 + (p.z-s.z)^2)^0.5
|
||||
if dist < self.view_range and self.in_fov(self,p) then
|
||||
if minetest.line_of_sight(sp,p,2) == true then
|
||||
self.do_attack(self,player,dist)
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
-- NPC FIND A MONSTER TO ATTACK
|
||||
if self.type == "npc" and self.attacks_monsters and self.state ~= "attack" then
|
||||
local s = self.object:getpos()
|
||||
local inradius = minetest.get_objects_inside_radius(s,self.view_range)
|
||||
for _, oir in pairs(inradius) do
|
||||
local obj = oir:get_luaentity()
|
||||
if obj then
|
||||
if obj.type == "monster" or obj.type == "barbarian" then
|
||||
-- attack monster
|
||||
local p = obj.object:getpos()
|
||||
local dist = ((p.x-s.x)^2 + (p.y-s.y)^2 + (p.z-s.z)^2)^0.5
|
||||
self.do_attack(self,obj.object,dist)
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
if self.follow ~= "" and not self.following then
|
||||
for _,player in pairs(minetest.get_connected_players()) do
|
||||
local s = self.object:getpos()
|
||||
local p = player:getpos()
|
||||
local dist = ((p.x-s.x)^2 + (p.y-s.y)^2 + (p.z-s.z)^2)^0.5
|
||||
if self.view_range and dist < self.view_range then
|
||||
self.following = player
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if self.following and self.following:is_player() then
|
||||
if self.following:get_wielded_item():get_name() ~= self.follow then
|
||||
self.following = nil
|
||||
else
|
||||
local s = self.object:getpos()
|
||||
local p = self.following:getpos()
|
||||
local dist = ((p.x-s.x)^2 + (p.y-s.y)^2 + (p.z-s.z)^2)^0.5
|
||||
if dist > self.view_range then
|
||||
self.following = nil
|
||||
self.v_start = false
|
||||
else
|
||||
local vec = {x=p.x-s.x, y=p.y-s.y, z=p.z-s.z}
|
||||
local yaw = math.atan(vec.z/vec.x)+math.pi/2
|
||||
if self.drawtype == "side" then
|
||||
yaw = yaw+(math.pi/2)
|
||||
end
|
||||
if p.x > s.x then
|
||||
yaw = yaw+math.pi
|
||||
end
|
||||
self.object:setyaw(yaw)
|
||||
if dist > 2 then
|
||||
if not self.v_start then
|
||||
self.v_start = true
|
||||
self.set_velocity(self, self.walk_velocity)
|
||||
else
|
||||
if self.jump and self.get_velocity(self) <= 1.5 and self.object:getvelocity().y == 0 then
|
||||
local v = self.object:getvelocity()
|
||||
v.y = 6
|
||||
self.object:setvelocity(v)
|
||||
end
|
||||
self.set_velocity(self, self.walk_velocity)
|
||||
end
|
||||
self:set_animation("walk")
|
||||
else
|
||||
self.v_start = false
|
||||
self.set_velocity(self, 0)
|
||||
self:set_animation("stand")
|
||||
end
|
||||
return
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if self.state == "stand" then
|
||||
-- randomly turn
|
||||
if math.random(1, 4) == 1 then
|
||||
-- if there is a player nearby look at them
|
||||
local lp = nil
|
||||
local s = self.object:getpos()
|
||||
if self.type == "npc" then
|
||||
local o = minetest.get_objects_inside_radius(self.object:getpos(), 3)
|
||||
|
||||
local yaw = 0
|
||||
for _,o in ipairs(o) do
|
||||
if o:is_player() then
|
||||
lp = o:getpos()
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
if lp ~= nil then
|
||||
local vec = {x=lp.x-s.x, y=lp.y-s.y, z=lp.z-s.z}
|
||||
yaw = math.atan(vec.z/vec.x)+math.pi/2
|
||||
if self.drawtype == "side" then
|
||||
yaw = yaw+(math.pi/2)
|
||||
end
|
||||
if lp.x > s.x then
|
||||
yaw = yaw+math.pi
|
||||
end
|
||||
else
|
||||
yaw = self.object:getyaw()+((math.random(0,360)-180)/180*math.pi)
|
||||
end
|
||||
self.object:setyaw(yaw)
|
||||
end
|
||||
self.set_velocity(self, 0)
|
||||
self.set_animation(self, "stand")
|
||||
if math.random(1, 100) <= self.walk_chance then
|
||||
self.set_velocity(self, self.walk_velocity)
|
||||
self.state = "walk"
|
||||
self.set_animation(self, "walk")
|
||||
end
|
||||
elseif self.state == "walk" then
|
||||
if math.random(1, 100) <= 30 then
|
||||
self.object:setyaw(self.object:getyaw()+((math.random(0,360)-180)/180*math.pi))
|
||||
end
|
||||
if self.jump and self.get_velocity(self) <= 0.5 and self.object:getvelocity().y == 0 then
|
||||
local v = self.object:getvelocity()
|
||||
v.y = 5
|
||||
self.object:setvelocity(v)
|
||||
end
|
||||
self:set_animation("walk")
|
||||
self.set_velocity(self, self.walk_velocity)
|
||||
if math.random(1, 100) <= 30 then
|
||||
self.set_velocity(self, 0)
|
||||
self.state = "stand"
|
||||
self:set_animation("stand")
|
||||
end
|
||||
elseif self.state == "attack" and self.attack_type == "dogfight" then
|
||||
if not self.attack.player or not self.attack.player:getpos() then
|
||||
print("stop attacking")
|
||||
self.state = "stand"
|
||||
self:set_animation("stand")
|
||||
return
|
||||
end
|
||||
local s = self.object:getpos()
|
||||
local p = self.attack.player:getpos()
|
||||
local dist = ((p.x-s.x)^2 + (p.y-s.y)^2 + (p.z-s.z)^2)^0.5
|
||||
if dist > self.view_range or self.attack.player:get_hp() <= 0 then
|
||||
self.state = "stand"
|
||||
self.v_start = false
|
||||
self.set_velocity(self, 0)
|
||||
self.attack = {player=nil, dist=nil}
|
||||
self:set_animation("stand")
|
||||
return
|
||||
else
|
||||
self.attack.dist = dist
|
||||
end
|
||||
|
||||
local vec = {x=p.x-s.x, y=p.y-s.y, z=p.z-s.z}
|
||||
local yaw = math.atan(vec.z/vec.x)+math.pi/2
|
||||
if self.drawtype == "side" then
|
||||
yaw = yaw+(math.pi/2)
|
||||
end
|
||||
if p.x > s.x then
|
||||
yaw = yaw+math.pi
|
||||
end
|
||||
self.object:setyaw(yaw)
|
||||
if self.attack.dist > 2 then
|
||||
if not self.v_start then
|
||||
self.v_start = true
|
||||
self.set_velocity(self, self.run_velocity)
|
||||
else
|
||||
if self.jump and self.get_velocity(self) <= 0.5 and self.object:getvelocity().y == 0 then
|
||||
local v = self.object:getvelocity()
|
||||
v.y = 5
|
||||
self.object:setvelocity(v)
|
||||
end
|
||||
self.set_velocity(self, self.run_velocity)
|
||||
end
|
||||
self:set_animation("run")
|
||||
else
|
||||
self.set_velocity(self, 0)
|
||||
self:set_animation("punch")
|
||||
self.v_start = false
|
||||
if self.timer > 1 then
|
||||
self.timer = 0
|
||||
local p2 = p
|
||||
local s2 = s
|
||||
p2.y = p2.y + 1.5
|
||||
s2.y = s2.y + 1.5
|
||||
if minetest.line_of_sight(p2,s2) == true then
|
||||
if self.sounds and self.sounds.attack then
|
||||
minetest.sound_play(self.sounds.attack, {object = self.object})
|
||||
end
|
||||
self.attack.player:punch(self.object, 1.0, {
|
||||
full_punch_interval=1.0,
|
||||
damage_groups = {fleshy=self.damage}
|
||||
}, vec)
|
||||
if self.attack.player:get_hp() <= 0 then
|
||||
self.state = "stand"
|
||||
self:set_animation("stand")
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
elseif self.state == "attack" and self.attack_type == "shoot" then
|
||||
if not self.attack.player or not self.attack.player:is_player() then
|
||||
self.state = "stand"
|
||||
self:set_animation("stand")
|
||||
return
|
||||
end
|
||||
local s = self.object:getpos()
|
||||
local p = self.attack.player:getpos()
|
||||
p.y = p.y - .5
|
||||
s.y = s.y + .5
|
||||
local dist = ((p.x-s.x)^2 + (p.y-s.y)^2 + (p.z-s.z)^2)^0.5
|
||||
if dist > self.view_range or self.attack.player:get_hp() <= 0 then
|
||||
self.state = "stand"
|
||||
self.v_start = false
|
||||
self.set_velocity(self, 0)
|
||||
if self.type ~= "npc" then
|
||||
self.attack = {player=nil, dist=nil}
|
||||
end
|
||||
self:set_animation("stand")
|
||||
return
|
||||
else
|
||||
self.attack.dist = dist
|
||||
end
|
||||
|
||||
local vec = {x=p.x-s.x, y=p.y-s.y, z=p.z-s.z}
|
||||
local yaw = math.atan(vec.z/vec.x)+math.pi/2
|
||||
if self.drawtype == "side" then
|
||||
yaw = yaw+(math.pi/2)
|
||||
end
|
||||
if p.x > s.x then
|
||||
yaw = yaw+math.pi
|
||||
end
|
||||
self.object:setyaw(yaw)
|
||||
self.set_velocity(self, 0)
|
||||
|
||||
if self.timer > self.shoot_interval and math.random(1, 100) <= 60 then
|
||||
self.timer = 0
|
||||
|
||||
self:set_animation("punch")
|
||||
|
||||
if self.sounds and self.sounds.attack then
|
||||
minetest.sound_play(self.sounds.attack, {object = self.object})
|
||||
end
|
||||
|
||||
local p = self.object:getpos()
|
||||
p.y = p.y + (self.collisionbox[2]+self.collisionbox[5])/2
|
||||
local obj = minetest.add_entity(p, self.arrow)
|
||||
local amount = (vec.x^2+vec.y^2+vec.z^2)^0.5
|
||||
local v = obj:get_luaentity().velocity
|
||||
vec.y = vec.y+1
|
||||
vec.x = vec.x*v/amount
|
||||
vec.y = vec.y*v/amount
|
||||
vec.z = vec.z*v/amount
|
||||
obj:setvelocity(vec)
|
||||
end
|
||||
end
|
||||
end,
|
||||
|
||||
on_activate = function(self, staticdata, dtime_s)
|
||||
-- reset HP
|
||||
local pos = self.object:getpos()
|
||||
local distance_rating = ( ( get_distance({x=0,y=0,z=0},pos) ) / 20000 )
|
||||
local newHP = self.hp_min + math.floor( self.hp_max * distance_rating )
|
||||
self.object:set_hp( newHP )
|
||||
|
||||
self.object:set_armor_groups({fleshy=self.armor})
|
||||
self.object:setacceleration({x=0, y=-10, z=0})
|
||||
self.state = "stand"
|
||||
self.object:setvelocity({x=0, y=self.object:getvelocity().y, z=0})
|
||||
self.object:setyaw(math.random(1, 360)/180*math.pi)
|
||||
if self.type == "monster" and minetest.setting_getbool("only_peaceful_mobs") then
|
||||
self.object:remove()
|
||||
end
|
||||
if self.type ~= "npc" then
|
||||
self.lifetimer = 600 - dtime_s
|
||||
end
|
||||
if staticdata then
|
||||
local tmp = minetest.deserialize(staticdata)
|
||||
if tmp and tmp.lifetimer then
|
||||
self.lifetimer = tmp.lifetimer - dtime_s
|
||||
end
|
||||
if tmp and tmp.tamed then
|
||||
self.tamed = tmp.tamed
|
||||
end
|
||||
--[[if tmp and tmp.textures then
|
||||
self.object:set_properties(tmp.textures)
|
||||
end]]
|
||||
end
|
||||
if self.lifetimer <= 0 and not self.tamed and self.type ~= "npc" then
|
||||
self.object:remove()
|
||||
end
|
||||
end,
|
||||
|
||||
get_staticdata = function(self)
|
||||
local tmp = {
|
||||
lifetimer = self.lifetimer,
|
||||
tamed = self.tamed,
|
||||
textures = { textures = self.textures },
|
||||
}
|
||||
return minetest.serialize(tmp)
|
||||
end,
|
||||
|
||||
on_punch = function(self, hitter, tflp, tool_capabilities, dir)
|
||||
|
||||
process_weapon(hitter,tflp,tool_capabilities)
|
||||
|
||||
local pos = self.object:getpos()
|
||||
if self.object:get_hp() <= 0 then
|
||||
if hitter and hitter:is_player() and hitter:get_inventory() then
|
||||
for _,drop in ipairs(self.drops) do
|
||||
if math.random(1, drop.chance) == 1 then
|
||||
local d = ItemStack(drop.name.." "..math.random(drop.min, drop.max))
|
||||
default.drop_item(pos,d)
|
||||
end
|
||||
end
|
||||
|
||||
if self.sounds.death ~= nil then
|
||||
minetest.sound_play(self.sounds.death,{
|
||||
object = self.object,
|
||||
})
|
||||
end
|
||||
if minetest.get_modpath("skills") and minetest.get_modpath("experience") then
|
||||
-- DROP experience
|
||||
local distance_rating = ( ( get_distance({x=0,y=0,z=0},pos) ) / ( skills.get_player_level(hitter:get_player_name()).level * 1000 ) )
|
||||
local emax = math.floor( self.exp_min + ( distance_rating * self.exp_max ) )
|
||||
local expGained = math.random(self.exp_min, emax)
|
||||
skills.add_exp(hitter:get_player_name(),expGained)
|
||||
local expStack = experience.exp_to_items(expGained)
|
||||
for _,stack in ipairs(expStack) do
|
||||
default.drop_item(pos,stack)
|
||||
end
|
||||
end
|
||||
|
||||
-- see if there are any NPCs to shower you with rewards
|
||||
if self.type ~= "npc" then
|
||||
local inradius = minetest.get_objects_inside_radius(hitter:getpos(),10)
|
||||
for _, oir in pairs(inradius) do
|
||||
local obj = oir:get_luaentity()
|
||||
if obj then
|
||||
if obj.type == "npc" and obj.rewards ~= nil then
|
||||
local yaw = nil
|
||||
local lp = hitter:getpos()
|
||||
local s = obj.object:getpos()
|
||||
local vec = {x=lp.x-s.x, y=1, z=lp.z-s.z}
|
||||
yaw = math.atan(vec.z/vec.x)+math.pi/2
|
||||
if self.drawtype == "side" then
|
||||
yaw = yaw+(math.pi/2)
|
||||
end
|
||||
if lp.x > s.x then
|
||||
yaw = yaw+math.pi
|
||||
end
|
||||
obj.object:setyaw(yaw)
|
||||
local x = math.sin(yaw) * -2
|
||||
local z = math.cos(yaw) * 2
|
||||
acc = {x=x, y=-5, z=z}
|
||||
for _, r in pairs(obj.rewards) do
|
||||
if math.random(0,100) < r.chance then
|
||||
default.drop_item(obj.object:getpos(),r.item, vec, acc)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
blood_particles(pos,self.blood_offset,self.blood_amount,self.blood_texture)
|
||||
|
||||
-- knock back effect, adapted from blockmen's pyramids mod
|
||||
-- https://github.com/BlockMen/pyramids
|
||||
local kb = self.knock_back
|
||||
local r = self.recovery_time
|
||||
|
||||
if tflp < tool_capabilities.full_punch_interval then
|
||||
kb = kb * ( tflp / tool_capabilities.full_punch_interval )
|
||||
r = r * ( tflp / tool_capabilities.full_punch_interval )
|
||||
end
|
||||
|
||||
local ykb=2
|
||||
local v = self.object:getvelocity()
|
||||
if v.y ~= 0 then
|
||||
ykb = 0
|
||||
end
|
||||
|
||||
self.object:setvelocity({x=dir.x*kb,y=ykb,z=dir.z*kb})
|
||||
self.pause_timer = r
|
||||
|
||||
-- attack puncher and call other mobs for help
|
||||
if self.passive == false then
|
||||
if self.state ~= "attack" then
|
||||
self.do_attack(self,hitter,1)
|
||||
end
|
||||
-- alert other NPCs to the attack
|
||||
local inradius = minetest.get_objects_inside_radius(hitter:getpos(),5)
|
||||
for _, oir in pairs(inradius) do
|
||||
local obj = oir:get_luaentity()
|
||||
if obj then
|
||||
if obj.group_attack == true and obj.state ~= "attack" then
|
||||
obj.do_attack(obj,hitter,1)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
end,
|
||||
|
||||
})
|
||||
end
|
||||
|
||||
mobs.spawning_mobs = {}
|
||||
function mobs:register_spawn(name, nodes, max_light, min_light, chance, active_object_count, max_height, min_dist, max_dist, spawn_func)
|
||||
mobs.spawning_mobs[name] = true
|
||||
minetest.register_abm({
|
||||
nodenames = nodes,
|
||||
--neighbors = {"air"},
|
||||
interval = 30,
|
||||
chance = chance,
|
||||
action = function(pos, node, _, active_object_count_wider)
|
||||
if active_object_count_wider > active_object_count then
|
||||
return
|
||||
end
|
||||
if not mobs.spawning_mobs[name] then
|
||||
return
|
||||
end
|
||||
|
||||
--[[ don't spawn inside of blocks
|
||||
local p2 = pos
|
||||
p2.y = p2.y + 1
|
||||
local p3 = p2
|
||||
p3.y = p3.y + 1
|
||||
if minetest.registered_nodes[minetest.get_node(p2).name].walkable == false or minetest.registered_nodes[minetest.get_node(p3).name].walkable == false then
|
||||
return
|
||||
end]]
|
||||
|
||||
pos.y = pos.y+1
|
||||
if not minetest.get_node_light(pos) then
|
||||
return
|
||||
end
|
||||
if minetest.get_node_light(pos) > max_light then
|
||||
return
|
||||
end
|
||||
if minetest.get_node_light(pos) < min_light then
|
||||
return
|
||||
end
|
||||
if pos.y > max_height then
|
||||
return
|
||||
end
|
||||
|
||||
if minetest.registered_nodes[minetest.get_node(pos).name].walkable == true or minetest.registered_nodes[minetest.get_node(pos).name].walkable == nil then
|
||||
return
|
||||
end
|
||||
|
||||
pos.y = pos.y+1
|
||||
if minetest.registered_nodes[minetest.get_node(pos).name].walkable == true or minetest.registered_nodes[minetest.get_node(pos).name].walkable == nil then
|
||||
return
|
||||
end
|
||||
|
||||
if min_dist == nil then
|
||||
min_dist = {x=-1,z=-1}
|
||||
end
|
||||
if max_dist == nil then
|
||||
max_dist = {x=33000,z=33000}
|
||||
end
|
||||
|
||||
if math.abs(pos.x) < min_dist.x or math.abs(pos.z) < min_dist.z then
|
||||
return
|
||||
end
|
||||
|
||||
if math.abs(pos.x) > max_dist.x or math.abs(pos.z) > max_dist.z then
|
||||
return
|
||||
end
|
||||
|
||||
if spawn_func and not spawn_func(pos, node) then
|
||||
return
|
||||
end
|
||||
|
||||
if minetest.setting_getbool("display_mob_spawn") then
|
||||
minetest.chat_send_all("[mobs] Add "..name.." at "..minetest.pos_to_string(pos))
|
||||
end
|
||||
local mob = minetest.add_entity(pos, name)
|
||||
|
||||
-- setup the hp, armor, drops, etc... for this specific mob
|
||||
local distance_rating = ( ( get_distance({x=0,y=0,z=0},pos) ) / 15000 )
|
||||
if mob then
|
||||
mob = mob:get_luaentity()
|
||||
local newHP = mob.hp_min + math.floor( mob.hp_max * distance_rating )
|
||||
mob.object:set_hp( newHP )
|
||||
end
|
||||
|
||||
end
|
||||
})
|
||||
end
|
||||
|
||||
function mobs:register_arrow(name, def)
|
||||
minetest.register_entity(name, {
|
||||
physical = false,
|
||||
visual = def.visual,
|
||||
visual_size = def.visual_size,
|
||||
textures = def.textures,
|
||||
velocity = def.velocity,
|
||||
hit_player = def.hit_player,
|
||||
hit_node = def.hit_node,
|
||||
|
||||
on_step = function(self, dtime)
|
||||
local pos = self.object:getpos()
|
||||
if minetest.get_node(self.object:getpos()).name ~= "air" then
|
||||
self.hit_node(self, pos, node)
|
||||
self.object:remove()
|
||||
return
|
||||
end
|
||||
pos.y = pos.y-1
|
||||
for _,player in pairs(minetest.get_objects_inside_radius(pos, 1)) do
|
||||
self.hit_player(self, player)
|
||||
self.object:remove()
|
||||
return
|
||||
end
|
||||
end
|
||||
})
|
||||
end
|
||||
|
||||
function get_distance(pos1,pos2)
|
||||
if ( pos1 ~= nil and pos2 ~= nil ) then
|
||||
return math.abs(math.floor(math.sqrt( (pos1.x - pos2.x)^2 + (pos1.z - pos2.z)^2 )))
|
||||
else
|
||||
return 0
|
||||
end
|
||||
end
|
||||
|
||||
blood_particles = function(pos,offset,amount,texture)
|
||||
if amount > 0 and pos ~= nil then
|
||||
local p = pos
|
||||
p.y = p.y + offset
|
||||
minetest.add_particlespawner(
|
||||
amount, --amount
|
||||
0.25, --time
|
||||
{x=p.x-0.2, y=p.y-0.2, z=p.z-0.2}, --minpos
|
||||
{x=p.x+0.2, y=p.y+0.2, z=p.z+0.2}, --maxpos
|
||||
{x=0, y=-2, z=0}, --minvel
|
||||
{x=2, y=2, z=2}, --maxvel
|
||||
{x=-4,y=-4,z=-4}, --minacc
|
||||
{x=4,y=-4,z=4}, --maxacc
|
||||
0.1, --minexptime
|
||||
1, --maxexptime
|
||||
0.5, --minsize
|
||||
1, --maxsize
|
||||
false, --collisiondetection
|
||||
texture --texture
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
function process_weapon(player, time_from_last_punch, tool_capabilities)
|
||||
local weapon = player:get_wielded_item()
|
||||
if tool_capabilities ~= nil then
|
||||
local wear = ( tool_capabilities.full_punch_interval / 75 ) * 65535
|
||||
weapon:add_wear(wear)
|
||||
player:set_wielded_item(weapon)
|
||||
end
|
||||
|
||||
if weapon:get_definition().sounds ~= nil then
|
||||
local s = math.random(0,#weapon:get_definition().sounds)
|
||||
minetest.sound_play(weapon:get_definition().sounds[s], {
|
||||
object=player,
|
||||
})
|
||||
else
|
||||
minetest.sound_play("default_sword_wood", {
|
||||
object = player,
|
||||
})
|
||||
end
|
||||
end
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
default
|
||||
fire
|
|
@ -0,0 +1,37 @@
|
|||
dofile(minetest.get_modpath("mobs").."/api.lua")
|
||||
|
||||
dofile(minetest.get_modpath("mobs").."/npcs/explorer.lua")
|
||||
dofile(minetest.get_modpath("mobs").."/npcs/men.lua")
|
||||
dofile(minetest.get_modpath("mobs").."/npcs/women.lua")
|
||||
|
||||
dofile(minetest.get_modpath("mobs").."/monsters/barbarians.lua")
|
||||
dofile(minetest.get_modpath("mobs").."/monsters/dirtmonster.lua")
|
||||
dofile(minetest.get_modpath("mobs").."/monsters/dungeonmaster.lua")
|
||||
dofile(minetest.get_modpath("mobs").."/monsters/oerkki.lua")
|
||||
dofile(minetest.get_modpath("mobs").."/monsters/sandmonster.lua")
|
||||
dofile(minetest.get_modpath("mobs").."/monsters/spider.lua")
|
||||
dofile(minetest.get_modpath("mobs").."/monsters/stonemonster.lua")
|
||||
dofile(minetest.get_modpath("mobs").."/monsters/treemonster.lua")
|
||||
dofile(minetest.get_modpath("mobs").."/monsters/yeti.lua")
|
||||
|
||||
dofile(minetest.get_modpath("mobs").."/animals/rat.lua")
|
||||
dofile(minetest.get_modpath("mobs").."/animals/sheep.lua")
|
||||
|
||||
-- NPCs and Barbarians to be randomly spawned in villages
|
||||
mobs.npcs = {
|
||||
[0] = "mobs:female1_npc",
|
||||
[1] = "mobs:female2_npc",
|
||||
[2] = "mobs:female3_npc",
|
||||
[3] = "mobs:male1_npc",
|
||||
[4] = "mobs:male2_npc",
|
||||
[5] = "mobs:male3_npc",
|
||||
[6] = "mobs:explorer"
|
||||
}
|
||||
mobs.barbarians = {
|
||||
[0] = "mobs:barbarian1",
|
||||
[1] = "mobs:barbarian2"
|
||||
}
|
||||
|
||||
if minetest.setting_get("log_mods") then
|
||||
minetest.log("action", "mobs loaded")
|
||||
end
|
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 1.0 KiB |
|
@ -0,0 +1,700 @@
|
|||
xof 0303txt 0032
|
||||
|
||||
Frame Root {
|
||||
FrameTransformMatrix {
|
||||
1.000000, 0.000000, 0.000000, 0.000000,
|
||||
0.000000, 0.000000, 1.000000, 0.000000,
|
||||
0.000000, 1.000000,-0.000000, 0.000000,
|
||||
0.000000, 0.000000, 0.000000, 1.000000;;
|
||||
}
|
||||
Frame Cube_004 {
|
||||
FrameTransformMatrix {
|
||||
1.000000, 0.000000, 0.000000, 0.000000,
|
||||
0.000000, 1.000000, 0.000000, 0.000000,
|
||||
0.000000, 0.000000, 1.000000, 0.000000,
|
||||
0.000000, 0.000000,-0.000000, 1.000000;;
|
||||
}
|
||||
Mesh { //Cube_005 Mesh
|
||||
176;
|
||||
0.336296; 1.101631; 1.340231;,
|
||||
1.524099; 1.101631; 1.348138;,
|
||||
1.516191; 1.101631; 2.535941;,
|
||||
0.328389; 1.101631; 2.528034;,
|
||||
0.328389; 1.101631; 2.528034;,
|
||||
0.336296; 1.101631; 1.340231;,
|
||||
0.336296; 1.101631; 1.340231;,
|
||||
0.328389; 1.101631; 2.528034;,
|
||||
1.524099; 1.101631; 1.348138;,
|
||||
1.516191; 1.101631; 2.535941;,
|
||||
1.516191; 1.101631; 2.535941;,
|
||||
1.524099; 1.101631; 1.348138;,
|
||||
1.516191; 1.101631; 2.535941;,
|
||||
0.328389; 1.101631; 2.528034;,
|
||||
0.328389; 1.101631; 2.528034;,
|
||||
1.516191; 1.101631; 2.535941;,
|
||||
0.336296; 1.101631; 1.340231;,
|
||||
1.524099; 1.101631; 1.348138;,
|
||||
1.524099; 1.101631; 1.348138;,
|
||||
0.336296; 1.101631; 1.340231;,
|
||||
-1.564649; 0.817637; 1.334045;,
|
||||
-1.564649; 1.101631; 1.334045;,
|
||||
-1.596119; 1.101631; 2.521457;,
|
||||
-1.596119; 0.817637; 2.521457;,
|
||||
-1.564649; 1.101631; 1.334045;,
|
||||
-0.377237; 1.101631; 1.365515;,
|
||||
-0.408707; 1.101631; 2.552927;,
|
||||
-1.596119; 1.101631; 2.521457;,
|
||||
-0.377237; 1.101631; 1.365515;,
|
||||
-0.377237; 0.817638; 1.365515;,
|
||||
-0.408707; 0.817638; 2.552928;,
|
||||
-0.408707; 1.101631; 2.552927;,
|
||||
-0.377237; 0.817638; 1.365515;,
|
||||
-1.564649; 0.817637; 1.334045;,
|
||||
-1.596119; 0.817637; 2.521457;,
|
||||
-0.408707; 0.817638; 2.552928;,
|
||||
-0.377237; 0.817638; 1.365515;,
|
||||
-0.377237; 1.101631; 1.365515;,
|
||||
-1.564649; 1.101631; 1.334045;,
|
||||
-1.564649; 0.817637; 1.334045;,
|
||||
-1.596119; 0.817637; 2.521457;,
|
||||
-1.596119; 1.101631; 2.521457;,
|
||||
-0.408707; 1.101631; 2.552927;,
|
||||
-0.408707; 0.817638; 2.552928;,
|
||||
0.336296; 0.817638; 1.340231;,
|
||||
0.336296; 1.101631; 1.340231;,
|
||||
0.328389; 1.101631; 2.528034;,
|
||||
0.328389; 0.817638; 2.528034;,
|
||||
1.524099; 1.101631; 1.348138;,
|
||||
1.524099; 0.817637; 1.348139;,
|
||||
1.516192; 0.817637; 2.535942;,
|
||||
1.516191; 1.101631; 2.535941;,
|
||||
1.524099; 0.817637; 1.348139;,
|
||||
0.336296; 0.817638; 1.340231;,
|
||||
0.328389; 0.817638; 2.528034;,
|
||||
1.516192; 0.817637; 2.535942;,
|
||||
1.524099; 0.817637; 1.348139;,
|
||||
1.524099; 1.101631; 1.348138;,
|
||||
0.336296; 1.101631; 1.340231;,
|
||||
0.336296; 0.817638; 1.340231;,
|
||||
0.328389; 0.817638; 2.528034;,
|
||||
0.328389; 1.101631; 2.528034;,
|
||||
1.516191; 1.101631; 2.535941;,
|
||||
1.516192; 0.817637; 2.535942;,
|
||||
-0.117394;-5.732621; 0.182654;,
|
||||
-0.186090;-2.477838; 0.265415;,
|
||||
-0.186090;-2.477838; 0.668304;,
|
||||
-0.117394;-5.732621; 0.448150;,
|
||||
-0.186090;-2.477838; 0.265415;,
|
||||
0.216799;-2.477838; 0.265415;,
|
||||
0.216799;-2.477838; 0.668304;,
|
||||
-0.186090;-2.477838; 0.668304;,
|
||||
0.216799;-2.477838; 0.265415;,
|
||||
0.148102;-5.732621; 0.182654;,
|
||||
0.148102;-5.732621; 0.448150;,
|
||||
0.216799;-2.477838; 0.668304;,
|
||||
0.148102;-5.732621; 0.182654;,
|
||||
-0.117394;-5.732621; 0.182654;,
|
||||
-0.117394;-5.732621; 0.448150;,
|
||||
0.148102;-5.732621; 0.448150;,
|
||||
0.148102;-5.732621; 0.182654;,
|
||||
0.216799;-2.477838; 0.265415;,
|
||||
-0.186090;-2.477838; 0.265415;,
|
||||
-0.117394;-5.732621; 0.182654;,
|
||||
-0.117394;-5.732621; 0.448150;,
|
||||
-0.186090;-2.477838; 0.668304;,
|
||||
0.216799;-2.477838; 0.668304;,
|
||||
0.148102;-5.732621; 0.448150;,
|
||||
-0.933130;-2.573576; 0.130200;,
|
||||
-0.933130; 0.667430; 0.130200;,
|
||||
-0.933130; 0.667430; 2.038438;,
|
||||
-0.933130;-2.573576; 2.038438;,
|
||||
-0.933130; 0.667430; 0.130200;,
|
||||
0.963839; 0.667430; 0.130200;,
|
||||
0.963839; 0.667430; 2.038438;,
|
||||
-0.933130; 0.667430; 2.038438;,
|
||||
0.963839; 0.667430; 0.130200;,
|
||||
0.963839;-2.573576; 0.130200;,
|
||||
0.963839;-2.573576; 2.038438;,
|
||||
0.963839; 0.667430; 2.038438;,
|
||||
0.963839;-2.573576; 0.130200;,
|
||||
-0.933130;-2.573576; 0.130200;,
|
||||
-0.933130;-2.573576; 2.038438;,
|
||||
0.963839;-2.573576; 2.038438;,
|
||||
0.963839;-2.573576; 0.130200;,
|
||||
0.963839; 0.667430; 0.130200;,
|
||||
-0.933130; 0.667430; 0.130200;,
|
||||
-0.933130;-2.573576; 0.130200;,
|
||||
-0.933130;-2.573576; 2.038438;,
|
||||
-0.933130; 0.667430; 2.038438;,
|
||||
0.963839; 0.667430; 2.038438;,
|
||||
0.963839;-2.573576; 2.038438;,
|
||||
-0.694354; 0.619175; 0.175005;,
|
||||
-0.469990; 2.744857; 0.240792;,
|
||||
-0.469990; 2.744857; 1.874725;,
|
||||
-0.694354; 0.619175; 1.814122;,
|
||||
0.015354; 2.744857; 0.240792;,
|
||||
0.500698; 2.744857; 0.240792;,
|
||||
0.500698; 2.744857; 1.874725;,
|
||||
0.015354; 2.744857; 1.874725;,
|
||||
0.500698; 2.744857; 0.240792;,
|
||||
0.725062; 0.619175; 0.175005;,
|
||||
0.725062; 0.619175; 1.814122;,
|
||||
0.500698; 2.744857; 1.874725;,
|
||||
0.015354; 0.619175; 0.175005;,
|
||||
-0.694354; 0.619175; 0.175005;,
|
||||
-0.694354; 0.619175; 1.814122;,
|
||||
0.015354; 0.619175; 1.814122;,
|
||||
0.725062; 0.619175; 0.175005;,
|
||||
0.500698; 2.744857; 0.240792;,
|
||||
0.015354; 2.744857; 0.240792;,
|
||||
0.015354; 0.619175; 0.175005;,
|
||||
-0.694354; 0.619175; 1.814122;,
|
||||
-0.469990; 2.744857; 1.874725;,
|
||||
0.015354; 2.744857; 1.874725;,
|
||||
0.015354; 0.619175; 1.814122;,
|
||||
-0.281961; 2.574486; 0.745273;,
|
||||
-0.281961; 3.169116; 0.745273;,
|
||||
-0.281961; 3.169116; 1.339903;,
|
||||
-0.281961; 2.574486; 1.339903;,
|
||||
-0.281961; 3.169116; 0.745273;,
|
||||
0.312669; 3.169116; 0.745273;,
|
||||
0.312669; 3.169116; 1.339903;,
|
||||
-0.281961; 3.169116; 1.339903;,
|
||||
0.312669; 3.169116; 0.745273;,
|
||||
0.312669; 2.574486; 0.745273;,
|
||||
0.312669; 2.574486; 1.339903;,
|
||||
0.312669; 3.169116; 1.339903;,
|
||||
0.312669; 2.574486; 0.745273;,
|
||||
-0.281961; 2.574486; 0.745273;,
|
||||
-0.281961; 2.574486; 1.339903;,
|
||||
0.312669; 2.574486; 1.339903;,
|
||||
0.312669; 2.574486; 0.745273;,
|
||||
0.312669; 3.169116; 0.745273;,
|
||||
-0.281961; 3.169116; 0.745273;,
|
||||
-0.281961; 2.574486; 0.745273;,
|
||||
-0.281961; 2.574486; 1.339903;,
|
||||
-0.281961; 3.169116; 1.339903;,
|
||||
0.312669; 3.169116; 1.339903;,
|
||||
0.312669; 2.574486; 1.339903;,
|
||||
-0.469990; 2.744857; 0.240792;,
|
||||
0.015354; 2.744857; 0.240792;,
|
||||
0.015354; 2.744857; 1.874725;,
|
||||
-0.469990; 2.744857; 1.874725;,
|
||||
0.725062; 0.619175; 0.175005;,
|
||||
0.015354; 0.619175; 0.175005;,
|
||||
0.015354; 0.619175; 1.814122;,
|
||||
0.725062; 0.619175; 1.814122;,
|
||||
0.015354; 0.619175; 0.175005;,
|
||||
0.015354; 2.744857; 0.240792;,
|
||||
-0.469990; 2.744857; 0.240792;,
|
||||
-0.694354; 0.619175; 0.175005;,
|
||||
0.015354; 0.619175; 1.814122;,
|
||||
0.015354; 2.744857; 1.874725;,
|
||||
0.500698; 2.744857; 1.874725;,
|
||||
0.725062; 0.619175; 1.814122;;
|
||||
44;
|
||||
4;0;1;2;3;,
|
||||
4;4;5;6;7;,
|
||||
4;8;9;10;11;,
|
||||
4;12;13;14;15;,
|
||||
4;16;17;18;19;,
|
||||
4;20;21;22;23;,
|
||||
4;24;25;26;27;,
|
||||
4;28;29;30;31;,
|
||||
4;32;33;34;35;,
|
||||
4;36;37;38;39;,
|
||||
4;40;41;42;43;,
|
||||
4;44;45;46;47;,
|
||||
4;48;49;50;51;,
|
||||
4;52;53;54;55;,
|
||||
4;56;57;58;59;,
|
||||
4;60;61;62;63;,
|
||||
4;64;65;66;67;,
|
||||
4;68;69;70;71;,
|
||||
4;72;73;74;75;,
|
||||
4;76;77;78;79;,
|
||||
4;80;81;82;83;,
|
||||
4;84;85;86;87;,
|
||||
4;88;89;90;91;,
|
||||
4;92;93;94;95;,
|
||||
4;96;97;98;99;,
|
||||
4;100;101;102;103;,
|
||||
4;104;105;106;107;,
|
||||
4;108;109;110;111;,
|
||||
4;112;113;114;115;,
|
||||
4;116;117;118;119;,
|
||||
4;120;121;122;123;,
|
||||
4;124;125;126;127;,
|
||||
4;128;129;130;131;,
|
||||
4;132;133;134;135;,
|
||||
4;136;137;138;139;,
|
||||
4;140;141;142;143;,
|
||||
4;144;145;146;147;,
|
||||
4;148;149;150;151;,
|
||||
4;152;153;154;155;,
|
||||
4;156;157;158;159;,
|
||||
4;160;161;162;163;,
|
||||
4;164;165;166;167;,
|
||||
4;168;169;170;171;,
|
||||
4;172;173;174;175;;
|
||||
MeshNormals { //Cube_005 Normals
|
||||
176;
|
||||
0.000000; 1.000000; 0.000000;,
|
||||
0.000000; 1.000000; 0.000000;,
|
||||
0.000000; 1.000000; 0.000000;,
|
||||
0.000000; 1.000000; 0.000000;,
|
||||
0.000000; 0.000000; 0.000000;,
|
||||
0.000000; 0.000000; 0.000000;,
|
||||
0.000000; 0.000000; 0.000000;,
|
||||
0.000000; 0.000000; 0.000000;,
|
||||
0.000000; 0.000000; 0.000000;,
|
||||
0.000000; 0.000000; 0.000000;,
|
||||
0.000000; 0.000000; 0.000000;,
|
||||
0.000000; 0.000000; 0.000000;,
|
||||
0.000000; 0.000000; 0.000000;,
|
||||
0.000000; 0.000000; 0.000000;,
|
||||
0.000000; 0.000000; 0.000000;,
|
||||
0.000000; 0.000000; 0.000000;,
|
||||
0.000000; 0.000000; 0.000000;,
|
||||
0.000000; 0.000000; 0.000000;,
|
||||
0.000000; 0.000000; 0.000000;,
|
||||
0.000000; 0.000000; 0.000000;,
|
||||
-0.999649; 0.000000;-0.026494;,
|
||||
-0.999649; 0.000000;-0.026494;,
|
||||
-0.999649; 0.000000;-0.026494;,
|
||||
-0.999649; 0.000000;-0.026494;,
|
||||
-0.000000; 1.000000; 0.000000;,
|
||||
-0.000000; 1.000000; 0.000000;,
|
||||
-0.000000; 1.000000; 0.000000;,
|
||||
-0.000000; 1.000000; 0.000000;,
|
||||
0.999649; 0.000001; 0.026494;,
|
||||
0.999649; 0.000001; 0.026494;,
|
||||
0.999649; 0.000001; 0.026494;,
|
||||
0.999649; 0.000001; 0.026494;,
|
||||
0.000000;-1.000000; 0.000000;,
|
||||
0.000000;-1.000000; 0.000000;,
|
||||
0.000000;-1.000000; 0.000000;,
|
||||
0.000000;-1.000000; 0.000000;,
|
||||
0.026494; 0.000000;-0.999649;,
|
||||
0.026494; 0.000000;-0.999649;,
|
||||
0.026494; 0.000000;-0.999649;,
|
||||
0.026494; 0.000000;-0.999649;,
|
||||
-0.026494; 0.000000; 0.999649;,
|
||||
-0.026494; 0.000000; 0.999649;,
|
||||
-0.026494; 0.000000; 0.999649;,
|
||||
-0.026494; 0.000000; 0.999649;,
|
||||
-0.999978;-0.000000;-0.006657;,
|
||||
-0.999978;-0.000000;-0.006657;,
|
||||
-0.999978;-0.000000;-0.006657;,
|
||||
-0.999978;-0.000000;-0.006657;,
|
||||
0.999978; 0.000001; 0.006657;,
|
||||
0.999978; 0.000001; 0.006657;,
|
||||
0.999978; 0.000001; 0.006657;,
|
||||
0.999978; 0.000001; 0.006657;,
|
||||
-0.000000;-1.000000;-0.000000;,
|
||||
-0.000000;-1.000000;-0.000000;,
|
||||
-0.000000;-1.000000;-0.000000;,
|
||||
-0.000000;-1.000000;-0.000000;,
|
||||
0.006657; 0.000000;-0.999978;,
|
||||
0.006657; 0.000000;-0.999978;,
|
||||
0.006657; 0.000000;-0.999978;,
|
||||
0.006657; 0.000000;-0.999978;,
|
||||
-0.006657; 0.000000; 0.999978;,
|
||||
-0.006657; 0.000000; 0.999978;,
|
||||
-0.006657; 0.000000; 0.999978;,
|
||||
-0.006657; 0.000000; 0.999978;,
|
||||
-0.999777;-0.021102; 0.000000;,
|
||||
-0.999777;-0.021102; 0.000000;,
|
||||
-0.999777;-0.021102; 0.000000;,
|
||||
-0.999777;-0.021102; 0.000000;,
|
||||
0.000000; 1.000000;-0.000000;,
|
||||
0.000000; 1.000000;-0.000000;,
|
||||
0.000000; 1.000000;-0.000000;,
|
||||
0.000000; 1.000000;-0.000000;,
|
||||
0.999777;-0.021102; 0.000000;,
|
||||
0.999777;-0.021102; 0.000000;,
|
||||
0.999777;-0.021102; 0.000000;,
|
||||
0.999777;-0.021102; 0.000000;,
|
||||
0.000000;-1.000000; 0.000000;,
|
||||
0.000000;-1.000000; 0.000000;,
|
||||
0.000000;-1.000000; 0.000000;,
|
||||
0.000000;-1.000000; 0.000000;,
|
||||
0.000000; 0.025419;-0.999677;,
|
||||
0.000000; 0.025419;-0.999677;,
|
||||
0.000000; 0.025419;-0.999677;,
|
||||
0.000000; 0.025419;-0.999677;,
|
||||
0.000000;-0.067486; 0.997720;,
|
||||
0.000000;-0.067486; 0.997720;,
|
||||
0.000000;-0.067486; 0.997720;,
|
||||
0.000000;-0.067486; 0.997720;,
|
||||
-1.000000; 0.000000; 0.000000;,
|
||||
-1.000000; 0.000000; 0.000000;,
|
||||
-1.000000; 0.000000; 0.000000;,
|
||||
-1.000000; 0.000000; 0.000000;,
|
||||
0.000000; 1.000000;-0.000000;,
|
||||
0.000000; 1.000000;-0.000000;,
|
||||
0.000000; 1.000000;-0.000000;,
|
||||
0.000000; 1.000000;-0.000000;,
|
||||
1.000000; 0.000000;-0.000000;,
|
||||
1.000000; 0.000000;-0.000000;,
|
||||
1.000000; 0.000000;-0.000000;,
|
||||
1.000000; 0.000000;-0.000000;,
|
||||
0.000000;-1.000000; 0.000000;,
|
||||
0.000000;-1.000000; 0.000000;,
|
||||
0.000000;-1.000000; 0.000000;,
|
||||
0.000000;-1.000000; 0.000000;,
|
||||
-0.000000; 0.000000;-1.000000;,
|
||||
-0.000000; 0.000000;-1.000000;,
|
||||
-0.000000; 0.000000;-1.000000;,
|
||||
-0.000000; 0.000000;-1.000000;,
|
||||
-0.000000; 0.000000; 1.000000;,
|
||||
-0.000000; 0.000000; 1.000000;,
|
||||
-0.000000; 0.000000; 1.000000;,
|
||||
-0.000000; 0.000000; 1.000000;,
|
||||
-0.994476; 0.104966; 0.000000;,
|
||||
-0.994476; 0.104966; 0.000000;,
|
||||
-0.994476; 0.104966; 0.000000;,
|
||||
-0.994476; 0.104966; 0.000000;,
|
||||
0.000000; 1.000000;-0.000000;,
|
||||
0.000000; 1.000000;-0.000000;,
|
||||
0.000000; 1.000000;-0.000000;,
|
||||
0.000000; 1.000000;-0.000000;,
|
||||
0.994476; 0.104966; 0.000000;,
|
||||
0.994476; 0.104966; 0.000000;,
|
||||
0.994476; 0.104966; 0.000000;,
|
||||
0.994476; 0.104966; 0.000000;,
|
||||
0.000000;-1.000000; 0.000000;,
|
||||
0.000000;-1.000000; 0.000000;,
|
||||
0.000000;-1.000000; 0.000000;,
|
||||
0.000000;-1.000000; 0.000000;,
|
||||
0.000000; 0.030934;-0.999521;,
|
||||
0.000000; 0.030934;-0.999521;,
|
||||
0.000000; 0.030934;-0.999521;,
|
||||
0.000000; 0.030934;-0.999521;,
|
||||
0.000000;-0.028498; 0.999594;,
|
||||
0.000000;-0.028498; 0.999594;,
|
||||
0.000000;-0.028498; 0.999594;,
|
||||
0.000000;-0.028498; 0.999594;,
|
||||
-1.000000; 0.000000; 0.000000;,
|
||||
-1.000000; 0.000000; 0.000000;,
|
||||
-1.000000; 0.000000; 0.000000;,
|
||||
-1.000000; 0.000000; 0.000000;,
|
||||
0.000000; 1.000000;-0.000000;,
|
||||
0.000000; 1.000000;-0.000000;,
|
||||
0.000000; 1.000000;-0.000000;,
|
||||
0.000000; 1.000000;-0.000000;,
|
||||
1.000000; 0.000000;-0.000000;,
|
||||
1.000000; 0.000000;-0.000000;,
|
||||
1.000000; 0.000000;-0.000000;,
|
||||
1.000000; 0.000000;-0.000000;,
|
||||
0.000000;-1.000000; 0.000000;,
|
||||
0.000000;-1.000000; 0.000000;,
|
||||
0.000000;-1.000000; 0.000000;,
|
||||
0.000000;-1.000000; 0.000000;,
|
||||
-0.000000; 0.000000;-1.000000;,
|
||||
-0.000000; 0.000000;-1.000000;,
|
||||
-0.000000; 0.000000;-1.000000;,
|
||||
-0.000000; 0.000000;-1.000000;,
|
||||
-0.000000; 0.000000; 1.000000;,
|
||||
-0.000000; 0.000000; 1.000000;,
|
||||
-0.000000; 0.000000; 1.000000;,
|
||||
-0.000000; 0.000000; 1.000000;,
|
||||
0.000000; 1.000000;-0.000000;,
|
||||
0.000000; 1.000000;-0.000000;,
|
||||
0.000000; 1.000000;-0.000000;,
|
||||
0.000000; 1.000000;-0.000000;,
|
||||
0.000000;-1.000000; 0.000000;,
|
||||
0.000000;-1.000000; 0.000000;,
|
||||
0.000000;-1.000000; 0.000000;,
|
||||
0.000000;-1.000000; 0.000000;,
|
||||
0.000000; 0.030934;-0.999521;,
|
||||
0.000000; 0.030934;-0.999521;,
|
||||
0.000000; 0.030934;-0.999521;,
|
||||
0.000000; 0.030934;-0.999521;,
|
||||
0.000000;-0.028498; 0.999594;,
|
||||
0.000000;-0.028498; 0.999594;,
|
||||
0.000000;-0.028498; 0.999594;,
|
||||
0.000000;-0.028498; 0.999594;;
|
||||
44;
|
||||
4;0;1;2;3;,
|
||||
4;4;5;6;7;,
|
||||
4;8;9;10;11;,
|
||||
4;12;13;14;15;,
|
||||
4;16;17;18;19;,
|
||||
4;20;21;22;23;,
|
||||
4;24;25;26;27;,
|
||||
4;28;29;30;31;,
|
||||
4;32;33;34;35;,
|
||||
4;36;37;38;39;,
|
||||
4;40;41;42;43;,
|
||||
4;44;45;46;47;,
|
||||
4;48;49;50;51;,
|
||||
4;52;53;54;55;,
|
||||
4;56;57;58;59;,
|
||||
4;60;61;62;63;,
|
||||
4;64;65;66;67;,
|
||||
4;68;69;70;71;,
|
||||
4;72;73;74;75;,
|
||||
4;76;77;78;79;,
|
||||
4;80;81;82;83;,
|
||||
4;84;85;86;87;,
|
||||
4;88;89;90;91;,
|
||||
4;92;93;94;95;,
|
||||
4;96;97;98;99;,
|
||||
4;100;101;102;103;,
|
||||
4;104;105;106;107;,
|
||||
4;108;109;110;111;,
|
||||
4;112;113;114;115;,
|
||||
4;116;117;118;119;,
|
||||
4;120;121;122;123;,
|
||||
4;124;125;126;127;,
|
||||
4;128;129;130;131;,
|
||||
4;132;133;134;135;,
|
||||
4;136;137;138;139;,
|
||||
4;140;141;142;143;,
|
||||
4;144;145;146;147;,
|
||||
4;148;149;150;151;,
|
||||
4;152;153;154;155;,
|
||||
4;156;157;158;159;,
|
||||
4;160;161;162;163;,
|
||||
4;164;165;166;167;,
|
||||
4;168;169;170;171;,
|
||||
4;172;173;174;175;;
|
||||
} //End of Cube_005 Normals
|
||||
MeshMaterialList { //Cube_005 Material List
|
||||
1;
|
||||
44;
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0;;
|
||||
Material Material_001 {
|
||||
0.640000; 0.640000; 0.640000; 1.000000;;
|
||||
96.078431;
|
||||
0.500000; 0.500000; 0.500000;;
|
||||
0.000000; 0.000000; 0.000000;;
|
||||
TextureFilename {"UV_rat.png";}
|
||||
}
|
||||
} //End of Cube_005 Material List
|
||||
MeshTextureCoords { //Cube_005 UV Coordinates
|
||||
176;
|
||||
0.635817; 0.275819;,
|
||||
0.635817; 0.046728;,
|
||||
0.864908; 0.046728;,
|
||||
0.864908; 0.275819;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.864346; 0.986031;,
|
||||
0.783570; 0.986031;,
|
||||
0.783570; 0.648180;,
|
||||
0.864346; 0.648180;,
|
||||
0.635817; 0.274669;,
|
||||
0.635817; 0.045578;,
|
||||
0.864908; 0.045578;,
|
||||
0.864908; 0.274669;,
|
||||
0.863901; 0.987104;,
|
||||
0.783126; 0.987104;,
|
||||
0.783126; 0.649254;,
|
||||
0.863901; 0.649254;,
|
||||
0.991231; 0.987104;,
|
||||
0.653381; 0.987104;,
|
||||
0.653381; 0.649254;,
|
||||
0.991232; 0.649254;,
|
||||
0.991232; 0.777658;,
|
||||
0.991232; 0.858433;,
|
||||
0.653381; 0.858433;,
|
||||
0.653381; 0.777658;,
|
||||
0.655529; 0.859063;,
|
||||
0.655529; 0.778288;,
|
||||
0.993379; 0.778288;,
|
||||
0.993379; 0.859063;,
|
||||
0.335443; 0.861158;,
|
||||
0.265926; 0.861158;,
|
||||
0.265926; 0.570397;,
|
||||
0.335443; 0.570397;,
|
||||
0.334205; 0.859816;,
|
||||
0.264688; 0.859816;,
|
||||
0.264688; 0.569055;,
|
||||
0.334205; 0.569055;,
|
||||
0.444367; 0.858474;,
|
||||
0.153606; 0.858474;,
|
||||
0.153606; 0.567713;,
|
||||
0.444367; 0.567713;,
|
||||
0.333996; 0.859816;,
|
||||
0.264479; 0.859816;,
|
||||
0.264479; 0.569055;,
|
||||
0.333996; 0.569055;,
|
||||
0.264228; 0.568595;,
|
||||
0.333745; 0.568595;,
|
||||
0.333745; 0.859357;,
|
||||
0.264228; 0.859357;,
|
||||
0.910309; 0.067094;,
|
||||
0.990888; 0.067068;,
|
||||
0.991634; 0.077574;,
|
||||
0.911094; 0.077574;,
|
||||
0.910309; 0.024149;,
|
||||
0.921538; 0.024149;,
|
||||
0.921538; 0.035379;,
|
||||
0.910309; 0.035379;,
|
||||
0.990708; 0.067037;,
|
||||
0.910309; 0.067041;,
|
||||
0.910896; 0.056534;,
|
||||
0.991418; 0.056534;,
|
||||
0.928966; 0.035379;,
|
||||
0.921565; 0.035379;,
|
||||
0.921565; 0.027979;,
|
||||
0.928966; 0.027979;,
|
||||
0.910595; 0.035408;,
|
||||
0.990869; 0.035406;,
|
||||
0.990583; 0.045937;,
|
||||
0.910309; 0.045939;,
|
||||
0.910597; 0.045966;,
|
||||
0.990951; 0.045966;,
|
||||
0.990662; 0.056507;,
|
||||
0.910309; 0.056507;,
|
||||
0.461795; 0.725720;,
|
||||
0.002369; 0.725720;,
|
||||
0.002369; 0.455219;,
|
||||
0.461795; 0.455219;,
|
||||
0.728915; 0.630399;,
|
||||
0.460011; 0.630399;,
|
||||
0.460011; 0.359898;,
|
||||
0.728915; 0.359898;,
|
||||
0.459622; 0.999805;,
|
||||
0.000195; 0.999805;,
|
||||
0.000195; 0.729304;,
|
||||
0.459622; 0.729304;,
|
||||
0.990155; 1.001469;,
|
||||
0.721251; 1.001469;,
|
||||
0.721251; 0.730968;,
|
||||
0.990155; 0.730968;,
|
||||
0.000987; 0.351616;,
|
||||
0.460413; 0.351616;,
|
||||
0.460413; 0.620520;,
|
||||
0.000987; 0.620520;,
|
||||
0.728915; 0.540378;,
|
||||
0.728915; 0.999805;,
|
||||
0.460011; 0.999805;,
|
||||
0.460011; 0.540378;,
|
||||
0.006594; 0.353635;,
|
||||
0.507556; 0.369053;,
|
||||
0.507556; 0.596553;,
|
||||
0.006594; 0.737794;,
|
||||
0.752538; 0.533913;,
|
||||
0.752538; 0.647662;,
|
||||
0.525038; 0.647662;,
|
||||
0.525038; 0.533913;,
|
||||
0.509703; 0.731028;,
|
||||
0.008741; 0.746446;,
|
||||
0.008741; 0.362287;,
|
||||
0.509703; 0.503529;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.003201; 0.349292;,
|
||||
0.501634; 0.401876;,
|
||||
0.501634; 0.515626;,
|
||||
0.003201; 0.515626;,
|
||||
0.529333; 0.186216;,
|
||||
0.171158; 0.150188;,
|
||||
0.171083; 0.071516;,
|
||||
0.529224; 0.071176;,
|
||||
0.636995; 0.428681;,
|
||||
0.636995; 0.545208;,
|
||||
0.520468; 0.545208;,
|
||||
0.520468; 0.428681;,
|
||||
0.340480; 0.361873;,
|
||||
0.452832; 0.361873;,
|
||||
0.452832; 0.474224;,
|
||||
0.340480; 0.474224;,
|
||||
0.453577; 0.475130;,
|
||||
0.341226; 0.475130;,
|
||||
0.341226; 0.362779;,
|
||||
0.453577; 0.362779;,
|
||||
0.453737; 0.472732;,
|
||||
0.341386; 0.472732;,
|
||||
0.341386; 0.360381;,
|
||||
0.453737; 0.360381;,
|
||||
0.454483; 0.362033;,
|
||||
0.454483; 0.474384;,
|
||||
0.342132; 0.474384;,
|
||||
0.342132; 0.362033;,
|
||||
0.342132; 0.472732;,
|
||||
0.342132; 0.360381;,
|
||||
0.454483; 0.360381;,
|
||||
0.454483; 0.472732;,
|
||||
0.752538; 0.420163;,
|
||||
0.752538; 0.533913;,
|
||||
0.525038; 0.533913;,
|
||||
0.525038; 0.420163;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.003201; 0.515626;,
|
||||
0.501634; 0.515626;,
|
||||
0.501634; 0.629375;,
|
||||
0.003201; 0.681959;,
|
||||
0.529223; 0.070318;,
|
||||
0.171082; 0.070658;,
|
||||
0.171157; 0.149330;,
|
||||
0.529332; 0.185358;;
|
||||
} //End of Cube_005 UV Coordinates
|
||||
} //End of Cube_005 Mesh
|
||||
} //End of Cube_004
|
||||
} //End of Root Frame
|
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 7.3 KiB |
|
@ -0,0 +1,99 @@
|
|||
mobs:register_mob("mobs:barbarian1", {
|
||||
type = "monster",
|
||||
hp_min = 20,
|
||||
hp_max = 65,
|
||||
exp_min = 10,
|
||||
exp_max = 65,
|
||||
collisionbox = {-0.35,-1.0,-0.35, 0.35,0.8,0.35},
|
||||
visual = "mesh",
|
||||
mesh = "3d_armor_character.x",
|
||||
textures = {"mobs_barbarian1.png",
|
||||
"3d_armor_trans.png",
|
||||
"3d_armor_trans.png",
|
||||
},
|
||||
visual_size = {x=1, y=1},
|
||||
makes_footstep_sound = true,
|
||||
view_range = 10,
|
||||
walk_velocity = 2,
|
||||
run_velocity = 4,
|
||||
damage = 4,
|
||||
drops = { },
|
||||
armor = 150,
|
||||
drawtype = "front",
|
||||
water_damage = 1,
|
||||
lava_damage = 5,
|
||||
light_damage = 0,
|
||||
on_rightclick = nil,
|
||||
attack_type = "dogfight",
|
||||
animation = {
|
||||
speed_normal = 30,
|
||||
speed_run = 30,
|
||||
stand_start = 0,
|
||||
stand_end = 79,
|
||||
walk_start = 168,
|
||||
walk_end = 187,
|
||||
run_start = 168,
|
||||
run_end = 187,
|
||||
punch_start = 200,
|
||||
punch_end = 219,
|
||||
},
|
||||
jump = true,
|
||||
sounds = {
|
||||
war_cry = "mobs_barbarian_yell2",
|
||||
death = "mobs_barbarian_death",
|
||||
attack = "default_punch2",
|
||||
},
|
||||
step=0.5,
|
||||
blood_amount = 35,
|
||||
blood_offset = 0.25,
|
||||
})
|
||||
|
||||
mobs:register_mob("mobs:barbarian2", {
|
||||
type = "monster",
|
||||
hp_min = 20,
|
||||
hp_max = 65,
|
||||
exp_min = 10,
|
||||
exp_max = 65,
|
||||
collisionbox = {-0.35,-1.0,-0.35, 0.35,0.8,0.35},
|
||||
visual = "mesh",
|
||||
mesh = "3d_armor_character.x",
|
||||
textures = {"mobs_barbarian2.png",
|
||||
"3d_armor_trans.png",
|
||||
"3d_armor_trans.png",
|
||||
},
|
||||
visual_size = {x=1, y=1},
|
||||
makes_footstep_sound = true,
|
||||
view_range = 10,
|
||||
walk_velocity = 2,
|
||||
run_velocity = 4,
|
||||
damage = 4,
|
||||
drops = { },
|
||||
armor = 150,
|
||||
drawtype = "front",
|
||||
water_damage = 1,
|
||||
lava_damage = 5,
|
||||
light_damage = 0,
|
||||
on_rightclick = nil,
|
||||
attack_type = "dogfight",
|
||||
animation = {
|
||||
speed_normal = 30,
|
||||
speed_run = 30,
|
||||
stand_start = 0,
|
||||
stand_end = 79,
|
||||
walk_start = 168,
|
||||
walk_end = 187,
|
||||
run_start = 168,
|
||||
run_end = 187,
|
||||
punch_start = 200,
|
||||
punch_end = 219,
|
||||
},
|
||||
jump = true,
|
||||
sounds = {
|
||||
war_cry = "mobs_barbarian_yell1",
|
||||
death = "mobs_barbarian_death",
|
||||
attack = "default_punch2",
|
||||
},
|
||||
step=0.5,
|
||||
blood_amount = 35,
|
||||
blood_offset = 0.25,
|
||||
})
|
|
@ -0,0 +1,106 @@
|
|||
mobs:register_mob("mobs:dirt_monster", {
|
||||
type = "monster",
|
||||
hp_min = 3,
|
||||
hp_max = 27,
|
||||
exp_min = 0,
|
||||
exp_max = 35,
|
||||
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.9, 0.4},
|
||||
visual = "mesh",
|
||||
mesh = "mobs_stone_monster.x",
|
||||
textures = {"mobs_dirt_monster.png"},
|
||||
visual_size = {x=3, y=2.6},
|
||||
makes_footstep_sound = true,
|
||||
view_range = 15,
|
||||
walk_velocity = 1.25,
|
||||
run_velocity = 3.75,
|
||||
damage = 2,
|
||||
drops = {
|
||||
{name = "default:dirt",
|
||||
chance = 1,
|
||||
min = 3,
|
||||
max = 5,},
|
||||
},
|
||||
armor = 100,
|
||||
drawtype = "front",
|
||||
water_damage = 1,
|
||||
lava_damage = 5,
|
||||
light_damage = 2,
|
||||
on_rightclick = nil,
|
||||
attack_type = "dogfight",
|
||||
animation = {
|
||||
speed_normal = 15,
|
||||
speed_run = 15,
|
||||
stand_start = 0,
|
||||
stand_end = 14,
|
||||
walk_start = 15,
|
||||
walk_end = 38,
|
||||
run_start = 40,
|
||||
run_end = 63,
|
||||
punch_start = 40,
|
||||
punch_end = 63,
|
||||
},
|
||||
jump = true,
|
||||
sounds = {
|
||||
attack = "mob_attack",
|
||||
death = "mob_death",
|
||||
},
|
||||
step = 0.5,
|
||||
blood_amount=30,
|
||||
blood_offset=.25,
|
||||
blood_texture = "default_dirt.png",
|
||||
})
|
||||
|
||||
mobs:register_mob("mobs:dirt_monster2", {
|
||||
type = "monster",
|
||||
hp_min = 3,
|
||||
hp_max = 27,
|
||||
exp_min = 0,
|
||||
exp_max = 35,
|
||||
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.9, 0.4},
|
||||
visual = "mesh",
|
||||
mesh = "mobs_stone_monster.x",
|
||||
textures = {"mobs_dirt_monster.png"},
|
||||
visual_size = {x=3, y=2.6},
|
||||
makes_footstep_sound = true,
|
||||
view_range = 15,
|
||||
walk_velocity = 1.25,
|
||||
run_velocity = 3.75,
|
||||
damage = 2,
|
||||
drops = {
|
||||
{name = "default:dirt",
|
||||
chance = 1,
|
||||
min = 3,
|
||||
max = 5,},
|
||||
},
|
||||
armor = 100,
|
||||
drawtype = "front",
|
||||
water_damage = 1,
|
||||
lava_damage = 5,
|
||||
light_damage = 0,
|
||||
on_rightclick = nil,
|
||||
attack_type = "dogfight",
|
||||
animation = {
|
||||
speed_normal = 15,
|
||||
speed_run = 15,
|
||||
stand_start = 0,
|
||||
stand_end = 14,
|
||||
walk_start = 15,
|
||||
walk_end = 38,
|
||||
run_start = 40,
|
||||
run_end = 63,
|
||||
punch_start = 40,
|
||||
punch_end = 63,
|
||||
},
|
||||
jump = true,
|
||||
sounds = {
|
||||
attack = "mob_attack",
|
||||
death = "mob_death1",
|
||||
},
|
||||
step = 0.5,
|
||||
blood_amount=30,
|
||||
blood_offset=.25,
|
||||
blood_texture = "default_dirt.png",
|
||||
})
|
||||
|
||||
mobs:register_spawn("mobs:dirt_monster", {"default:dirt_with_grass"}, 3, -1, 5000, 3, 31000)
|
||||
mobs:register_spawn("mobs:dirt_monster2", {"mg:dirt_with_dry_grass"}, 20, -1, 3000, 4, 31000)
|
|
@ -0,0 +1,95 @@
|
|||
mobs:register_mob("mobs:dungeon_master", {
|
||||
type = "monster",
|
||||
hp_min = 12,
|
||||
hp_max = 47,
|
||||
exp_min=5,
|
||||
exp_max=100,
|
||||
collisionbox = {-0.7, -0.01, -0.7, 0.7, 2.6, 0.7},
|
||||
visual = "mesh",
|
||||
mesh = "mobs_dungeon_master.x",
|
||||
textures = {"mobs_dungeon_master.png"},
|
||||
visual_size = {x=8, y=8},
|
||||
makes_footstep_sound = true,
|
||||
view_range = 15,
|
||||
walk_velocity = 1,
|
||||
run_velocity = 3,
|
||||
damage = 4,
|
||||
drops = {
|
||||
{name = "default:mese",
|
||||
chance = 100,
|
||||
min = 1,
|
||||
max = 2,},
|
||||
},
|
||||
armor = 60,
|
||||
drawtype = "front",
|
||||
water_damage = 1,
|
||||
lava_damage = 1,
|
||||
light_damage = 0,
|
||||
on_rightclick = nil,
|
||||
attack_type = "shoot",
|
||||
arrow = "mobs:fireball",
|
||||
shoot_interval = 2.5,
|
||||
sounds = {
|
||||
attack = "mobs_fireball",
|
||||
},
|
||||
animation = {
|
||||
stand_start = 0,
|
||||
stand_end = 19,
|
||||
walk_start = 20,
|
||||
walk_end = 35,
|
||||
punch_start = 36,
|
||||
punch_end = 48,
|
||||
speed_normal = 15,
|
||||
speed_run = 15,
|
||||
},
|
||||
jump = true,
|
||||
step=0.5,
|
||||
})
|
||||
mobs:register_spawn("mobs:dungeon_master", {"default:stone"}, 3, -1, 7000, 1, -50)
|
||||
|
||||
mobs:register_arrow("mobs:fireball", {
|
||||
visual = "sprite",
|
||||
visual_size = {x=1, y=1},
|
||||
--textures = {{name="mobs_fireball.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=0.5}}}, FIXME
|
||||
textures = {"mobs_fireball.png"},
|
||||
velocity = 5,
|
||||
hit_player = function(self, player)
|
||||
local s = self.object:getpos()
|
||||
local p = player:getpos()
|
||||
local vec = {x=s.x-p.x, y=s.y-p.y, z=s.z-p.z}
|
||||
player:punch(self.object, 1.0, {
|
||||
full_punch_interval=1.0,
|
||||
damage_groups = {fleshy=4},
|
||||
}, vec)
|
||||
|
||||
local pos = self.object:getpos()
|
||||
for dx=-1,1 do
|
||||
for dy=-1,1 do
|
||||
for dz=-1,1 do
|
||||
local p = {x=pos.x+dx, y=pos.y+dy, z=pos.z+dz}
|
||||
local n = minetest.env:get_node(pos).name
|
||||
if minetest.registered_nodes[n].groups.flammable or math.random(1, 100) <= 30 then
|
||||
minetest.env:set_node(p, {name="fire:basic_flame"})
|
||||
else
|
||||
minetest.env:remove_node(p)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end,
|
||||
hit_node = function(self, pos, node)
|
||||
for dx=-1,1 do
|
||||
for dy=-2,1 do
|
||||
for dz=-1,1 do
|
||||
local p = {x=pos.x+dx, y=pos.y+dy, z=pos.z+dz}
|
||||
local n = minetest.env:get_node(pos).name
|
||||
if minetest.registered_nodes[n].groups.flammable or math.random(1, 100) <= 30 then
|
||||
minetest.env:set_node(p, {name="fire:basic_flame"})
|
||||
else
|
||||
minetest.env:remove_node(p)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
})
|
|
@ -0,0 +1,47 @@
|
|||
mobs:register_mob("mobs:oerkki", {
|
||||
type = "monster",
|
||||
hp_min = 8,
|
||||
hp_max = 34,
|
||||
exp_min=1,
|
||||
exp_max=88,
|
||||
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.9, 0.4},
|
||||
visual = "mesh",
|
||||
mesh = "mobs_oerkki.x",
|
||||
textures = {"mobs_oerkki.png"},
|
||||
visual_size = {x=5, y=5},
|
||||
makes_footstep_sound = false,
|
||||
view_range = 15,
|
||||
walk_velocity = 1,
|
||||
run_velocity = 3,
|
||||
damage = 4,
|
||||
drops = {},
|
||||
armor = 100,
|
||||
drawtype = "front",
|
||||
light_resistant = true,
|
||||
water_damage = 1,
|
||||
lava_damage = 1,
|
||||
light_damage = 0,
|
||||
attack_type = "dogfight",
|
||||
animation = {
|
||||
stand_start = 0,
|
||||
stand_end = 23,
|
||||
walk_start = 24,
|
||||
walk_end = 36,
|
||||
run_start = 37,
|
||||
run_end = 49,
|
||||
punch_start = 37,
|
||||
punch_end = 49,
|
||||
speed_normal = 15,
|
||||
speed_run = 15,
|
||||
},
|
||||
jump = true,
|
||||
sounds = {
|
||||
random = "mobs_eerie",
|
||||
attack = "mobs_oerkki_attack"
|
||||
},
|
||||
step=0.5,
|
||||
blood_amount = 0,
|
||||
|
||||
})
|
||||
mobs:register_spawn("mobs:oerkki", {"default:stone"}, 3, -1, 7000, 3, -10)
|
||||
mobs:register_spawn("mobs:oerkki", {"default:stone"}, 3, -1, 2000, 3, -100)
|
|
@ -0,0 +1,46 @@
|
|||
mobs:register_mob("mobs:sand_monster", {
|
||||
type = "monster",
|
||||
hp_min = 4,
|
||||
hp_max = 20,
|
||||
exp_min = 1,
|
||||
exp_max = 65,
|
||||
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.9, 0.4},
|
||||
visual = "mesh",
|
||||
mesh = "mobs_sand_monster.x",
|
||||
textures = {"mobs_sand_monster.png"},
|
||||
visual_size = {x=8,y=8},
|
||||
makes_footstep_sound = true,
|
||||
view_range = 15,
|
||||
walk_velocity = 1.5,
|
||||
run_velocity = 4.5,
|
||||
damage = 1,
|
||||
drops = {
|
||||
},
|
||||
light_resistant = true,
|
||||
armor = 100,
|
||||
drawtype = "front",
|
||||
water_damage = 3,
|
||||
lava_damage = 1,
|
||||
light_damage = 0,
|
||||
attack_type = "dogfight",
|
||||
animation = {
|
||||
speed_normal = 15,
|
||||
speed_run = 15,
|
||||
stand_start = 0,
|
||||
stand_end = 39,
|
||||
walk_start = 41,
|
||||
walk_end = 72,
|
||||
run_start = 74,
|
||||
run_end = 105,
|
||||
punch_start = 74,
|
||||
punch_end = 105,
|
||||
},
|
||||
jump = true,
|
||||
sounds = {
|
||||
attack = "mob_attack",
|
||||
death = "mob_death2",
|
||||
},
|
||||
step = 0.5,
|
||||
})
|
||||
mobs:register_spawn("mobs:sand_monster", {"default:sand"}, 20, -1, 8000, 4, 31000)
|
||||
mobs:register_spawn("mobs:sand_monster", {"default:desert_sand"}, 20, -1, 4000, 4, 31000)
|
|
@ -0,0 +1,50 @@
|
|||
mobs:register_mob("mobs:spider",{
|
||||
type = "monster",
|
||||
hp_min = 15,
|
||||
hp_max = 40,
|
||||
exp_min = 3,
|
||||
exp_max = 20,
|
||||
collisionbox = {-0.9, -0.01, -0.7, 0.7, 0.6, 0.7},
|
||||
textures = {"mobs_spider.png"},
|
||||
visual_size = {x=7,y=7},
|
||||
visual = "mesh",
|
||||
mesh = "mobs_spider.x",
|
||||
makes_footstep_sound = true,
|
||||
view_range = 15,
|
||||
walk_velocity = 1,
|
||||
run_velocity = 3,
|
||||
armor = 200,
|
||||
damage = 3,
|
||||
drops = {
|
||||
{name = "farming:string",
|
||||
chance = 70,
|
||||
min = 3,
|
||||
max = 6,},
|
||||
},
|
||||
light_resistant = false,
|
||||
drawtype = "front",
|
||||
water_damage = 5,
|
||||
lava_damage = 5,
|
||||
light_damage = 0,
|
||||
on_rightclick = nil,
|
||||
attack_type = "dogfight",
|
||||
animation = {
|
||||
speed_normal = 15,
|
||||
speed_run = 15,
|
||||
stand_start = 1,
|
||||
stand_end = 1,
|
||||
walk_start = 20,
|
||||
walk_end = 40,
|
||||
run_start = 20,
|
||||
run_end = 40,
|
||||
punch_start = 50,
|
||||
punch_end = 90,
|
||||
},
|
||||
jump = true,
|
||||
sounds = {attack = "mobs_slash_attack",},
|
||||
step = 1,
|
||||
blood_amount = 22,
|
||||
blood_offset = 0.1,
|
||||
})
|
||||
mobs:register_spawn("mobs:spider", {"default:leaves", "default:jungleleaves", "mg:savannaleaves"}, 22, -1, 7000, 4, 31000)
|
||||
mobs:register_spawn("mobs:spider", {"default:leaves", "default:jungleleaves", "mg:savannaleaves"}, 7, -1, 3000, 6, 31000)
|
|
@ -0,0 +1,57 @@
|
|||
mobs:register_mob("mobs:stone_monster", {
|
||||
type = "monster",
|
||||
hp_min = 12,
|
||||
hp_max = 35,
|
||||
exp_min = 3,
|
||||
exp_max = 55,
|
||||
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.9, 0.4},
|
||||
visual = "mesh",
|
||||
mesh = "mobs_stone_monster.x",
|
||||
textures = {"mobs_stone_monster.png"},
|
||||
visual_size = {x=3, y=2.6},
|
||||
makes_footstep_sound = true,
|
||||
view_range = 10,
|
||||
walk_velocity = 0.5,
|
||||
run_velocity = 2,
|
||||
damage = 3,
|
||||
drops = {
|
||||
{name = "default:torch",
|
||||
chance = 2,
|
||||
min = 3,
|
||||
max = 5,},
|
||||
{name = "default:iron_lump",
|
||||
chance=5,
|
||||
min=1,
|
||||
max=2,},
|
||||
{name = "default:coal_lump",
|
||||
chance=3,
|
||||
min=1,
|
||||
max=3,},
|
||||
},
|
||||
light_resistant = true,
|
||||
armor = 80,
|
||||
drawtype = "front",
|
||||
water_damage = 0,
|
||||
lava_damage = 0,
|
||||
light_damage = 0,
|
||||
attack_type = "dogfight",
|
||||
animation = {
|
||||
speed_normal = 15,
|
||||
speed_run = 15,
|
||||
stand_start = 0,
|
||||
stand_end = 14,
|
||||
walk_start = 15,
|
||||
walk_end = 38,
|
||||
run_start = 40,
|
||||
run_end = 63,
|
||||
punch_start = 40,
|
||||
punch_end = 63,
|
||||
},
|
||||
sounds = {
|
||||
attack = "mobs_stone_attack",
|
||||
death = "mobs_stone_death",
|
||||
random = "mobs_stone",
|
||||
},
|
||||
step = 0.5,
|
||||
})
|
||||
mobs:register_spawn("mobs:stone_monster", {"default:stone"}, 3, -1, 3000, 3, 0)
|
|
@ -0,0 +1,59 @@
|
|||
mobs:register_mob("mobs:tree_monster", {
|
||||
type = "monster",
|
||||
hp_min = 7,
|
||||
hp_max = 33,
|
||||
exp_min=2,
|
||||
exp_max=75,
|
||||
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.9, 0.4},
|
||||
visual = "mesh",
|
||||
mesh = "mobs_tree_monster.x",
|
||||
textures = {"mobs_tree_monster.png"},
|
||||
visual_size = {x=4.5,y=4.5},
|
||||
makes_footstep_sound = true,
|
||||
view_range = 15,
|
||||
walk_velocity = 1,
|
||||
run_velocity = 3,
|
||||
damage = 2,
|
||||
drops = {
|
||||
{name = "default:sapling",
|
||||
chance = 3,
|
||||
min = 1,
|
||||
max = 2,},
|
||||
{name = "default:junglesapling",
|
||||
chance = 3,
|
||||
min = 1,
|
||||
max = 2,},
|
||||
{name = "default:apple",
|
||||
chance = 2,
|
||||
min = 1,
|
||||
max=3,
|
||||
},
|
||||
},
|
||||
light_resistant = true,
|
||||
armor = 100,
|
||||
drawtype = "front",
|
||||
water_damage = 1,
|
||||
lava_damage = 5,
|
||||
light_damage = 2,
|
||||
disable_fall_damage = true,
|
||||
attack_type = "dogfight",
|
||||
animation = {
|
||||
speed_normal = 15,
|
||||
speed_run = 15,
|
||||
stand_start = 0,
|
||||
stand_end = 24,
|
||||
walk_start = 25,
|
||||
walk_end = 47,
|
||||
run_start = 48,
|
||||
run_end = 62,
|
||||
punch_start = 48,
|
||||
punch_end = 62,
|
||||
},
|
||||
jump = true,
|
||||
sounds = {
|
||||
attack = "mob_attack",
|
||||
death = "mob_death1",
|
||||
},
|
||||
step = 0.5,
|
||||
})
|
||||
mobs:register_spawn("mobs:tree_monster", {"default:leaves", "default:jungleleaves"}, 3, -1, 7000, 3, 31000)
|
|
@ -0,0 +1,45 @@
|
|||
mobs:register_mob("mobs:snow_monster", {
|
||||
type = "monster",
|
||||
hp_min = 10,
|
||||
hp_max = 35,
|
||||
exp_min = 3,
|
||||
exp_max = 35,
|
||||
collisionbox = {-0.35,-1.0,-0.35, 0.35,0.8,0.35},
|
||||
visual = "mesh",
|
||||
mesh = "character.x",
|
||||
textures = {"mobs_snow_monster.png"},
|
||||
visual_size = {x=1, y=1},
|
||||
makes_footstep_sound = true,
|
||||
view_range = 15,
|
||||
walk_velocity = 1,
|
||||
run_velocity = 3,
|
||||
damage = 2,
|
||||
drops = { },
|
||||
armor = 100,
|
||||
drawtype = "front",
|
||||
water_damage = 1,
|
||||
lava_damage = 5,
|
||||
light_damage = 2,
|
||||
on_rightclick = nil,
|
||||
attack_type = "dogfight",
|
||||
animation = {
|
||||
speed_normal = 30,
|
||||
speed_run = 30,
|
||||
stand_start = 0,
|
||||
stand_end = 79,
|
||||
walk_start = 168,
|
||||
walk_end = 187,
|
||||
run_start = 168,
|
||||
run_end = 187,
|
||||
punch_start = 200,
|
||||
punch_end = 219,
|
||||
},
|
||||
jump = true,
|
||||
sounds = {
|
||||
death = "mobs_yeti_death",
|
||||
random = "mobs_howl",
|
||||
attack = "mobs_slash_attack",
|
||||
},
|
||||
step = 0.5,
|
||||
})
|
||||
mobs:register_spawn("mobs:snow_monster", {"default:snow","default:snow_with_grass"}, 10, -1, 7000, 2, 31000)
|
|
@ -0,0 +1,60 @@
|
|||
mobs:register_mob("mobs:explorer",{
|
||||
type = "npc",
|
||||
hp_min = 30,
|
||||
hp_max = 75,
|
||||
exp_min = 0,
|
||||
exp_max = 0,
|
||||
collisionbox = {-0.35,-1.0,-0.35, 0.35,0.8,0.35},
|
||||
visual = "mesh",
|
||||
mesh = "3d_armor_character.x",
|
||||
textures = {"mobs_explorer.png",
|
||||
"3d_armor_trans.png",
|
||||
minetest.registered_items["default:pick_steel"].inventory_image,
|
||||
},
|
||||
visual_size = {x=1, y=1},
|
||||
makes_footstep_sound = true,
|
||||
view_range = 12,
|
||||
walk_velocity = 1.25,
|
||||
run_velocity = 4.5,
|
||||
damage = 6,
|
||||
drops = { },
|
||||
armor = 150,
|
||||
drawtype = "front",
|
||||
water_damage = 1,
|
||||
lava_damage = 5,
|
||||
light_damage = 0,
|
||||
on_rightclick = function (self, clicker)
|
||||
quests.treasure.tell_story(self.object:getpos())
|
||||
end,
|
||||
walk_chance = 1,
|
||||
attack_type = "dogfight",
|
||||
animation = {
|
||||
speed_normal = 30,
|
||||
speed_run = 30,
|
||||
stand_start = 0,
|
||||
stand_end = 79,
|
||||
walk_start = 168,
|
||||
walk_end = 187,
|
||||
run_start = 168,
|
||||
run_end = 187,
|
||||
punch_start = 200,
|
||||
punch_end = 219,
|
||||
},
|
||||
jump = false,
|
||||
sounds = {
|
||||
war_cry = "mobs_die_yell",
|
||||
death = "default_death",
|
||||
attack = "default_punch2",
|
||||
},
|
||||
attacks_monsters=false,
|
||||
peaceful = true,
|
||||
group_attack = false,
|
||||
step=2,
|
||||
blood_amount = 35,
|
||||
blood_offset = 0.25,
|
||||
rewards = {
|
||||
{chance=90, item="default:apple"},
|
||||
{chance=60, item="experience:6_exp"},
|
||||
{chance=50, item="potions:magic_replenish1"},
|
||||
},
|
||||
})
|
|
@ -0,0 +1,176 @@
|
|||
mobs:register_mob("mobs:male1_npc",{
|
||||
type = "npc",
|
||||
hp_min = 30,
|
||||
hp_max = 75,
|
||||
exp_min = 0,
|
||||
exp_max = 0,
|
||||
collisionbox = {-0.35,-1.0,-0.35, 0.35,0.8,0.35},
|
||||
visual = "mesh",
|
||||
mesh = "3d_armor_character.x",
|
||||
textures = {"mobs_male1.png",
|
||||
"3d_armor_trans.png",
|
||||
"3d_armor_trans.png",
|
||||
},
|
||||
visual_size = {x=1, y=1},
|
||||
makes_footstep_sound = true,
|
||||
view_range = 12,
|
||||
walk_velocity = 1.7,
|
||||
run_velocity = 6.15,
|
||||
damage = 6,
|
||||
drops = { },
|
||||
armor = 150,
|
||||
drawtype = "front",
|
||||
water_damage = 1,
|
||||
lava_damage = 5,
|
||||
light_damage = 0,
|
||||
on_rightclick = nil,
|
||||
walk_chance = 1,
|
||||
attack_type = "dogfight",
|
||||
animation = {
|
||||
speed_normal = 30,
|
||||
speed_run = 30,
|
||||
stand_start = 0,
|
||||
stand_end = 79,
|
||||
walk_start = 168,
|
||||
walk_end = 187,
|
||||
run_start = 168,
|
||||
run_end = 187,
|
||||
punch_start = 200,
|
||||
punch_end = 219,
|
||||
},
|
||||
jump = false,
|
||||
sounds = {
|
||||
war_cry = "mobs_die_yell",
|
||||
death = "default_death",
|
||||
attack = "default_punch2",
|
||||
},
|
||||
attacks_monsters=true,
|
||||
peaceful = true,
|
||||
group_attack = true,
|
||||
step=2,
|
||||
blood_amount = 35,
|
||||
blood_offset = 0.25,
|
||||
rewards = {
|
||||
{chance=90, item="default:apple"},
|
||||
{chance=60, item="experience:6_exp"},
|
||||
{chance=50, item="potions:magic_replenish1"},
|
||||
},
|
||||
})
|
||||
|
||||
mobs:register_mob("mobs:male2_npc",{
|
||||
type = "npc",
|
||||
hp_min = 30,
|
||||
hp_max = 75,
|
||||
exp_min = 0,
|
||||
exp_max = 0,
|
||||
collisionbox = {-0.35,-1.0,-0.35, 0.35,0.8,0.35},
|
||||
visual = "mesh",
|
||||
mesh = "3d_armor_character.x",
|
||||
textures = {"mobs_male2.png",
|
||||
"3d_armor_trans.png",
|
||||
"3d_armor_trans.png",
|
||||
},
|
||||
visual_size = {x=1, y=1},
|
||||
makes_footstep_sound = true,
|
||||
view_range = 12,
|
||||
walk_velocity = 1.25,
|
||||
run_velocity = 6.17,
|
||||
damage = 6,
|
||||
drops = { },
|
||||
armor = 150,
|
||||
drawtype = "front",
|
||||
water_damage = 1,
|
||||
lava_damage = 5,
|
||||
light_damage = 0,
|
||||
on_rightclick = nil,
|
||||
walk_chance = 1,
|
||||
attack_type = "dogfight",
|
||||
animation = {
|
||||
speed_normal = 30,
|
||||
speed_run = 30,
|
||||
stand_start = 0,
|
||||
stand_end = 79,
|
||||
walk_start = 168,
|
||||
walk_end = 187,
|
||||
run_start = 168,
|
||||
run_end = 187,
|
||||
punch_start = 200,
|
||||
punch_end = 219,
|
||||
},
|
||||
jump = false,
|
||||
sounds = {
|
||||
war_cry = "mobs_die_yell",
|
||||
death = "default_death",
|
||||
attack = "default_punch2",
|
||||
},
|
||||
attacks_monsters=true,
|
||||
peaceful = true,
|
||||
group_attack = true,
|
||||
step=2,
|
||||
blood_amount = 35,
|
||||
blood_offset = 0.25,
|
||||
rewards = {
|
||||
{chance=90, item="default:apple"},
|
||||
{chance=60, item="experience:6_exp"},
|
||||
{chance=50, item="potions:magic_replenish1"},
|
||||
},
|
||||
})
|
||||
|
||||
mobs:register_mob("mobs:male3_npc",{
|
||||
type = "npc",
|
||||
hp_min = 30,
|
||||
hp_max = 75,
|
||||
exp_min = 0,
|
||||
exp_max = 0,
|
||||
collisionbox = {-0.35,-1.0,-0.35, 0.35,0.8,0.35},
|
||||
visual = "mesh",
|
||||
mesh = "3d_armor_character.x",
|
||||
textures = {"mobs_male3.png",
|
||||
"3d_armor_trans.png",
|
||||
"3d_armor_trans.png",
|
||||
},
|
||||
visual_size = {x=1, y=1},
|
||||
makes_footstep_sound = true,
|
||||
view_range = 12,
|
||||
walk_velocity = 1.25,
|
||||
run_velocity = 6.18,
|
||||
damage = 6,
|
||||
drops = { },
|
||||
armor = 150,
|
||||
drawtype = "front",
|
||||
water_damage = 1,
|
||||
lava_damage = 5,
|
||||
light_damage = 0,
|
||||
on_rightclick = nil,
|
||||
walk_chance = 1,
|
||||
attack_type = "dogfight",
|
||||
animation = {
|
||||
speed_normal = 30,
|
||||
speed_run = 30,
|
||||
stand_start = 0,
|
||||
stand_end = 79,
|
||||
walk_start = 168,
|
||||
walk_end = 187,
|
||||
run_start = 168,
|
||||
run_end = 187,
|
||||
punch_start = 200,
|
||||
punch_end = 219,
|
||||
},
|
||||
jump = false,
|
||||
sounds = {
|
||||
war_cry = "mobs_die_yell",
|
||||
death = "default_death",
|
||||
attack = "default_punch2",
|
||||
},
|
||||
attacks_monsters=true,
|
||||
peaceful = true,
|
||||
group_attack = true,
|
||||
step=2,
|
||||
blood_amount = 35,
|
||||
blood_offset = 0.25,
|
||||
rewards = {
|
||||
{chance=90, item="default:apple"},
|
||||
{chance=60, item="experience:6_exp"},
|
||||
{chance=50, item="potions:magic_replenish1"},
|
||||
},
|
||||
})
|
|
@ -0,0 +1,167 @@
|
|||
mobs:register_mob("mobs:female1_npc", {
|
||||
type = "npc",
|
||||
hp_min = 30,
|
||||
hp_max = 75,
|
||||
exp_min = 0,
|
||||
exp_max = 0,
|
||||
collisionbox = {-0.35,-1.0,-0.35, 0.35,0.8,0.35},
|
||||
visual = "mesh",
|
||||
mesh = "3d_armor_character.x",
|
||||
textures = {"mobs_female1.png",
|
||||
"3d_armor_trans.png",
|
||||
"3d_armor_trans.png",
|
||||
},
|
||||
visual_size = {x=1, y=1},
|
||||
makes_footstep_sound = true,
|
||||
view_range = 12,
|
||||
walk_velocity = 1.25,
|
||||
run_velocity = 3.75,
|
||||
damage = 6,
|
||||
drops = { },
|
||||
armor = 150,
|
||||
drawtype = "front",
|
||||
water_damage = 1,
|
||||
lava_damage = 5,
|
||||
light_damage = 0,
|
||||
on_rightclick = nil,
|
||||
walk_chance = 1,
|
||||
attack_type = "dogfight",
|
||||
animation = {
|
||||
speed_normal = 30,
|
||||
speed_run = 30,
|
||||
stand_start = 0,
|
||||
stand_end = 79,
|
||||
walk_start = 168,
|
||||
walk_end = 187,
|
||||
run_start = 168,
|
||||
run_end = 187,
|
||||
punch_start = 200,
|
||||
punch_end = 219,
|
||||
},
|
||||
jump = false,
|
||||
sounds = {
|
||||
attack = "default_punch",
|
||||
},
|
||||
attacks_monsters=false,
|
||||
peaceful = true,
|
||||
step=2,
|
||||
blood_amount = 35,
|
||||
blood_offset = 0.25,
|
||||
rewards = {
|
||||
{chance=90, item="default:bread"},
|
||||
{chance=40, item="experience:6_exp"},
|
||||
{chance=60, item="potions:magic_replenish1"},
|
||||
},
|
||||
})
|
||||
|
||||
mobs:register_mob("mobs:female2_npc", {
|
||||
type = "npc",
|
||||
hp_min = 30,
|
||||
hp_max = 75,
|
||||
exp_min = 0,
|
||||
exp_max = 0,
|
||||
collisionbox = {-0.35,-1.0,-0.35, 0.35,0.8,0.35},
|
||||
visual = "mesh",
|
||||
mesh = "3d_armor_character.x",
|
||||
textures = {"mobs_female2.png",
|
||||
"3d_armor_trans.png",
|
||||
"3d_armor_trans.png",
|
||||
},
|
||||
visual_size = {x=1, y=1},
|
||||
makes_footstep_sound = true,
|
||||
view_range = 12,
|
||||
walk_velocity = 1.25,
|
||||
run_velocity = 3.75,
|
||||
damage = 6,
|
||||
drops = { },
|
||||
armor = 150,
|
||||
drawtype = "front",
|
||||
water_damage = 1,
|
||||
lava_damage = 5,
|
||||
light_damage = 0,
|
||||
on_rightclick = nil,
|
||||
walk_chance = 1,
|
||||
attack_type = "dogfight",
|
||||
animation = {
|
||||
speed_normal = 30,
|
||||
speed_run = 30,
|
||||
stand_start = 0,
|
||||
stand_end = 79,
|
||||
walk_start = 168,
|
||||
walk_end = 187,
|
||||
run_start = 168,
|
||||
run_end = 187,
|
||||
punch_start = 200,
|
||||
punch_end = 219,
|
||||
},
|
||||
jump = false,
|
||||
sounds = {
|
||||
attack = "default_punch",
|
||||
},
|
||||
attacks_monsters=false,
|
||||
peaceful = true,
|
||||
step=2,
|
||||
blood_amount = 35,
|
||||
blood_offset = 0.25,
|
||||
rewards = {
|
||||
{chance=90, item="default:bread"},
|
||||
{chance=40, item="experience:6_exp"},
|
||||
{chance=60, item="potions:magic_replenish1"},
|
||||
},
|
||||
})
|
||||
|
||||
mobs:register_mob("mobs:female3_npc", {
|
||||
type = "npc",
|
||||
hp_min = 30,
|
||||
hp_max = 75,
|
||||
exp_min = 0,
|
||||
exp_max = 0,
|
||||
collisionbox = {-0.35,-1.0,-0.35, 0.35,0.8,0.35},
|
||||
visual = "mesh",
|
||||
mesh = "3d_armor_character.x",
|
||||
textures = {"mobs_female3.png",
|
||||
"3d_armor_trans.png",
|
||||
"3d_armor_trans.png",
|
||||
},
|
||||
visual_size = {x=1, y=1},
|
||||
makes_footstep_sound = true,
|
||||
view_range = 12,
|
||||
walk_velocity = 1.3,
|
||||
run_velocity = 4.15,
|
||||
damage = 6,
|
||||
drops = { },
|
||||
armor = 150,
|
||||
drawtype = "front",
|
||||
water_damage = 1,
|
||||
lava_damage = 5,
|
||||
light_damage = 0,
|
||||
on_rightclick = nil,
|
||||
walk_chance = 1,
|
||||
attack_type = "dogfight",
|
||||
animation = {
|
||||
speed_normal = 30,
|
||||
speed_run = 30,
|
||||
stand_start = 0,
|
||||
stand_end = 79,
|
||||
walk_start = 168,
|
||||
walk_end = 187,
|
||||
run_start = 168,
|
||||
run_end = 187,
|
||||
punch_start = 200,
|
||||
punch_end = 219,
|
||||
},
|
||||
jump = false,
|
||||
sounds = {
|
||||
attack = "default_punch",
|
||||
},
|
||||
attacks_monsters=false,
|
||||
peaceful = true,
|
||||
step=2,
|
||||
blood_amount = 35,
|
||||
blood_offset = 0.25,
|
||||
rewards = {
|
||||
{chance=90, item="default:bread"},
|
||||
{chance=40, item="experience:6_exp"},
|
||||
{chance=60, item="potions:magic_replenish1"},
|
||||
},
|
||||
})
|
|
@ -0,0 +1,5 @@
|
|||
[Dolphin]
|
||||
PreviewsShown=true
|
||||
Timestamp=2014,4,4,22,2,39
|
||||
Version=3
|
||||
ViewMode=1
|
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 267 B |
After Width: | Height: | Size: 239 B |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 36 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 404 B |
After Width: | Height: | Size: 623 B |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 411 B |
After Width: | Height: | Size: 426 B |
After Width: | Height: | Size: 565 B |
After Width: | Height: | Size: 909 B |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 6.2 KiB |