Add in unused head code elements
parent
e52aab45c0
commit
ddb33acf0d
|
@ -834,15 +834,15 @@ mobs.mob_step = function(self, dtime)
|
|||
--DEBUG TIME!
|
||||
--REMEMBER TO MOVE THIS AFTER DEATH CHECK
|
||||
|
||||
if self.has_head then
|
||||
mobs.do_head_logic(self,dtime)
|
||||
end
|
||||
--if self.has_head then
|
||||
-- mobs.do_head_logic(self,dtime)
|
||||
--end
|
||||
|
||||
|
||||
|
||||
if true then--DEBUG DEBUG DEBUG DEBUG DEBUG DEBUG DEBUG DEBUG DEBUG DEBUG DEBUG DEBUG DEBUG DEBUG DEBUG
|
||||
return
|
||||
end
|
||||
--if true then--DEBUG DEBUG DEBUG DEBUG DEBUG DEBUG DEBUG DEBUG DEBUG DEBUG DEBUG DEBUG DEBUG DEBUG DEBUG
|
||||
-- return
|
||||
--end
|
||||
|
||||
--despawn mechanism
|
||||
--don't despawned tamed or bred mobs
|
||||
|
|
|
@ -19,6 +19,22 @@ mobs:register_mob("mobs_mc:pig", {
|
|||
"mobs_mc_pig.png", -- base
|
||||
"blank.png", -- saddle
|
||||
}},
|
||||
|
||||
--head code
|
||||
has_head = true,
|
||||
head_bone = "head",
|
||||
|
||||
swap_y_with_x = false,
|
||||
reverse_head_yaw = false,
|
||||
|
||||
head_bone_pos_y = 2.4,
|
||||
head_bone_pos_z = 0,
|
||||
|
||||
head_height_offset = 1.1,
|
||||
head_direction_offset = 0,
|
||||
head_pitch_modifier = 0,
|
||||
--end head code
|
||||
|
||||
visual_size = {x=2.5, y=2.5},
|
||||
makes_footstep_sound = true,
|
||||
walk_velocity = 1,
|
||||
|
|
|
@ -78,6 +78,22 @@ mobs:register_mob("mobs_mc:sheep", {
|
|||
makes_footstep_sound = true,
|
||||
walk_velocity = 1,
|
||||
run_velocity = 3,
|
||||
|
||||
--head code
|
||||
has_head = true,
|
||||
head_bone = "head",
|
||||
|
||||
swap_y_with_x = false,
|
||||
reverse_head_yaw = false,
|
||||
|
||||
head_bone_pos_y = 3.6,
|
||||
head_bone_pos_z = -0.6,
|
||||
|
||||
head_height_offset = 1.0525,
|
||||
head_direction_offset = 0.5,
|
||||
head_pitch_modifier = 0,
|
||||
--end head code
|
||||
|
||||
drops = {
|
||||
{name = mobs_mc.items.mutton_raw,
|
||||
chance = 1,
|
||||
|
|
|
@ -34,6 +34,22 @@ local skeleton = {
|
|||
"mcl_bows_bow_0.png", -- bow
|
||||
"mobs_mc_skeleton.png", -- skeleton
|
||||
} },
|
||||
|
||||
--head code
|
||||
has_head = false,
|
||||
head_bone = "head",
|
||||
|
||||
swap_y_with_x = true,
|
||||
reverse_head_yaw = true,
|
||||
|
||||
head_bone_pos_y = 2.4,
|
||||
head_bone_pos_z = 0,
|
||||
|
||||
head_height_offset = 1.1,
|
||||
head_direction_offset = 0,
|
||||
head_pitch_modifier = 0,
|
||||
--end head code
|
||||
|
||||
visual_size = {x=1, y=1},
|
||||
makes_footstep_sound = true,
|
||||
textures = {
|
||||
|
|
|
@ -30,6 +30,22 @@ local wolf = {
|
|||
rotate = 270,
|
||||
passive = false,
|
||||
group_attack = true,
|
||||
|
||||
--head code
|
||||
has_head = false,
|
||||
head_bone = "head",
|
||||
|
||||
swap_y_with_x = false,
|
||||
reverse_head_yaw = false,
|
||||
|
||||
head_bone_pos_y = 3.6,
|
||||
head_bone_pos_z = -0.6,
|
||||
|
||||
head_height_offset = 1.0525,
|
||||
head_direction_offset = 0.5,
|
||||
head_pitch_modifier = 0,
|
||||
--end head code
|
||||
|
||||
collisionbox = {-0.3, -0.00, -0.3, 0.3, 0.85, 0.3},
|
||||
visual = "mesh",
|
||||
mesh = "mobs_mc_wolf.b3d",
|
||||
|
|
|
@ -75,6 +75,22 @@ local zombie = {
|
|||
damage = "mobs_mc_zombie_hurt",
|
||||
distance = 16,
|
||||
},
|
||||
|
||||
--head code
|
||||
has_head = false,
|
||||
head_bone = "Head",
|
||||
|
||||
swap_y_with_x = true,
|
||||
reverse_head_yaw = true,
|
||||
|
||||
head_bone_pos_y = 2.4,
|
||||
head_bone_pos_z = 0,
|
||||
|
||||
head_height_offset = 1.1,
|
||||
head_direction_offset = 0,
|
||||
head_pitch_modifier = 0,
|
||||
--end head code
|
||||
|
||||
eye_height = 1.65,
|
||||
walk_velocity = 1,
|
||||
run_velocity = 3.5,
|
||||
|
|
|
@ -43,6 +43,22 @@ local pigman = {
|
|||
damage = "mobs_mc_zombiepig_hurt",
|
||||
distance = 16,
|
||||
},
|
||||
|
||||
--head code
|
||||
has_head = false,
|
||||
head_bone = "head",
|
||||
|
||||
swap_y_with_x = true,
|
||||
reverse_head_yaw = true,
|
||||
|
||||
head_bone_pos_y = 2.4,
|
||||
head_bone_pos_z = 0,
|
||||
|
||||
head_height_offset = 1.1,
|
||||
head_direction_offset = 0,
|
||||
head_pitch_modifier = 0,
|
||||
--end head code
|
||||
|
||||
jump = true,
|
||||
makes_footstep_sound = true,
|
||||
walk_velocity = .8,
|
||||
|
|
Loading…
Reference in New Issue