mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-16 15:30:30 +01: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
|
||||
passive = false,
|
||||
damage = 6,
|
||||
attack_type = "shoot",
|
||||
attack_type = "dogshoot",
|
||||
reach = 2,
|
||||
shoot_interval = .75,
|
||||
arrow = "mobs:snowball",
|
||||
shoot_offset = 2,
|
||||
|
@ -28,7 +29,7 @@ mobs:register_mob("mobs:yeti", {
|
|||
makes_footstep_sound = true,
|
||||
sounds = {
|
||||
random = "mobs_dirtmonster",
|
||||
attack = "mobs_stonemonster_attack",
|
||||
shoot_attack = "mobs_stonemonster_attack",
|
||||
death = "mobs_zombie_death",
|
||||
},
|
||||
-- speed and jump
|
||||
|
@ -70,16 +71,16 @@ mobs:register_arrow("mobs:snowball", {
|
|||
velocity = 6,
|
||||
|
||||
hit_player = function(self, player)
|
||||
player:punch(self.object, 1.0, {
|
||||
full_punch_interval=1.0,
|
||||
damage_groups = {fleshy=6},
|
||||
player:punch(self.object, 1.0, {
|
||||
full_punch_interval = 1.0,
|
||||
damage_groups = {fleshy = 6},
|
||||
}, 0)
|
||||
end,
|
||||
|
||||
hit_mob = function(self, player)
|
||||
player:punch(self.object, 1.0, {
|
||||
full_punch_interval=1.0,
|
||||
damage_groups = {fleshy=3},
|
||||
player:punch(self.object, 1.0, {
|
||||
full_punch_interval = 1.0,
|
||||
damage_groups = {fleshy = 3},
|
||||
}, 0)
|
||||
end,
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user