Garry's Mod

Garry's Mod

54 beoordelingen
[E2] Particle Core
2
   
Prijs
Toevoegen aan favorieten
Toegevoegd aan favorieten
Verwijderen uit favorieten
Content Type: Addon
Addon Type: Effects
Addon Tags: Build, Realism
Bestandsgrootte
Geplaatst op
Bijgewerkt op
4.059 KB
3 jan 2017 om 14:35
10 dec 2017 om 8:18
2 wijzigingsnotities (weergeven)

Abonneren om te downloaden
[E2] Particle Core

Omschrijving
Adds in particle functionality to Expression 2.
Reupload to workshop.

Thanks to 343N (Malcolm Turnbull) for updating and fixing parts of the code to reduce the footprint of the extension and to minimize crashes.

Function list: (NOTE: I honestly can't be bothered right now to get all the arguments here, but everything is fully explained in E2helper.)

- particleSetStartSize: Sets the size of the particle at creation (Default: 16)
- particleSetDuration: Sets the particle duration (Default: 1)
- particleCreate: Creates a particle with previously defined settings. (All settings are persistent)
- particleSetVelocity: Sets the particle's velocity upon creation, independent from gravity. (Default: 0, 0, 0)
- particleSetStartAlpha: Sets the Alpha of the particle at creation (Default: 255)
- particleSetColor: Sets the particle color (Default: 255, 255, 255)
- particleBounce: Sets the bounciness of particles. (Default: 0.3)
- particleSetEndSize: Sets the size of the particle at deletion (Default: 16)
- particleGravity: Sets the gravity of particles. (Default: 0, 0, -9.8)
- particleCanCreate: Returns 1 when particle() will successfully spawn a particle until the limit is reached.
- particlesList: Returns an array of material paths for use with particle functions.
- particleSetEndLength: Sets the length of the particle at deletion. MUST BE SET AFTER SETSIZE. Length always points towards direction of velocity. (Default: nil)
- particleCollision: Enables or disables particle collision. (Default: true)
- particleSetPitch: Sets the particle's pitch (Default: 0)
- particleSetPosition: Sets the particle position (Default: 0, 0, 0)
- particleSetStartLength: Sets the length of the particle at creation. MUST BE SET AFTER SETSIZE. Length always points towards direction of velocity. (Default: nil)
- particleSetEndAlpha: Sets the Alpha of the particle at deletion (Default: 255)
- particleSetMaterial: Sets the particle material path (works with PNGs now!)
- particleSetMaterialList: Sets the particle to use a list and select a random material from it, use an array of path strings.
102 opmerkingen
SniperGnome 28 mei 2023 om 7:52 
@Tumble Trash Official
https://pastebin.com/Yg717TVT
Vurv 6 sep 2022 om 0:29 
This is a notice that some functionality this extension will likely be broken by wiremod/wire#2399 if you don't convert your ``e2function``s to return proper ``Vector`` and ``Angle`` userdata rather than tables of three numbers.

This is a copy pasted message, I cba to download the addon and check myself if it does contain use of these. Feel free to delete if this is non-applicable.
DaCat001 30 sep 2021 om 13:01 
why is there no example chips or tutorials anywhere
Napalm (OOF) 1 aug 2021 om 13:26 
Hey did anyone ever do an example E2?
Tumble Trash᠌ ⁧⁧ Official 8 dec 2020 om 17:53 
can someone remake this E2? https://www.youtube.com/watch?v=yavq8dzPIiU
Business Cat 19 aug 2019 om 15:27 
is there any e2 plugin that can? would be much appreciated
Xyvoracle  [auteur] 19 aug 2019 om 5:02 
Not that I know of.
Business Cat 18 aug 2019 om 19:50 
is there a way to call up existing particle systems from pcf files? that would be much more useful than creating new particle systems inside of the e2 for what i need
DeHelleman 27 apr 2019 om 3:01 
i found an older version of the addon and that one works fine, it was an old e2 based on the ParticleCore so likely during some update, it started f*cking up, although thank you for trying anyways my dude, i barely know how to make an E2 work myself, let stand with an extension that i havent touched in years, so i was just plain confused with what would be a good replacement for the particle() that no longer exists, but the older version i found still has that piece so it works now
Xyvoracle  [auteur] 26 apr 2019 om 16:36 
It's been so long since I worked on this I honestly don't know what works, what doesn't, and what isn't included at all. If I remember rightly you can still use particleCreate() with all the other functions to set one up. I might look into particle() soon but chances are slim since I don't play GMod often anymore.