Guest User

Untitled

a guest
Jan 17th, 2020
324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. @name particlecore v3 sample
  2. @persist
  3.  
  4. if (first()) {
  5.  
  6. # these setup functions are only called once, the bulk of the data is sent from this point
  7.  
  8. # RED PARTICLE - most compact syntax
  9. particleCreate("a","effects/redflare",vec(255,0,0),0,50,255,5,20,5,20,50,10,vec(0,0,20),1)
  10.  
  11. # YELLOW PARTICLE - simple easy syntax
  12. particleCreate("b", "effects/muzzleflash1", vec(255,255,0))
  13.  
  14. # BLUE PARTICLE - more spaced out varied code
  15. # this one has a numeric index, they can be strings or numbers
  16. particleCreate(500)
  17. particleCollision(500,0)
  18. particleDuration(500,20)
  19. particleGravity(500,vec(0,0,-5))
  20.  
  21. # GREEN PARTICLE (LEGACY SYNTAX)
  22. # particle core v1 (this does not run the particle in this version)
  23. particle(10,5,20,"effects/fire_cloud1",vec(0,255,255),entity():pos()+vec(0,0,100),vec(200,0,0))
  24. }
  25.  
  26. interval(50)
  27.  
  28. # actually make the particles appear
  29. particleStart("a",entity():pos()+vec(0,0,30),randvec(-30,30))
  30. particleStart("b",entity():pos()+vec(0,0,30),randvec(-30,30))
  31. particleStart(500,entity():pos()+vec(0,0,30),randvec(-30,30))
  32.  
  33. # particle core v1 (this creates the legacy particle)
  34. particleStart(entity():pos()+vec(0,0,50))
Advertisement
Add Comment
Please, Sign In to add comment