CARVIEW |
Select Language
HTTP/2 200
date: Sun, 12 Oct 2025 03:15:08 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=d15916dac4731b34d76ff286a1035204327cf35a6c37e18cc2dca9444673a548a%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22Tzo2hRe2PVRbXZhVEfoCVcIF_WMXlIBo%22%3B%7D; HttpOnly; Path=/
cf-ray: 98d36e576fcc8e4d-BLR
/** * Sets up a boxed beam effect. * * Ported from eventscripts vecmath - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Sets up a boxed beam effect.
- *
- * Ported from eventscripts vecmath library
- *
- * @param client The client to show the box to.
- * @param upc One upper corner of the box.
- * @param btc One bottom corner of the box.
- * @param ModelIndex Precached model index.
- * @param HaloIndex Precached model index.
- * @param StartFrame Initital frame to render.
- * @param FrameRate Beam frame rate.
- * @param Life Time duration of the beam.
- * @param Width Initial beam width.
- * @param EndWidth Final beam width.
- * @param FadeLength Beam fade time duration.
- * @param Amplitude Beam amplitude.
- * @param color Color array (r, g, b, a).
- * @param Speed Speed of the beam.
- * @noreturn
- * -------------------------------------------------------------------------- */
- TE_SendBeamBoxToClient(client, const Float:upc[3], const Float:btc[3], ModelIndex, HaloIndex, StartFrame, FrameRate, const Float:Life, const Float:Width, const Float:EndWidth, FadeLength, const Float:Amplitude, const Color[4], Speed)
- {
- // Create the additional corners of the box
- decl Float:tc1[] = {0.0, 0.0, 0.0};
- decl Float:tc2[] = {0.0, 0.0, 0.0};
- decl Float:tc3[] = {0.0, 0.0, 0.0};
- decl Float:tc4[] = {0.0, 0.0, 0.0};
- decl Float:tc5[] = {0.0, 0.0, 0.0};
- decl Float:tc6[] = {0.0, 0.0, 0.0};
- AddVectors(tc1, upc, tc1);
- AddVectors(tc2, upc, tc2);
- AddVectors(tc3, upc, tc3);
- AddVectors(tc4, btc, tc4);
- AddVectors(tc5, btc, tc5);
- AddVectors(tc6, btc, tc6);
- tc1[0] = btc[0];
- tc2[1] = btc[1];
- tc3[2] = btc[2];
- tc4[0] = upc[0];
- tc5[1] = upc[1];
- tc6[2] = upc[2];
- // Draw all the edges
- TE_SetupBeamPoints(upc, tc1, ModelIndex, HaloIndex, StartFrame, FrameRate, Life, Width, EndWidth, FadeLength, Amplitude, Color, Speed);
- TE_SendToClient(client);
- TE_SetupBeamPoints(upc, tc2, ModelIndex, HaloIndex, StartFrame, FrameRate, Life, Width, EndWidth, FadeLength, Amplitude, Color, Speed);
- TE_SendToClient(client);
- TE_SetupBeamPoints(upc, tc3, ModelIndex, HaloIndex, StartFrame, FrameRate, Life, Width, EndWidth, FadeLength, Amplitude, Color, Speed);
- TE_SendToClient(client);
- TE_SetupBeamPoints(tc6, tc1, ModelIndex, HaloIndex, StartFrame, FrameRate, Life, Width, EndWidth, FadeLength, Amplitude, Color, Speed);
- TE_SendToClient(client);
- TE_SetupBeamPoints(tc6, tc2, ModelIndex, HaloIndex, StartFrame, FrameRate, Life, Width, EndWidth, FadeLength, Amplitude, Color, Speed);
- TE_SendToClient(client);
- TE_SetupBeamPoints(tc6, btc, ModelIndex, HaloIndex, StartFrame, FrameRate, Life, Width, EndWidth, FadeLength, Amplitude, Color, Speed);
- TE_SendToClient(client);
- TE_SetupBeamPoints(tc4, btc, ModelIndex, HaloIndex, StartFrame, FrameRate, Life, Width, EndWidth, FadeLength, Amplitude, Color, Speed);
- TE_SendToClient(client);
- TE_SetupBeamPoints(tc5, btc, ModelIndex, HaloIndex, StartFrame, FrameRate, Life, Width, EndWidth, FadeLength, Amplitude, Color, Speed);
- TE_SendToClient(client);
- TE_SetupBeamPoints(tc5, tc1, ModelIndex, HaloIndex, StartFrame, FrameRate, Life, Width, EndWidth, FadeLength, Amplitude, Color, Speed);
- TE_SendToClient(client);
- TE_SetupBeamPoints(tc5, tc3, ModelIndex, HaloIndex, StartFrame, FrameRate, Life, Width, EndWidth, FadeLength, Amplitude, Color, Speed);
- TE_SendToClient(client);
- TE_SetupBeamPoints(tc4, tc3, ModelIndex, HaloIndex, StartFrame, FrameRate, Life, Width, EndWidth, FadeLength, Amplitude, Color, Speed);
- TE_SendToClient(client);
- TE_SetupBeamPoints(tc4, tc2, ModelIndex, HaloIndex, StartFrame, FrameRate, Life, Width, EndWidth, FadeLength, Amplitude, Color, Speed);
- TE_SendToClient(client);
- }
Advertisement
Add Comment
Please, Sign In to add comment
-
✅⭐ Make huge profits on trading ⭐⭐ S
JavaScript | 2 sec ago | 0.25 KB
-
⭐✅ Marketplace Glitch ✅ Working ✅ NEVER SEEN...
JavaScript | 11 sec ago | 0.25 KB
-
⭐✅ Exploit 2500$ in 15 Minutes⭐⭐⭐ G
JavaScript | 20 sec ago | 0.25 KB
-
Free Crypto Method (NEVER SEEN BEFORE)⭐⭐ X
JavaScript | 30 sec ago | 0.25 KB
-
⭐✅ Swapzone Glitch ✅ Working ⭐⭐ X
JavaScript | 40 sec ago | 0.25 KB
-
📌 Swapzone +37% glitch ⭐ T
JavaScript | 1 min ago | 0.25 KB
-
Free Crypto Method (NEVER SEEN BEFORE)⭐⭐ X
JavaScript | 1 min ago | 0.25 KB
-
✅⭐ Make huge profits on trading ⭐⭐ B
JavaScript | 1 min ago | 0.25 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand