• Damage position
    3 replies, posted
Would be really helpful to have a script that multiplies damage on hit position. I.E. body x1 head x2~3 limbs x.5 hands and feet x.1 Something like that... THANKS IN ADVANCE!
[lua]local DamageModifiers = { [HITGROUP_HEAD] = 2.5, [HITGROUP_LEFTARM] = 0.5, [HITGROUP_RIGHTARM] = 0.5, [HITGROUP_LEFTLEG] = 0.5, [HITGROUP_RIGHTLEG] = 0.5, [HITGROUP_CHEST] = 1 } hook.Add("ScalePlayerDamage", "DamageModifier", function(ply, hitgroup, dmginfo) dmginfo:ScaleDamage(DamageModifiers[hitgroup] or 1) end) hook.Add("ScaleNPCDamage", "DamageModifier", function(npc, hitgroup, dmginfo) dmginfo:ScaleDamage(DamageModifiers[hitgroup] or 1) end)[/lua] You can't modify the damage on the hands or feet easily.
Thanks a bunch Null!
You're welcome.
Sorry, you need to Log In to post a reply to this thread.