ACF
SCore Armored Combat Framework API — guns, ammo, armor, and the damage model. Includes both the ACF.* table methods and the classic ACF_* global functions.
📄 lua/acf/shared/sh_ace_functions.lua
Sub-namespaces
Functions
ACF_APKill
Creates a debris related to kinetic destruction.
function ACF_APKill( Entity , HitVector , Power )ACF_AcquireBullet
No description available.
function ACF_AcquireBullet(BulletData)ACF_Activate
Creates or updates the ACF entity data in a passive way. Meaning this entity wont be updated unless it really requires it (like a shot, damage, looking it using armor tool, etc)
function ACF_Activate( Entity , Recalc )ACF_CalcArmor
changes here will be automatically reflected in the armor properties tool
function ACF_CalcArmor( Area, Ductility, Mass )ACF_CalcCrateStats
=====================[ DEPRECATED FUNCTION ]=====================-- --This function is not used by ACE anymore, but i´ll keep it just for those acf2 custom ammos dont break
function ACF_CalcCrateStats()ACF_CalcCurve
Calculates a position along a catmull-rom spline (as defined on https://www.mvps.org/directx/articles/catmull/) This is used for calculating engine torque curves
function ACF_CalcCurve(Points, Pos)ACF_CalcEnginePerformanceData
Calculates the performance characteristics of an engine, given a torque curve, max torque (in nm), idle, and redline rpm
function ACF_CalcEnginePerformanceData(curve, maxTq, idle, redline)ACF_CalcMassRatio
Global Ratio Setting Function
function ACF_CalcMassRatio( obj, pwr )ACF_CheckLegal
TODO: remove unused functions
function ACF_CheckLegal(Ent, Model, MinMass, MinInertia, _, CanVisclip )ACF_DefineEngine
Engine definition
function ACF_DefineEngine( id, data )ACF_DefineFuelTank
fueltank definition
function ACF_DefineFuelTank( id, data )ACF_DefineFuelTankSize
fueltank size definition
function ACF_DefineFuelTankSize( id, data )ACF_DefineGearbox
Gearbox definition
function ACF_DefineGearbox( id, data )ACF_DefineIRST
Tracking Radar definition
function ACF_DefineIRST( id, data )ACF_DefineIRSTClass
Tracking Radar Class definition
function ACF_DefineIRSTClass( id, data )ACF_DefineRack
Rack definition
function ACF_DefineRack( id, data )ACF_DefineRackClass
Rack class definition
function ACF_DefineRackClass( id, data )ACF_DefineRadar
Radar definition
function ACF_DefineRadar( id, data )ACF_DefineRadarClass
Radar Class definition
function ACF_DefineRadarClass( id, data )ACF_DefineSonar
Sonar definition
function ACF_DefineSonar( id, data )ACF_DefineSonarClass
Sonar Array Class definition
function ACF_DefineSonarClass( id, data )ACF_DefineTrackRadar
Tracking Radar definition
function ACF_DefineTrackRadar( id, data )ACF_DefineTrackRadarClass
Tracking Radar Class definition
function ACF_DefineTrackRadarClass( id, data )ACF_DefineVHeatSource
Virtual Heat Source definition
function ACF_DefineVHeatSource( id, data )ACF_GetAllChildren
for those extra sneaky bastards
function ACF_GetAllChildren( ent, ResultTable )ACF_GetAllFuseNames
Getters for fuse names, for use in missile definitions.
function ACF_GetAllFuseNames()ACF_GetLinkedWheels
returns any wheels linked to this or child gearboxes
function ACF_GetLinkedWheels( MobilityEnt )ACF_GetPhysicalParent
returns last parent in chain, which has physics
function ACF_GetPhysicalParent( obj )ACF_GetPostPenetration
Describes the only supported post-penetration contract. Armor resolution reports how much of the incoming energy was spent; callers must not reinterpret Overkill or Loss independently. Killed entities may continue when residual energy remains.
function ACF_GetPostPenetration( HitRes, Energy )ACF_HEFind
I don't want HE processing every ent that it has in range
function ACF_HEFind( Hitpos, Radius )ACF_HEKill
Creates a debris related to explosive destruction.
function ACF_HEKill( Entity , HitVector , Energy , BlastPos )ACF_KEShove
Handles ACE forces (HE Push, Recoil, etc)
function ACF_KEShove(Target, Pos, Vec, KE, Inflictor)ACF_PenRanging
Formula from https://mathscinotes.wordpress.com/2013/10/03/parameter-determination-for-pejsa-velocity-model/ --not terribly accurate for acf, particularly small caliber (7.62mm off by 120 m/s at 800m), but is good enough for quick indicator --range in m, vel is m/s
function ACF_PenRanging(MuzzleVel, DragCoef, ProjMass, PenArea, LimitVel, Range)ACF_PenetrateGround
Handles Ground penetrations
function ACF_PenetrateGround( Bullet, Energy, HitPos, HitNormal )ACF_PropDamage
replaced with _ due to lack of use: Inflictor, Bone
function ACF_PropDamage( Entity , Energy , FrArea , Angle , _, _, Type)ACF_PropShockwave
Dedicated function for HESH spalling
function ACF_PropShockwave( HitPos, HitVec, Filter, Caliber )ACF_RegisterBullet
No description available.
function ACF_RegisterBullet(Index, Bullet)ACF_RicochetVector
Calculates the vector of the ricochet of a round upon impact at a set angle
function ACF_RicochetVector(Flight, HitNormal)ACF_RoundImpact
Handles the impact of a round on a target
function ACF_RoundImpact( Bullet, Speed, Energy, Target, HitPos, HitNormal , Bone )ACF_ScaledExplosion
converts what would be multiple simultaneous cache detonations into one large explosion
function ACF_ScaledExplosion( ent , remove )ACF_Spall
Handles normal spalling
function ACF_Spall( HitPos , HitVec , Filter , KE , Caliber , _ , Inflictor , Material)ACF_SpallTrace
Spall trace core. For HESH and normal spalling
function ACF_SpallTrace(HitVec, Index, SpallEnergy, SpallArea, Inflictor, SpallVelocity, State )ACF_Spall_HESH
Handles HESH spalling
function ACF_Spall_HESH( HitPos, HitVec, Filter, HEFiller, Caliber, Armour, Inflictor, Material )ACF_UpdateChecking
Checks if theres new versions for ACE
function ACF_UpdateChecking( )ACF_VehicleDamage
replaced with _ due to lack of use: Bone
function ACF_VehicleDamage(Entity, Energy, FrArea, Angle, Inflictor, _, Gun, Type)ACF_defineGun
Gun definition
function ACF_defineGun( id, data )ACF_defineGunClass
some factory functions for defining ents Be patient. There are alot of functions here Gun class definition
function ACF_defineGunClass( id, data )GetDefaultActiveInputState
No description available.
function ACF.GetDefaultActiveInputState(ent, value, inputName)HasDefaultActiveInputState
No description available.
function ACF.HasDefaultActiveInputState(ent, inputName)IsDefaultActiveInputWired
No description available.
function ACF.IsDefaultActiveInputWired(ent, inputName)Showing 1–50 of 51 functions