-
Notifications
You must be signed in to change notification settings - Fork 3
Wiremod API
Deyan Dobromirov edited this page Jan 14, 2022
·
20 revisions
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.
Beware of the E2 performance though. You can create feebback loops for controling 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
|
|
:laserGetTraceHitPhysicsBone () |
Returns the last trace hit physics bone ID
|
|
: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
|
|
: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 |
|
: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 |
Other helper functions | Out | Description |
---|---|---|
laserGetBeamIsPower (,) |
Returns the flag indicating the power enabled threshold | |
laserGetBeamPower (,) |
Returns the calcuated power by external width and damage | |
laserGetReflectDataKey () |
Returns the reflect loop key database entry |
|
laserGetReflectDataRatio () |
Returns the reflect ratio database entry |
|
laserGetReflectVector (,) |
Returns the reflected vector by external incident and normal
|
|
laserGetRefractDataIndex () |
Returns the refract index database entry |
|
laserGetRefractDataKey () |
Returns the refract loop key database entry |
|
laserGetRefractDataRatio () |
Returns the refract ratio database entry |
|
laserGetRefractIsOut () |
Returns a flag indicating the beam exiting the medium after refracting |
|
laserGetRefractVector (,,,) |
Returns the refracted vector by external incident , normal and medium indices |