aboutsummaryrefslogtreecommitdiff
path: root/assets/Weichenhebel-CooleLokAnimiert/dampflock4pipe_animated.blend
diff options
context:
space:
hl num">0.17328 local res = m - m * math.exp(k * damage) if distance < 2.0 then res = res * 1.1 -- more knockback when closer elseif distance > 4.0 then res = res * 0.9 -- less when far away end return res end local function vector_absmax(v) local max, abs = math.max, math.abs return max(max(abs(v.x), abs(v.y)), abs(v.z)) end core.register_on_punchplayer(function(player, hitter, time_from_last_punch, tool_capabilities, unused_dir, damage) if player:get_hp() == 0 then return -- RIP end -- Server::handleCommand_Interact() adds eye offset to one but not the other