Raised This Month: $51 Target: $400
 12% 

Help, I have no clue how to use tf2items


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TheDarkStar
Junior Member
Join Date: Aug 2020
Old 08-17-2020 , 21:10   Help, I have no clue how to use tf2items
Reply With Quote #1

All I want to do is be able to set stickybombs to a much higher value, but I have no idea how to do anything.

I assume I can just do

"whatevername"
{
*
{
"20"
{
"quality" "100"
"level" "100"
\\ I don't have any clue what to do here

"1" "88 ; 8"
}
}
}
but it doesn't work. I don't know what I'm doing wrong.

I also want to figure out how to give everyone bi-directional teleporters, but I have no idea how to do that, as I don't know what I would put for the "weapon" part. I mean, what would I assign it to? the toolbox?

Last edited by TheDarkStar; 08-17-2020 at 21:33. Reason: another thing
TheDarkStar is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 08-17-2020 , 23:47   Re: Help, I have no clue how to use tf2items
Reply With Quote #2

I don't use tf2items.weapons.txt so I'm not the best person to respond. However, after reading a bit here's how I think it works.

1. install tf2items and ensure it is running.
2. create a file called tf2items.weapons.txt and put it in the directory labeled: /addons/sourcemod/configs/
3. edit the tf2items.weapons.txt file with the weapons you want modified. Weapons are identified with an item index. The Stickybomb Launcher has an item index of '20'. We can look up item indexes here: https://wiki.alliedmods.net/Team_For...nition_Indexes
4. further edit the tf2items.weapons.txt file to add attributes to the Stickybomb Launcher. For example, attribute 6 is damage bonus. We can look up attribute ids here: https://wiki.teamfortress.com/wiki/L...tem_attributes
5. save the file, and change map. It should work.

Here's a tf2items.weapons.txt file I made for you. Not tested since I don't use it:
PHP Code:
"custom_weapons_v3" // Leave this alone
{
    
"*" //asterisk means these changes apply to all players
    
{
        
"20" //20 is the weapon index of the Stickybomb Launcher 
        
{
            
"1"                "2 ; 1.5" //attribute number 2 (damage bonus) given new value of 150%
            
"2"                "4 ; 2"      //attribute number 4 (clip size) given new value of 200% 
            
"3"                "78 ; 3"  //attritbute number 78 (max ammo secondary) given new value of 300%
            
"4"                "6 ; 0.4" //attribute number 6 (fire rate bonus) is 60% faster (inverted percentage)
        
}
    }

Hopefully this is correct. If not maybe someone who actually uses it can chime in to correct us.

For the bi-directional teleporter... I could test attribute 276 with a value of 1 on the wrench. I don't know if that would work or not.
Attached Files
File Type: txt tf2items.weapons.txt (527 Bytes, 86 views)
PC Gamer is offline
TheDarkStar
Junior Member
Join Date: Aug 2020
Old 08-18-2020 , 12:53   Re: Help, I have no clue how to use tf2items
Reply With Quote #3

ok, so I realized I hadn't installed the tf2items manager (big dumb) but even then, THE PLUGIN BROKE.

L 08/17/2020 - 22:22:47: [SM] Exception reported: Cowardly refusing to add invalid attribute index "0" to an item.
L 08/17/2020 - 22:22:47: [SM] Blaming: tf2items_manager.smx
L 08/17/2020 - 22:22:47: [SM] Call stack trace:
L 08/17/2020 - 22:22:47: [SM] [0] TF2Items_SetAttribute
L 08/17/2020 - 22:22:47: [SM] [1] Line 425, C:\Users\colin\Desktop\Steam Servers\TF2 Server\tf\addons\sourcemod\scripting\tf2items _manager.sp:arseItemsEntry
L 08/17/2020 - 22:22:47: [SM] [2] Line 313, C:\Users\colin\Desktop\Steam Servers\TF2 Server\tf\addons\sourcemod\scripting\tf2items _manager.sp:arseItems
L 08/17/2020 - 22:22:47: [SM] [3] Line 58, C:\Users\colin\Desktop\Steam Servers\TF2 Server\tf\addons\sourcemod\scripting\tf2items _manager.sp::OnPluginStart
L 08/17/2020 - 22:22:47: [SM] Unable to load plugin "tf2items_manager.smx": Error detected in plugin startup (see error logs)

Halp me
TheDarkStar is offline
TheDarkStar
Junior Member
Join Date: Aug 2020
Old 08-18-2020 , 12:58   Re: Help, I have no clue how to use tf2items
Reply With Quote #4

oh also you have to make a new plugin using tf2attributes to use bidirectional teleporters.
thankfully, someone already did that!
https://forums.alliedmods.net/showthread.php?t=285622
TheDarkStar is offline
TheDarkStar
Junior Member
Join Date: Aug 2020
Old 08-18-2020 , 13:28   Re: Help, I have no clue how to use tf2items
Reply With Quote #5

oh, the faces are supposed to be : P not that
TheDarkStar is offline
TheDarkStar
Junior Member
Join Date: Aug 2020
Old 08-18-2020 , 14:18   Re: Help, I have no clue how to use tf2items
Reply With Quote #6

Ok, your file worked. I think I accidently messed something up in the config, but now I want to add a new weapon, and the game isn't seeing it.
TheDarkStar is offline
TheDarkStar
Junior Member
Join Date: Aug 2020
Old 08-18-2020 , 14:18   Re: Help, I have no clue how to use tf2items
Reply With Quote #7

PHP Code:
"custom_weapons_v3" // Leave this alone
{
    
"*" //asterisk means these changes apply to all players
    
{
        
"20" //20 is the weapon index of the Stickybomb Launcher 
        
{
            
"1"                "2 ; 1" //attribute number 2 (damage bonus) given new value of 150%
            
"2"                "4 ; 2"      //attribute number 4 (clip size) given new value of 200% 
            
"3"                "78 ; 3"  //attritbute number 78 (max ammo secondary) given new value of 300%
            
"4"                "6 ; 0.4" //attribute number 6 (fire rate bonus) is 60% faster (inverted percentage)
            
"5"                "88 ; 8" // extra stickies on ground
        
},
        
"265"
        
{
            
"1"                "88 ; 8" //extra stickies
        
}
    }


Last edited by TheDarkStar; 08-18-2020 at 14:19.
TheDarkStar is offline
TheDarkStar
Junior Member
Join Date: Aug 2020
Old 08-18-2020 , 14:40   Re: Help, I have no clue how to use tf2items
Reply With Quote #8

Newer version:
PHP Code:
"custom_weapons_v3" // Leave this alone
{
    
"*" //asterisk means these changes apply to all players
    
{
        
"20" //20 is the weapon index of the Stickybomb Launcher 
        
{
            
"1"                "2 ; 1" //attribute number 2 (damage bonus) given new value of 150%
            
"2"                "4 ; 2"      //attribute number 4 (clip size) given new value of 200% 
            
"3"                "78 ; 3"  //attritbute number 78 (max ammo secondary) given new value of 300%
            
"4"                "6 ; 0.4" //attribute number 6 (fire rate bonus) is 60% faster (inverted percentage)
            
"5"                "88 ; 8" // extra stickies on ground
        
}
        
"265" //sticky jumper
        
{
            
"1"                "88 ; 8" //more stickies
            
"2"                "4 ; 2" //more clip size
            
"3"                "6 ; 0.25" //higher fire rate
            
"4"                "58 ; 2" //higher self push force
        
}
        
"45" //force a nature
        
{
            
"1"                "6 ; 0.05" //fire rate
            
"2"                "4 ; 10" //clip size
            
"3"                "76 ; 2" //max ammo increase
            
"4"                "44 ; 1" //it do have knockback tho
            
"5"                "518 ; 4" //increases KNOCKBACK
        
}
    }

Only the sticky bomb launcher and force a nature are changed, and the knockback thing isn't working.

Last edited by TheDarkStar; 08-18-2020 at 14:42. Reason: e
TheDarkStar 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 15:16.


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