Melee no damage

I am trying to make a widow 1v1 gamemode. The players should be able to melee to destroy railings, but they shouldn’t do damage to each other. I tried some things already but I couldn’t make it work. I am not the best at workshop so it would be really kind of you if someone could help me.
Thank you very much (:

rule: player dealt damage
condition:

  • is firing primary(event player) == false

action:

  • heal(victim, event damage)

I dont know if this works, you might just try it out. There is no way to address meele directly at all.

1 Like

Yeah I know. They should really add a melee detection. This works, but only if the player is above 30 hp. When the player is under 30 hp, the melee will kill the player because the rule starts after the damage is dealt. I don’t know if it is possible to negate the damage or make the victim invinvible.

You could set a variable to your current health if it’s damage through the primary

and

set a rule when player dies and is firing primary(attacker) == false then resurrect(victim) then damage(Max Health - the Variable) to the victim

1 Like

Headshot only mode should not count melee damage I guess.

1 Like

You are right. I want to let the bodyshots so damage, too. But this is a temporary solution.
Thanks

You may want to use the Unkillable status effect to prevent a player from fully dying.