1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-09-28 23:40:34 +02:00

yeti now punch

This commit is contained in:
crabman77 2015-10-27 18:23:44 +01:00
parent 16ce4c65e0
commit 2b591a82fe

View File

@ -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
@ -70,16 +71,16 @@ mobs:register_arrow("mobs:snowball", {
velocity = 6, velocity = 6,
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,