forked from VoxeLibre/VoxeLibre
Compare commits
6 Commits
master
...
Ghast_fixe
Author | SHA1 | Date |
---|---|---|
Bakawun | 652bcce32e | |
Bakawun | fa02d828dd | |
Bakawun | f85ddd5651 | |
Bakawun | dfbf901b2d | |
Bakawun | 57ec6836b4 | |
Bakawun | 034d5d55b2 |
|
@ -33,7 +33,7 @@ mcl_mobs.register_mob("mobs_mc:ghast", {
|
|||
death = "mobs_mc_zombie_death",
|
||||
attack = "mobs_fireball",
|
||||
random = "mobs_eerie",
|
||||
distance = 16,
|
||||
distance = 80,
|
||||
-- TODO: damage
|
||||
-- TODO: better death
|
||||
},
|
||||
|
@ -50,10 +50,10 @@ mcl_mobs.register_mob("mobs_mc:ghast", {
|
|||
run_start = 0, run_end = 40,
|
||||
},
|
||||
fall_damage = 0,
|
||||
view_range = 100,
|
||||
view_range = 64,
|
||||
attack_type = "dogshoot",
|
||||
arrow = "mobs_mc:fireball",
|
||||
shoot_interval = 3.5,
|
||||
shoot_interval = 3,
|
||||
shoot_offset = -5,
|
||||
dogshoot_switch = 1,
|
||||
dogshoot_count_max =1,
|
||||
|
@ -97,7 +97,7 @@ mcl_mobs:spawn_specific(
|
|||
0,
|
||||
7,
|
||||
30,
|
||||
72000,
|
||||
4250,
|
||||
2,
|
||||
mcl_vars.mg_nether_min,
|
||||
mcl_vars.mg_nether_max)
|
||||
|
@ -107,7 +107,7 @@ mcl_mobs.register_arrow("mobs_mc:fireball", {
|
|||
visual = "sprite",
|
||||
visual_size = {x = 1, y = 1},
|
||||
textures = {"mcl_fire_fire_charge.png"},
|
||||
velocity = 15,
|
||||
velocity = 5,
|
||||
collisionbox = {-.5, -.5, -.5, .5, .5, .5},
|
||||
_is_fireball = true,
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ mcl_mobs.register_mob("mobs_mc:shulker", {
|
|||
type = "monster",
|
||||
spawn_class = "hostile",
|
||||
attack_type = "shoot",
|
||||
shoot_interval = 0.5,
|
||||
shoot_interval = 5.5,
|
||||
arrow = "mobs_mc:shulkerbullet",
|
||||
shoot_offset = 0.5,
|
||||
passive = false,
|
||||
|
@ -51,7 +51,7 @@ mcl_mobs.register_mob("mobs_mc:shulker", {
|
|||
-- TODO: sounds
|
||||
-- TODO: Make shulker dye-able
|
||||
visual_size = {x=3, y=3},
|
||||
walk_chance = 0,
|
||||
walk_chance = 10,
|
||||
knock_back = false,
|
||||
jump = false,
|
||||
can_despawn = false,
|
||||
|
@ -65,28 +65,29 @@ mcl_mobs.register_mob("mobs_mc:shulker", {
|
|||
looting_factor = 0.0625},
|
||||
},
|
||||
animation = {
|
||||
stand_speed = 25, walk_speed = 0, run_speed = 50, punch_speed = 25,
|
||||
stand_speed = 25, walk_speed = 25, run_speed = 50, punch_speed = 25,
|
||||
speed_normal = 25, speed_run = 50,
|
||||
stand_start = 0, stand_end = 25,
|
||||
walk_start = 25, walk_end = 45,
|
||||
run_start = 45, run_end = 85,
|
||||
walk_start = 45, walk_end = 65,
|
||||
walk_loop = false,
|
||||
run_start = 65, run_end = 85,
|
||||
run_loop = false,
|
||||
punch_start = 80, punch_end = 100,
|
||||
},
|
||||
view_range = 16,
|
||||
fear_height = 0,
|
||||
walk_velocity = 0,
|
||||
run_velocity = 0,
|
||||
noyaw = true,
|
||||
do_custom = function(self,dtime)
|
||||
local pos = self.object:get_pos()
|
||||
self.shoot_interval = math.random(1, 5.5)
|
||||
if math.floor(self.object:get_yaw()) ~=0 then
|
||||
self.object:set_yaw(0)
|
||||
mcl_mobs:yaw(self, 0, 0, dtime)
|
||||
end
|
||||
if self.state == "walk" or self.state == "stand" then
|
||||
self.state = "stand"
|
||||
self:set_animation("stand")
|
||||
end
|
||||
if self.state == "attack" then
|
||||
self:set_animation("punch")
|
||||
self:set_animation("run")
|
||||
end
|
||||
self.path.way = false
|
||||
self.look_at_players = false
|
||||
|
|
Loading…
Reference in New Issue