-
Notifications
You must be signed in to change notification settings - Fork 3
Wiremod API
Deyan Dobromirov edited this page Jan 13, 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.
Class methods | 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 | |
: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 | |
: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 | |
: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 |