mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-18 00:08:25 +01:00
Dicreased dogfight distance (a bit)
- Dicreased dogfight distance by 0.5 so that players are sure to be able to punch *every* monsters while they are attacking them
This commit is contained in:
parent
549bd28fd6
commit
6c5c9f6ca9
@ -702,7 +702,7 @@ lifetimer = def.lifetimer or 600,
|
|||||||
end
|
end
|
||||||
self.object:setyaw(yaw)
|
self.object:setyaw(yaw)
|
||||||
-- attack distance is 2 + half of mob width so the bigger mobs can attack (like slimes)
|
-- attack distance is 2 + half of mob width so the bigger mobs can attack (like slimes)
|
||||||
if self.attack.dist > ((-self.collisionbox[1]+self.collisionbox[4])/2)+2 then
|
if self.attack.dist > ((-self.collisionbox[1]+self.collisionbox[4])/2)+1.5 then
|
||||||
-- jump attack
|
-- jump attack
|
||||||
if (self.jump and self.get_velocity(self) <= 0.5 and self.object:getvelocity().y == 0)
|
if (self.jump and self.get_velocity(self) <= 0.5 and self.object:getvelocity().y == 0)
|
||||||
or (self.object:getvelocity().y == 0 and self.jump_chance > 0) then
|
or (self.object:getvelocity().y == 0 and self.jump_chance > 0) then
|
||||||
|
Loading…
Reference in New Issue
Block a user