Skip to content

Commit

Permalink
Disable damage scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
xDShot committed Sep 3, 2016
1 parent 41b0ff8 commit e68e40e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/weapons/csgo_baseknife.lua
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,8 @@ function SWEP:DoAttack( Altfire )

Attacker:LagCompensation(false) -- Don't forget to disable it!

tr.HitGroup = HITGROUP_GENERIC -- Hack to disable damage scaling. No matter where we hit it, the damage should be as is.

-- Calculate damage and deal hurt if we can
local Backstab = cvars.Bool("csgo_knives_backstabs", true) and DidHitPlrOrNPC and self:EntityFaceBack( HitEntity ) -- Because we can only backstab creatures
local RMB_BACK = cvars.Number("csgo_knives_dmg_sec_back", 180)
Expand Down

0 comments on commit e68e40e

Please sign in to comment.