Garry's Mod

Garry's Mod

258 ratings
#ParticlesAPI
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Movie, Scenic
File Size
Posted
Updated
2.734 KB
19 Aug, 2019 @ 2:58pm
21 Aug, 2019 @ 4:10am
5 Change Notes ( view )

Subscribe to download
#ParticlesAPI

Description


>>IN BETA<<

This is PARTICLES API!


Now you can easy create particles in serverside script!
Just use CLua_Particle function!~




Little Tutorial:

How to use it?


include it to serverside script:
include( 'sh_shared_savav_particle_API.lua' )


and use CLua_Particle, this function use traditional particles, i recomend to use it!

CLua_Particle(
AMOUNT, number
RADIUS, number
LIFETIME, number
MATERIAL PATH, string
COLLIDE?, boolean
ORIGIN POS, vector
BOUNCE, numer
AirResistance, number
COLOR, color
ALPHA IN, number
ALPHA OUT, number
SIZE IN, number
SIZE OUT, number
VELOCITY, vector
LIGHTNING?, bolean
GRAVITY, vector
ANGULAR VELOCITY, angle
RANDOM VELOCITY, vector
StartLength, number
EndLength, number
RANDOM SPAWN OFFSET, vector
3D ROTATION " if nil then just 2D sprite | !WORKS BAD! " angle
)

EXAMPLE:

CLua_Particle(5,0,0.71,"trails/laser.vmt",true,ply:GetPos()+Vector(0,0,400),0,0,Color(255,255,255),255,0,0,10,Vector(0,0,0),true,Vector(0,0,-2000),Angle(0,0,0),Vector(0,0,0),0,0,Vector(500,500,0),Angle(0,0,0))

___________________________________________________________

or you can use DrawQuadEasy particles, i don't recomend to use it, rly

Particles_Quad(
AMOUNT, number
RADIUS, number
LIFETIME " DOESN'T WORK AT THIS TIME! USE 1 NUMBER! ", number
MATERIAL PATH, string
ORIGIN POS, vector
COLOR, color
ALPHA IN, number
ALPHA CENTER, number
ALPHA OUT, number
SIZE IN, number
SIZE OUT, number
VELOCITY, vector
ANGULAR VELOCITY, angle
RANDOM VELOCITY, vector
RANDOM SPAWN OFFSET, vector
X SPRITE SCALE, number
Y SPRITE SCALE, number
3D ROTATION " if nil then just 2D sprite " angle
)

EXAMPLE:

Particles_Quad(1,1,1,"particle/particle_smoke_dust.vmt",Vector(),Color(255,255,255),0,255,0,1 ,1,Vector(0,0,0),Angle(0,0,0),Vector(0,0,0),Vector(0,0,0),1,1)




[discord.gg]
[www.patreon.com]
[vk.com]



Popular Discussions View All (1)
5
6 Feb, 2023 @ 7:41pm
BUGS!
ΛLΞΧ
21 Comments
Irish Guy 22 Apr, 2023 @ 3:29am 
socniak
General John McGrew 10 Feb, 2023 @ 2:20am 
@Strontium
Почитай описание
meme lover 5 Aug, 2022 @ 7:48am 
so wut about the sonic one?
Some Feller 7 Jul, 2022 @ 3:28pm 
how do you use the sonic one?
AlienHead 16 Jun, 2022 @ 6:26pm 
fuck this shit im out
DeanThePyro 24 Dec, 2021 @ 7:18pm 
how do i fix the missing textures
Future Cat 20 Feb, 2020 @ 4:13pm 
nothing but mkissing textures
shadowman404 27 Nov, 2019 @ 8:24am 
WHERES THE TOOL
🕳 18 Oct, 2019 @ 1:57pm 
как работает?
Wh1tchfckr 10 Oct, 2019 @ 1:15am 
how it's work?