This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

TF2 Swords after Inferno Update


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 11-05-2017 , 16:56   TF2 Swords after Inferno Update
Reply With Quote #1

I noticed the update removed the "tf_weapon_sword" weapon class from several weapons (Scotsman's Skullcutter, Persian Persuader, etc.).

Does anyone know what weapon class, if any, these weapons are now using?
PC Gamer is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 11-05-2017 , 18:25   Re: TF2 Swords after Inferno Update
Reply With Quote #2

The item schema says the Scotsman's Skullcutter and Persian Persuader are still tf_weapon_sword.

Where exactly are you getting this information?
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 11-05-2017 , 20:49   Re: TF2 Swords after Inferno Update
Reply With Quote #3

1. I may be interpreting it wrong, but patch notes on 20 October update (https://steamdb.info/patchnotes/2217263/) show:

Horseless Headless Horsemann's Headtaker Removed attribute item_class tf_weapon_sword
Eyelander Removed attribute item_class tf_weapon_sword
Nessie's Nine Iron Removed attribute item_class tf_weapon_sword

2. Viewing items_game.txt show that weapons that used to show "item_class tf_weapon_sword" now do not show item_class at all (such as Persian Persuader). Instead, it shows up as "prefab weapon_sword"

3. I use the Uber Upgrades plugin which uses the weapon class to determine upgrade eligibility, and just recently noticed that I can't upgrade swords. I'm assuming this changed in the Inferno update, but I could be wrong.
PC Gamer is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 11-05-2017 , 21:04   Re: TF2 Swords after Inferno Update
Reply With Quote #4

When a weapon references a prefab, it takes on all the properties that the prefab has.

They changed a lot of weapons to use prefabs now in order to prevent mistakes when they modify one version of an item, but not a different version of the same item. Had they properly used it for the Fishcake (which is a Dalokahs Bar reskin) they could have avoided the bug where the Fishcake used different attributes than the Dalokahs bar.

But yes, anything referencing the "weapon_sword" prefab (including items referencing the "weapon_eyelander" or "weapon_battleaxe" prefabs) uses the tf_weapon_sword item_class.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 11-05-2017 at 21:09.
Powerlord is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:54.


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