summaryrefslogtreecommitdiff
path: root/source/sourcemod/scripting/include/gamechaos/tempents.inc
diff options
context:
space:
mode:
authoraura <nw@moneybot.cc>2026-02-17 23:42:09 +0100
committeraura <nw@moneybot.cc>2026-02-17 23:42:09 +0100
commit5e2eb7d67ae933b7566f1944d0bb7744da03d586 (patch)
tree054acff1113270a9cd07933df760f3768c1b6853 /source/sourcemod/scripting/include/gamechaos/tempents.inc
parent341db13a008dc12bb22ceb50452d93d01476308c (diff)
move source stuff to its own folder
Diffstat (limited to 'source/sourcemod/scripting/include/gamechaos/tempents.inc')
-rw-r--r--source/sourcemod/scripting/include/gamechaos/tempents.inc62
1 files changed, 62 insertions, 0 deletions
diff --git a/source/sourcemod/scripting/include/gamechaos/tempents.inc b/source/sourcemod/scripting/include/gamechaos/tempents.inc
new file mode 100644
index 0000000..7ec9b5a
--- /dev/null
+++ b/source/sourcemod/scripting/include/gamechaos/tempents.inc
@@ -0,0 +1,62 @@
+
+#if defined _gamechaos_stocks_tempents_included
+ #endinput
+#endif
+#define _gamechaos_stocks_tempents_included
+
+// improved api of some tempents
+
+#define GC_TEMPENTS_VERSION 0x01_00_00
+#define GC_TEMPENTS_VERSION_STRING "1.0.0"
+
+#include <sdktools_tempents>
+
+/**
+ * Sets up a point to point beam effect.
+ *
+ * @param start Start position of the beam.
+ * @param end End position of the beam.
+ * @param modelIndex Precached model index.
+ * @param life Time duration of the beam.
+ * @param width Initial beam width.
+ * @param endWidth Final beam width.
+ * @param colour Color array (r, g, b, a).
+ * @param haloIndex Precached model index.
+ * @param amplitude Beam amplitude.
+ * @param speed Speed of the beam.
+ * @param fadeLength Beam fade time duration.
+ * @param frameRate Beam frame rate.
+ * @param startFrame Initial frame to render.
+ */
+stock void GCTE_SetupBeamPoints(const float start[3],
+ const float end[3],
+ int modelIndex,
+ float life = 2.0,
+ float width = 2.0,
+ float endWidth = 2.0,
+ const int colour[4] = {255, 255, 255, 255},
+ int haloIndex = 0,
+ float amplitude = 0.0,
+ int speed = 0,
+ int fadeLength = 0,
+ int frameRate = 0,
+ int startFrame = 0)
+{
+ TE_Start("BeamPoints");
+ TE_WriteVector("m_vecStartPoint", start);
+ TE_WriteVector("m_vecEndPoint", end);
+ TE_WriteNum("m_nModelIndex", modelIndex);
+ TE_WriteNum("m_nHaloIndex", haloIndex);
+ TE_WriteNum("m_nStartFrame", startFrame);
+ TE_WriteNum("m_nFrameRate", frameRate);
+ TE_WriteFloat("m_fLife", life);
+ TE_WriteFloat("m_fWidth", width);
+ TE_WriteFloat("m_fEndWidth", endWidth);
+ TE_WriteFloat("m_fAmplitude", amplitude);
+ TE_WriteNum("r", colour[0]);
+ TE_WriteNum("g", colour[1]);
+ TE_WriteNum("b", colour[2]);
+ TE_WriteNum("a", colour[3]);
+ TE_WriteNum("m_nSpeed", speed);
+ TE_WriteNum("m_nFadeLength", fadeLength);
+} \ No newline at end of file