execute if score @s invulnerable_timer matches 1.. run return 0
execute if entity @s[nbt={active_effects:[{id:"minecraft:resistance",amplifier:17b}]}] run return 0
damage @s 0.1 minecraft:mob_attack by @n[tag=raycaster]
tellraw @a[distance=..250] ["",{"selector":"@s","color":"white"},{"text":" was gibbed by ","color":"white"},{"selector":"@n[tag=raycaster]","color":"white"}]
tag @s add hide_default_death_message
scoreboard players add @s death_count 1
particle minecraft:white_smoke ~ ~0.75 ~ 0.25 0.5 0.25 0 1000 force @a
playsound minecraft:block.fire.extinguish player @a ~ ~ ~ 2 1.25
execute as @n[tag=raycaster] at @s run function pctf:logic/player/game/got_kill