Back to ACF

ACF_KEShove

S

Part of ACF namespace

function ACF_KEShove(Target, Pos, Vec, KE, Inflictor)
View on GitHub|lua/acf/server/sv_acfdamage.lua:909-946
👁️ 0 viewsUpdated 4 months ago

Description

Handles ACE forces (HE Push, Recoil, etc)

Parameters

NameTypeDescription
Targetany
Posany
Vecany
KEany
Inflictorany

Returns

No return values documented.

Examples

No examples available.

Used In(4 locations)

📄lua/acf/server/sv_acfdamage.lua
3 usages
L301ACF_KEShove(Tar, NewHitpos, (TargetPos - NewHitpos):GetNormalized(), PowerFraction * 1 * (GetConVar("acf_hepush"):GetFloat() or 1), Inflictor) --0.333
L325ACF_KEShove(Tar, Hitpos, Table.Vec, PowerFraction * 5 * (GetConVar("acf_hepush"):GetFloat() or 1), Inflictor)
L832ACF_KEShove(Target, HitPos, Bullet["Flight"]:GetNormalized(), Energy.Kinetic * HitRes.Loss * 500 * Bullet["ShovePower"] * (GetConVar("acf_kepush"):GetFloat() or 1), Bullet.Owner)
📄lua/entities/acf_gun/init.lua
1 usage
L748ACF_KEShove(self, self:GetPos() , Dir , self.KERecoil * self.CurrentRecoil )