Fire Balls #6
tsuza
started this conversation in
Created attributes
Replies: 1 comment 1 reply
-
Looks like you forgot download links for this and #7. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Fireballs Attribute
This custom attribute lets you throw fireballs! You've become a wizard, Harry!
You basically have a fuel system. Every 25% you can throw a fireball. The damage and speed depend on how much fuel you have. The more fuel you have, the more damage but also less speed it has. The damage fluctuates ( so like, it can deal from 300 dmg up to 500 dmg ), however, the more fuel it has the less it fluctuates.
Here is a video if you're interested to see how it works first.
It was mainly made with Freak Fortress 2 in mind, so it might not fit TF2's normal gameplay.
How to apply the attribute
Shove it inside tf_custom_attributes.txt if you want to replace a normal weapon's model ( or anything else that supports custom attributes ) or in the Custom Attributes section inside a custom weapon's cfg if you use Custom Weapons X.
These are its arguments. You can change 'em however it pleases you.
Technical Details
If you've taken a look at the source code you might be wondering why I store everything rather than getting them just whenever I need them. Well, for optimization reasons. I want to avoid any lags since OnTakeDamageAlive & the rest might get called a lot, especially when it's 32/32 players. Sure, it might cause inconsistencies in certain if something happens, but you gotta do what you gotta do.
Dependencies
TF2 Wearables
Stocksoup if you want to compile it yourself.
Let me know if there are any issues.
Beta Was this translation helpful? Give feedback.
All reactions