Back to ACF

ACF_RicochetVector

S

Part of ACF namespace

function ACF_RicochetVector(Flight, HitNormal)
View on GitHub|lua/acf/server/sv_acfdamage.lua:758-762
👁️ 0 viewsUpdated 4 months ago

Description

Calculates the vector of the ricochet of a round upon impact at a set angle

Parameters

NameTypeDescription
Flightany
HitNormalany

Returns

No return values documented.

Examples

No examples available.

Used In(2 locations)

📄lua/acf/server/sv_acfdamage.lua
2 usages
L822Bullet.Flight = (ACF_RicochetVector(Bullet.Flight, HitNormal) + VectorRand() * 0.05):GetNormalized() * Ricochet
L881Bullet.Flight = (ACF_RicochetVector(Bullet.Flight, HitNormal) + VectorRand() * 0.05):GetNormalized() * Speed * Ricochet