CTakeDamageInfo:SetDamageForce
Description
Sets the directional force of the damage.
This function only affects entities using the VPHYSICS movetype. This means players and most NPCs won't receive the force vector you provide as knockback.
If the entity taking damage is using the WALK or STEP holdtypes, the damage force is instead automatically calculated. It will push the entity away from the inflictor's Entity:WorldSpaceCenter, scaling the push by a calculated value involving the total amount of damage and the size of the entity. Source
To disable knockback entirely, see EFL_NO_DAMAGE_FORCES or use the workaround example below.
Arguments
Example
Workaround for player knockback quenching.