mirror of
				https://github.com/sys4-fr/server-nalc.git
				synced 2025-10-31 04:25:32 +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:
		| @@ -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 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user