-
Notifications
You must be signed in to change notification settings - Fork 3
Wiremod API
Deyan Dobromirov edited this page Nov 3, 2023
·
20 revisions
Do NOT edit this documentation manually. This page is automatically generated!
The wiremod Lua extension Laser
is designed to be used with Wire Expression2
in mind and implements general functions for retrieving various values form a dominant source entity or database entries.
Beware of the E2 performance though. You can create feedback loops for controlling source beam parameters.
Beam data parameters | Out | Description |
---|---|---|
:laserGetDataBounceMax () |
Returns the maximum allowed laser beam bounces |
|
:laserGetDataBounceRest () |
Returns the remaining laser beam bounces |
|
:laserGetDataDamage () |
Returns the remaining laser beam damage |
|
:laserGetDataDirect () |
Returns the last laser beam direction vector
|
|
:laserGetDataForce () |
Returns the remaining laser beam force |
|
:laserGetDataIsReflect () |
Returns the laser source reflect flag |
|
:laserGetDataIsRefract () |
Returns the laser source refract flag |
|
:laserGetDataLength () |
Returns the laser source beam length |
|
:laserGetDataLengthRest () |
Returns the remaining laser beam length |
|
:laserGetDataOrigin () |
Returns the last laser beam origin vector
|
|
:laserGetDataPointDamage (,) |
Returns the laser beam node damage |
|
:laserGetDataPointForce (,) |
Returns the laser beam node force |
|
:laserGetDataPointIsDraw (,) |
Returns the laser beam node draw flag |
|
:laserGetDataPointNode (,) |
Returns the laser beam node location vector
|
|
:laserGetDataPointSize () |
Returns the laser beam nodes count |
|
:laserGetDataPointWidth (,) |
Returns the laser beam node width |
|
:laserGetDataRange () |
Returns the laser beam traverse range |
|
:laserGetDataSource () |
Returns the laser beam source entity
|
|
:laserGetDataWidth () |
Returns the remaining laser beam width |
Beam trace parameters | Out | Description |
---|---|---|
:laserGetTraceAllSolid () |
Returns the last trace all solid flag |
|
:laserGetTraceContents () |
Returns the last trace hit surface contents enums
|
|
:laserGetTraceDispFlags () |
Returns the last trace hit surface displacement flag enums
|
|
:laserGetTraceEntity () |
Returns the last trace entity
|
|
:laserGetTraceFraction () |
Returns the last trace used hit fraction [0-1]
|
|
:laserGetTraceFractionLS () |
Returns the last trace fraction left solid [0-1]
|
|
:laserGetTraceHit () |
Returns the last trace hit flag |
|
:laserGetTraceHitBox () |
Returns the last trace hit box ID
|
|
:laserGetTraceHitGroup () |
Returns the last trace hit group enums
|
|
:laserGetTraceHitNoDraw () |
Returns the last trace hit no-draw brush |
|
:laserGetTraceHitNonWorld () |
Returns the last trace hit non-world flag |
|
:laserGetTraceHitNormal () |
Returns the last trace hit normal vector
|
|
:laserGetTraceHitPos () |
Returns the last trace hit position vector
|
|
:laserGetTraceHitSky () |
Returns the last trace hit sky flag |
|
:laserGetTraceHitTexture () |
Returns the last trace hit texture |
|
:laserGetTraceHitWorld () |
Returns the last trace hit world flag |
|
:laserGetTraceMatType () |
Returns the last trace material type enums
|
|
:laserGetTraceNormal () |
Returns the last trace normal vector
|
|
:laserGetTracePhysicsBone () |
Returns the last trace hit physics bone ID
|
|
:laserGetTraceStartPos () |
Returns the last trace start position |
|
:laserGetTraceStartSolid () |
Returns the last trace start solid flag |
|
:laserGetTraceSurfaceFlags () |
Returns the last trace hit surface flags enums
|
|
:laserGetTraceSurfacePropsID () |
Returns the last trace hit surface property ID
|
|
:laserGetTraceSurfacePropsName () |
Returns the last trace hit surface property name |
Class configurations | Out | Description |
---|---|---|
:laserGetBeamDamage () |
Returns the laser source beam damage |
|
:laserGetBeamForce () |
Returns the laser source beam force |
|
:laserGetBeamLength () |
Returns the laser source beam length |
|
:laserGetBeamMaterial () |
Returns the laser source beam material |
|
:laserGetBeamPower () |
Returns the laser source beam power |
|
:laserGetBeamSafety () |
Returns the laser source beam safety |
|
:laserGetBeamWidth () |
Returns the laser source beam width |
|
:laserGetDissolveType () |
Returns the laser source dissolve type name |
|
:laserGetDissolveTypeID () |
Returns the laser source dissolve type ID
|
|
:laserGetEndingEffect () |
Returns the laser source ending effect flag |
|
:laserGetForceCenter () |
Returns the laser source force in center flag |
|
:laserGetKillSound () |
Returns the laser source kill sound |
|
:laserGetNonOverMater () |
Returns the laser source base entity material flag |
|
:laserGetPlayer () |
Returns the laser unit player getting the kill credit |
|
:laserGetReflectRatio () |
Returns the laser source reflection ratio flag |
|
:laserGetRefractRatio () |
Returns the laser source refraction ratio flag |
|
:laserGetStartSound () |
Returns the laser source start sound |
|
:laserGetStopSound () |
Returns the laser source stop sound |
|
:laserIsBeam () |
Returns true when entity can produce output beams |
|
:laserIsPrimary () |
Returns true when entity has primary laser methods |
|
:laserIsSource () |
Returns true when entity is an actual laser source |
|
:laserIsUnit () |
Returns true when entity is registered as unit |
Other helper functions | Out | Description |
---|---|---|
laserGetBeamIsPower (,) |
Returns the flag indicating the power enabled threshold | |
laserGetBeamPower (,) |
Returns the calculated power by external width and damage | |
laserGetDissolveID () |
Converts dissolve type entry to the corresponding ID
|
|
laserGetReflectBeam (,) |
Returns the reflected vector by external incident and normal
|
|
laserGetReflectDataID () |
Returns the reflect loop ID database entry when available |
|
laserGetReflectDataKey () |
Returns the reflect loop key database entry when available |
|
laserGetReflectDataRatio () |
Returns the reflect ratio database entry |
|
laserGetRefractAngleDeg (,) |
Returns the refract interface border angle between two mediums in degrees |
|
laserGetRefractAngleRad (,) |
Returns the refract interface border angle between two mediums in radians |
|
laserGetRefractBeam (,,,) |
Returns the refracted vector by external incident , normal and medium indices |
|
laserGetRefractDataContent () |
Returns the refract loop surface content enum database entry when available |
|
laserGetRefractDataID () |
Returns the refract loop ID database entry when available |
|
laserGetRefractDataIndex () |
Returns the refract index database entry |
|
laserGetRefractDataKey () |
Returns the refract loop key database entry when available |
|
laserGetRefractDataRatio () |
Returns the refract ratio database entry |
|
laserGetRefractIsNext () |
Returns a flag indicating the beam exits the medium after being refracted |
|
laserGetRefractIsSame () |
Returns a flag indicating the same refraction indices arguments are present |