https://github.com/jekyllgrim/Visual-Li ... zscript.zs
The functions are static, contained within the JGP_VisualTrace.
Code: Select all
FireVisualTracer(Actor originator, double dist, int flags = 0, double partDist = 1, int partTics = 1, color partColor = color("00FF00"))
- originator — the actor the trace originates from. If it's a PlayerPawn, it'll fire fire from its eye height (matching the position of its crosshair), otherwise fires from actor center.
- dist — the distance of the trace
- flags — same flags as LineTrace() uses
- partDist — distance between particles
- partTics — how long the particles should exist
- partColor — the color of the particles.
Code: Select all
DrawParticlesBetweenPoints(vector3 startpos, vector3 endpos, double partDist = 1, int partTics = 1, color partColor = color("00FF00"), int flags = SPF_FULLBRIGHT|SPF_NOTIMEFREEZE)
- startpos — coordinates of the first point
- endpos — coordinates of the last point
- partDist — distance between particles
- partTics — how long the particles should exist
- partColor — the color of the particles.
- flags — same flags as A_SpawnParticle uses. SPF_FULLBRIGHT and SPF_NOTIMEFREEZE are enabled by default.