mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-25 13:35:12 +00:00
Arena - slight hammer buff
This commit is contained in:
parent
9a6c01c2d4
commit
84c978e141
2 changed files with 6 additions and 3 deletions
|
@ -198,6 +198,9 @@ function render_health()
|
|||
width = width - 4 * scale
|
||||
height = height - 4 * scale
|
||||
health = mario_health_float(gMarioStates[0])
|
||||
if health > 0 and health < 0.02 then
|
||||
health = 0.02
|
||||
end
|
||||
width = math.floor(width * health)
|
||||
rscale = clamp(((1 - health) ^ 2) * 3, 0, 1)
|
||||
gscale = clamp((health ^ 2) * 2, 0, 1)
|
||||
|
|
|
@ -127,7 +127,7 @@ function mario_local_hammer_check(m)
|
|||
if sattacker.item == ITEM_HAMMER and mario_hammer_is_attack(mattacker.action) and passes_pvp_interaction_checks(mattacker, cmvictim) ~= 0 and passes_pvp_interaction_checks(mattacker, m) ~= 0 and global_index_hurts_mario_state(npattacker.globalIndex, m) then
|
||||
local pos = mario_hammer_position(mattacker)
|
||||
local dist = vec3f_dist(pos, cmvictim.pos)
|
||||
if dist <= 165 then
|
||||
if dist <= 200 then
|
||||
local yOffset = 0.6
|
||||
if mattacker.action == ACT_JUMP_KICK then
|
||||
yOffset = 1.0
|
||||
|
@ -155,9 +155,9 @@ function mario_local_hammer_check(m)
|
|||
e.lastDamagedByGlobal = npattacker.globalIndex
|
||||
|
||||
if mattacker.action == ACT_JUMP_KICK or mattacker.action == ACT_DIVE then
|
||||
m.hurtCounter = 9
|
||||
m.hurtCounter = 10
|
||||
else
|
||||
m.hurtCounter = 14
|
||||
m.hurtCounter = 15
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue