mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-04-01 18:20:39 +02:00
yeti now punch
This commit is contained in:
parent
16ce4c65e0
commit
2b591a82fe
@ -7,7 +7,8 @@ mobs:register_mob("mobs:yeti", {
|
|||||||
-- agressive, deals 7 damage to player when hit
|
-- agressive, deals 7 damage to player when hit
|
||||||
passive = false,
|
passive = false,
|
||||||
damage = 6,
|
damage = 6,
|
||||||
attack_type = "shoot",
|
attack_type = "dogshoot",
|
||||||
|
reach = 2,
|
||||||
shoot_interval = .75,
|
shoot_interval = .75,
|
||||||
arrow = "mobs:snowball",
|
arrow = "mobs:snowball",
|
||||||
shoot_offset = 2,
|
shoot_offset = 2,
|
||||||
@ -28,7 +29,7 @@ mobs:register_mob("mobs:yeti", {
|
|||||||
makes_footstep_sound = true,
|
makes_footstep_sound = true,
|
||||||
sounds = {
|
sounds = {
|
||||||
random = "mobs_dirtmonster",
|
random = "mobs_dirtmonster",
|
||||||
attack = "mobs_stonemonster_attack",
|
shoot_attack = "mobs_stonemonster_attack",
|
||||||
death = "mobs_zombie_death",
|
death = "mobs_zombie_death",
|
||||||
},
|
},
|
||||||
-- speed and jump
|
-- speed and jump
|
||||||
@ -71,15 +72,15 @@ mobs:register_arrow("mobs:snowball", {
|
|||||||
|
|
||||||
hit_player = function(self, player)
|
hit_player = function(self, player)
|
||||||
player:punch(self.object, 1.0, {
|
player:punch(self.object, 1.0, {
|
||||||
full_punch_interval=1.0,
|
full_punch_interval = 1.0,
|
||||||
damage_groups = {fleshy=6},
|
damage_groups = {fleshy = 6},
|
||||||
}, 0)
|
}, 0)
|
||||||
end,
|
end,
|
||||||
|
|
||||||
hit_mob = function(self, player)
|
hit_mob = function(self, player)
|
||||||
player:punch(self.object, 1.0, {
|
player:punch(self.object, 1.0, {
|
||||||
full_punch_interval=1.0,
|
full_punch_interval = 1.0,
|
||||||
damage_groups = {fleshy=3},
|
damage_groups = {fleshy = 3},
|
||||||
}, 0)
|
}, 0)
|
||||||
end,
|
end,
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user