Author Topic: Team Fortress Two Particles On Your Player  (Read 5161 times)

0 Members and 1 Guest are viewing this topic.

Offline WispySkies

  • Full Member
  • ***
  • Posts: 144
  • Karma: 0
  • I make random commands and Lua errors.
Team Fortress Two Particles On Your Player
« on: December 20, 2015, 06:23:04 PM »
What is this?
Something me and a friend spent ages of time on -- anyway -- this just gives you a TF2 hat effect onto your player.

Requirements?
TF2 has to be mounted, and ULX and ULib should be up to date on your server so that's fine.

How do I use this?
In the chat do !particle NAME PARTICLE
Say I wanted to give Timmy unusual_orbit_fire_dark I would do:
!particle Timmy unusual_orbit_fire_dark
Or myself: !particle WispySkies unusual_orbit_fire_dark
When trying to !stopparticle NAME PARTICLE it ignores the particle argument {which is fine} but clears the newest particle if you have multiple on. (Fixed bug)
Typing "particlehats_print_particles" in your console will give you the particle list.

In the console it says unable to generate X particle (or something!)
Write a reply here or on the GitHub page and I'll try to fix that as soon as I can.

Source code? -- Download available here (in .zip)
https://www.github.com/WispySkies/particle_hats/

Images!


Code: [Select]
Change Log:
1.0.0
- Project released
1.0.1
-Fixed stacking particles, removed Circling and some Orbit particles as they stack, and cannot be removed
1.1.1
-You only see the particles in thirdperson, not firstperson so your view is crystal clear. (But they're still there!)
1.2.1
- Tweaked strings to sound better.
- Added an author/coded by (me & Timmy).
- Merged two if SERVER statements
1.2.2
- Moved Particle list (Merging the two if statements caused errors as the particle list wasn't yet declared.)
1.3.2
- Created the convar "particles_user_toggle". When set to 1 anyone may give the self a particle but no one else, players added to the Admin group in users.txt will be allowed to give others, such as the original command without a variable.
1.3.3
- Convar didn't change the access of the command, just changed the target value (such as target = target etc.)
1.4.3
-Deleted convar and user targeting, created ULX errors.
1.4.4 FancyLogAdmin error, missing/mis-ordered syntax.
« Last Edit: January 10, 2016, 09:30:43 AM by WispySkies »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Particle "Hats" TF 2 Effects from Hats on Your Character
« Reply #1 on: December 20, 2015, 07:36:46 PM »
Nice
Do a small quick screenshot, animated gif, or even a video of a few different ones!
I didn't even know TF2 had hats.
Is there a way to get a list of hat effects, or do they autocomplete in game console?

"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Particle "Hats" TF 2 Effects from Hats on Your Character
« Reply #2 on: December 20, 2015, 08:04:05 PM »
I didn't even know TF2 had hats.




TF2 is synonymous with hats.

Offline WispySkies

  • Full Member
  • ***
  • Posts: 144
  • Karma: 0
  • I make random commands and Lua errors.
Re: Particle "Hats" TF 2 Effects from Hats on Your Character
« Reply #3 on: December 21, 2015, 06:12:58 AM »
Nice
Do a small quick screenshot, animated gif, or even a video of a few different ones!
I didn't even know TF2 had hats.
Is there a way to get a list of hat effects, or do they autocomplete in game console?
As of last night the command worked, but they should auto complete to the console. The newest GitHub push should change the amount of available particles to use as the circling and a few of the orbits stack each-other and cannot  be removed via !stopparticles. Added an image :D
« Last Edit: December 21, 2015, 07:03:31 AM by WispySkies »

Offline Timmy

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 252
  • Karma: 168
  • Code monkey
Re: Particle "Hats" TF 2 Effects from Hats on Your Character
« Reply #4 on: December 21, 2015, 08:27:59 AM »
Wooo! I had never played around with particles before so this was a really fun, educational project to help with. I particularly like the superrare_ghosts particle. So spooky! ;D

« Last Edit: October 03, 2020, 05:41:06 AM by Timmy »