🔍

Search Documentation

Status:
Realm:
Project:

826 results found

ACE.MakePrebuiltExplosive

ACE

SNeeds Review

Generic spawn used by every prebuilt variant. The variant's class supplies the model + filler fraction through its ENT table (read off the created entity), and we read the model's REAL physics volume at its natural size - no model scaling on these props.

function ACE.MakePrebuiltExplosive(Owner, class, Pos, Angle)
4 params2 views

ACE.Points_GuidanceMul

ACE

SNeeds Review

Guidance multiplier for a round (1.0 for everything but guided missile ammo). Public so displays can show the "x 1.5 guidance" factor instead of hiding it inside baseRoundCost.

function ACE.Points_GuidanceMul(round)
1 params2 views

SF.acfReloadProgress

Starfall

SVerified

Returns number between 0 and 1 which represents reloading progress of an ACF weapon. Useful for progress bars

Entity:acfReloadProgress()
0 params→ 1 return2 views

ACE_IsValidSound

ACE

CNeeds Review

Returns whether or not a sound actually exists, fixes client timeout issues

function ACE_IsValidSound( path )
1 params2 views

ACE.SRicochet

ACE

CNeeds Review

Handles ricochet sounds

function ACE.SRicochet( HitPos, Caliber, Velocity, HitWorld, Material )
5 params2 views

SF.acfShiftTime

Starfall

SVerified

Returns the time in ms an ACF gearbox takes to change gears

Entity:acfShiftTime()
0 params→ 1 return2 views

SF.acfSteerRate

Starfall

SVerified

Sets the steer ratio for an ACF gearbox

Entity:acfSteerRate(rate)
1 params2 views

SF.acfShiftDown

Starfall

SVerified

Cause an ACF gearbox to shift down

Entity:acfShiftDown()
0 params2 views

SF.acfFuelLevel

Starfall

SVerified

Returns the amount of fuel in an ACF fuel tank or linked to engine as a percentage of capacity

Entity:acfFuelLevel()
0 params→ 1 return1 views

SF.acfIsReloading

Starfall

SVerified

Returns true if an ACF gun is reloading

Entity:acfIsReloading()
0 params→ 1 return2 views

SF.acfHoldGear

Starfall

SVerified

Applies gear hold for an automatic ACF gearbox

Entity:acfHoldGear(hold)
1 params1 views

SF.acfIsElectric

Starfall

SVerified

Returns true if an ACF engine is electric

Entity:acfIsElectric()
0 params→ 1 return2 views

SF.acfGetLinkedWheels

Starfall

SVerified

Returns any wheels linked to this engine/gearbox or child gearboxes

Entity:acfGetLinkedWheels()
0 params→ 1 return2 views

SF.acfClutchLeft

Starfall

SVerified

Sets the left clutch for an ACF gearbox

Entity:acfClutchLeft(clutch)
1 params2 views

ACE.SInDistance

ACE

CNeeds Review

Used for those extremely quiet sounds, which should be heard close to the player

function ACE.SInDistance( Pos, Distance )
2 params2 views

ACE.Points.MaterialEff

ACE.Points

SNeeds Review

Returns nil for unknown materials so display code can fall back to live material data.

function ACE.Points.MaterialEff(mat)
1 params1 views

ACE_GetExplosiveMasses

ACE

SNeeds Review

Filler / casing masses from a charge volume (cu in). Filler uses the same HE density as shells (scaled by ExplosiveHEMul so a hand charge carries a few kg, not tens). Returns: fillerMass (HE), fragMass (casing, for blast frag), physMass (what the prop actually weighs - much lighter than solid steel, since a charge is mostly filler + thin casing, not a billet).

function ACE_GetExplosiveMasses(volCuIn, fillerFraction)
2 params2 views

ACE_GetAllGuidanceNamesExcept

ACE

SNeeds Review

No description available.

function ACE_GetAllGuidanceNamesExcept(list)
1 params2 views

ACE.Points.ChargeEntCost

ACE.Points

SNeeds Review

Mounted charge (scalable explosives / bombs family) -> scaled points. Prices the charge's REAL filler mass -- self.FillerMass, kg of HE, set once at spawn from the scaled charge volume -- as mounted ordnance via ACE.Points.ChargeCost. 0 for a filler-less/invalid entity.

function ACE.Points.ChargeEntCost(ent)
1 params1 views

ACE_GetGunFirepowerPointsFor

ACE

SNeeds Review

No description available.

function ACE_GetGunFirepowerPointsFor(ent, _)
2 params2 views

ACE_PenRanging

ACE

SNeeds Review

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 ACE_PenRanging(MuzzleVel, DragCoef, ProjMass, PenArea, LimitVel, Range)
6 params2 views

ACF_Spall

ACF

SNeeds Review

Handles normal spalling

function ACF_Spall( HitPos , HitVec , Filter , KE , Caliber , _ , Inflictor , Material)
8 params2 views

SF.acfFuelUse

Starfall

SVerified

Returns the current fuel consumption in liters or kilowatts per minute of an engine

Entity:acfFuelUse()
0 params→ 1 return1 views

ACF_defineGun

ACF

SNeeds Review

Gun definition

function ACF_defineGun( id, data )
2 params3 views
Page 1 of 35