AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   [HELP] TF2 Flamethrower Halloween particle (https://forums.alliedmods.net/showthread.php?t=341322)

UberMedicFully 01-16-2023 15:58

[HELP] TF2 Flamethrower Halloween particle
 
Hello, I would like to trigger the Flamethrower halloween spell when igniting somebody through the plugin.
I also can't seem to find the particle that does that so if the first option doesnt work, that i could just attach it to the victim manually.

PC Gamer 01-16-2023 17:36

Re: [HELP] TF2 Flamethrower Halloween particle
 
You can achieve the green flame by using TF2Attributes to apply attribute 1008, "SPELL: Halloween green flames" to the weapon.

Let me know if you need help.

UberMedicFully 01-16-2023 17:44

Re: [HELP] TF2 Flamethrower Halloween particle
 
I totatlly forgot to enable the holiday for fullmoon, I will reply when it worked, thank you anyway!

UberMedicFully 01-16-2023 17:53

Re: [HELP] TF2 Flamethrower Halloween particle
 
Didn't work, sadly, in Freak Fortress 2 the boss has a ubersaw, i guess thats why it doesnt work?

PC Gamer 01-16-2023 18:21

Re: [HELP] TF2 Flamethrower Halloween particle
 
The "SPELL: Halloween green flames" attribute only works on flamethrowers. You can make a plugin that applies it to all Pyros or only apply it to the Pyro(s) you target.

UberMedicFully 01-16-2023 18:28

Re: [HELP] TF2 Flamethrower Halloween particle
 
Well, the boss ignites victims upon rage and it would look fancier with the green flames, therefore its a medic boss, i guess its impossible then.

BeepIsla 01-16-2023 19:51

Re: [HELP] TF2 Flamethrower Halloween particle
 
In theory you have to ignite the target with a specific weapon and set that weapon to have green flames via attributes.

So you have to create a flamethrower, put it anywhere in the world doesn't matter, don't even have to give anyone owner nor equip it, and then call "CTFPlayerShared::Burn" with that weapon. SourceMod provides a "TF2_IgnitePlayer" function which does exactly that but it does not support passing the weapon entity (Yet, maybe someone will make a PR for it, see SourceMod Github Repo). So for now you would have to SDKCall it manually probably.

Note: For the duration parameter you would have to be careful because it scales with the weapon entity based on increased or decreased burn time

UberMedicFully 01-16-2023 21:35

Re: [HELP] TF2 Flamethrower Halloween particle
 
Thank you alot for the response, will be testing tomorrow!
It's weird that the TF2_Ignite doesnt work like that tbh.


All times are GMT -4. The time now is 02:18.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.