PDA

View Full Version : Certain weapons are not affected by attributes at all


xSpeced
11-24-2013, 19:01
Running MM 1.10, SM 1.5.2 and TF2Items HG258

Some attributes that literally worked a couple days back no longer work.
Those weapons simple are not affected by the custom attributes

ie. Rocket Launcher(all), Flare gun, Medicrossbow and more.

Any help would be appreciated.

Oshizu
11-24-2013, 19:08
Same here

asherkin
11-25-2013, 03:16
Please attach your tf2items.weapons.txt and tf2.items.txt files, with no modifications please.

xSpeced
11-26-2013, 15:24
My list is just a bunch of weapons with attribute 76 at 4.0

xkirby
11-27-2013, 13:27
I can say for a fact that this happens, although we're currently using the item file with Vs. Saxton Hale and it works fine during the first round. After that, it fails to load the stats for some items. Not sure why.

EDIT: I don't personally have the files. I'll try to get Speced to post them for ya.

Powerlord
11-27-2013, 14:31
I can say for a fact that this happens, although we're currently using the item file with Vs. Saxton Hale and it works fine during the first round. After that, it fails to load the stats for some items. Not sure why.

EDIT: I don't personally have the files. I'll try to get Speced to post them for ya.

That's because VSH does a bunch of its own item overrides.

xSpeced
11-27-2013, 17:26
That's because VSH does a bunch of its own item overrides.

If that's the case, how would one make it work since it does work with VSH 1.42 like a couple days before.

Wliu
11-27-2013, 19:36
Some guy using FF2 pm'd me a few weeks back and said the way he did it was to unload the main VSH/FF2 plugin, wait ~3000 seconds, then re-enable it.

To quote him:
sm plugins unload freak_fortress_2
wait 3000
sm plugins load freak_fortress_2

Bam custom weapons working

xSpeced
11-27-2013, 22:04
Some guy using FF2 pm'd me a few weeks back and said the way he did it was to unload the main VSH/FF2 plugin, wait ~3000 seconds, then re-enable it.

To quote him:

The problem with that is well, first round wouldn't work. And HP huds dont show anymroe

Requiesta
11-27-2013, 23:13
The problem here is that the TF2Items adjustments in the code are called "after" your own tf2items adjustments. You can't fix this without adjusting the VSH code itself. The TF2 Items Configs are called on map or on reload while VSH TF2Items adjustments are called specifically when the weapon spawns.

xkirby
11-28-2013, 12:16
If that IS how it works, then I can think of 2 solutions:

1) Remove those bonus stats from the VSH plugin.
2) Overwrite the changes made by the VSH plugin using another plugin.

I'm more inclined to use #2, as I'm already writing a private plugin to change certain weapon behaviors anyway. Would this be the best approach?

EDIT: It'll most likely use the same TF2Items file, though I'll have to check how that file gets read in the first place. Not too big of a deal I hope.

xSpeced
11-29-2013, 00:27
The problem here is that the TF2Items adjustments in the code are called "after" your own tf2items adjustments. You can't fix this without adjusting the VSH code itself. The TF2 Items Configs are called on map or on reload while VSH TF2Items adjustments are called specifically when the weapon spawns.

Would something like onRoundStart, wait 10 seconds, reload TF2Items work?

Bjorngomes
11-29-2013, 07:39
Like i sayd in my solved stuff reinstall sourcemod maybe? i think that works because works with me

xSpeced
11-29-2013, 21:29
Like i sayd in my solved stuff reinstall sourcemod maybe? i think that works because works with me

What do ya mean?

Bjorngomes
11-30-2013, 02:50
What do ya mean?

update sourcemod and mm updated tf2items aswell that works for me