Quote:
Originally Posted by Popcornmap203
Hi I'm Having a problem with making custom weapons, i want to give sniper a scattergun but it didn't work.
[omitted for brevity]
I don't know if I'm doing it wrong or it's something that is not made for custom weapons yet. i looked up online and had no results.
|
The "inherits" value is fine. Assigning it as a Heavy's secondary won't work in this case as it's still going to occupy the primary slot (you can't make weapons occupy weapon slots they weren't designed for without an obscene amount of jank), but it would be fine as a Sniper primary.
For "max health additive bonus" you'd want to use the "attributes_game" section, since it is an existing native attribute provided by the game. "attributes_custom" is specifically for attributes provided by SourceMod plugins using the Custom Attribute Framework (CAF).
"override_building_health" doesn't exist to my knowledge, though if you've downloaded a plugin or extension that provides it, you'll want to check and see if it is a native or CAF-based attribute. Confusing, I know.
Especially these days, with injected attributes being a thing.
Quote:
Originally Posted by Popcornmap203
I have a question?
I'm looking at the tf2 wiki and the TF2 Attribute List and I don't know if it exist or not, I even looked at custom made Attributes but still nothing. but is there a disable damage fall off or decrease damage fall off for hitscan weapons. i'm using the scattergun as a base to become a sniper hybrid.
|
I may be misremembering but you may be able to strip falloff entirely by removing the
DMG_USEDISTANCEMOD flag during a damage hook, but there currently isn't any public one to do arbitrary adjustments to falloff / rampup to my knowledge - it's tightly coupled with the rest of the damage-dealing logic.
__________________