mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2025-04-22 23:25:15 +02:00
Sprint criticals now do extra damage, if the conditions are met.
This commit is contained in:
parent
3a415b834f
commit
7327f866ba
1 changed files with 2 additions and 1 deletions
|
@ -3,7 +3,8 @@ mcl_damage.register_modifier(function(obj, damage, reason)
|
|||
local hitter = reason.direct
|
||||
if mcl_sprint.is_sprinting(hitter:get_player_name()) then
|
||||
obj:add_velocity(hitter:get_velocity())
|
||||
elseif (hitter:get_velocity() or hitter:get_player_velocity()).y < 0 then
|
||||
end
|
||||
if (hitter:get_velocity() or hitter:get_player_velocity()).y < 0 then
|
||||
local pos = mcl_util.get_object_center(obj)
|
||||
minetest.add_particlespawner({
|
||||
amount = 15,
|
||||
|
|
Loading…
Add table
Reference in a new issue