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

[TF2] Gimme (v1.20 - 03 May 2023)


Post New Thread Reply   
 
Thread Tools Display Modes
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 05-01-2023 , 13:38   Re: [TF2] Gimme (v1.19 - 09 Feb 2023)
Reply With Quote #71

Quote:
Originally Posted by q1085909155 View Post
In use! giveitemp is given to multiple players

L 05/01/2023 - 13:49:26: [SM] Exception reported: Array index out-of-bounds (index 12, limit 12)
L 05/01/2023 - 13:49:26: [SM] Blaming: gimme.smx
L 05/01/2023 - 13:49:26: [SM] Call stack trace:
L 05/01/2023 - 13:49:26: [SM] [1] Line 155, gimme.sp::GivePermItems
That error will occur when you attempt to give a target player more than 12 items. See note 3 in original post which states:
Quote:
Note3: You can give yourself up to 12 permanent items. If the latest item conflicts with a previous item the previous item will be removed. All items are given to you every time you spawn or touch a locker. This will continue to happen until you change class or use the !resetp command (or Admin uses !removep command on player).
You can always use !removep to reset the permanent status of the target. That way you can give up to 12 new items.
PC Gamer is offline
q1085909155
Member
Join Date: Oct 2021
Old 05-02-2023 , 04:22   Re: [TF2] Gimme (v1.19 - 09 Feb 2023)
Reply With Quote #72

Quote:
Originally Posted by PC Gamer View Post
That error will occur when you attempt to give a target player more than 12 items. See note 3 in original post which states:


You can always use !removep to reset the permanent status of the target. That way you can give up to 12 new items.
Thank you. That's the reason. By the way, when will version 1.2 be available?
q1085909155 is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 05-03-2023 , 19:50   Re: [TF2] Gimme (v1.20 - 03 May 2023)
Reply With Quote #73

Plugin and include file in original post updated to version 1.20.

This version adds the newer war skins requested by Happy DODs player (warskins 400 - 410), fixed the Force-A-Nature clip size and fixed the bugs with the Widowmaker as mentioned by q1085909155.

Plugin authors can read the include file for command paramaters that are now available in the plugin. Available include commands are: giveitem, givewp, giveitemp, removep

Have a great day!
PC Gamer is offline
q1085909155
Member
Join Date: Oct 2021
Old 06-11-2023 , 07:16   Re: [TF2] Gimme (v1.20 - 03 May 2023)
Reply With Quote #74

Hey.
"Note3: You can give yourself up to 12 permanent items. If the latest item conflicts with a previous item the previous item will be removed. All items are given to you every time you spawn or touch a locker. This will continue to happen until you change class or use the ! resetp command (or Admin uses ! removep command on player)."

For this, can it be adjusted to more than 12 items to automatically delete the first permanent item? Delete it every time you exceed it. Or add a cvar to control how many items a permanent project can have. Since I use gimme.inc in other plugins, the measures for Note3 are not very convenient to apply....

This keeps spam appearing in my log. If maintenance is available, thank you very much
Attached Thumbnails
Click image for larger version

Name:	捕获.PNG
Views:	49
Size:	51.5 KB
ID:	200904  
q1085909155 is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 06-25-2023 , 04:49   Re: [TF2] Gimme (v1.20 - 03 May 2023)
Reply With Quote #75

Quote:
Originally Posted by q1085909155 View Post
Hey.
"Note3: You can give yourself up to 12 permanent items. If the latest item conflicts with a previous item the previous item will be removed. All items are given to you every time you spawn or touch a locker. This will continue to happen until you change class or use the ! resetp command (or Admin uses ! removep command on player)."

For this, can it be adjusted to more than 12 items to automatically delete the first permanent item? Delete it every time you exceed it. Or add a cvar to control how many items a permanent project can have. Since I use gimme.inc in other plugins, the measures for Note3 are not very convenient to apply....

This keeps spam appearing in my log. If maintenance is available, thank you very much
I'm in the process of moving and don't have access to my development environment. If anyone would like to help out and make this request a reality I'll add it to the original post and give you credit.
PC Gamer is offline
Zeraph
New Member
Join Date: Sep 2023
Old 10-28-2023 , 15:30   Re: [TF2] Gimme (v1.20 - 03 May 2023)
Reply With Quote #76

Managed to find a small but notable bug, and that is the fact that you can't give yourself revolvers as Engineer.
Attempting to do so will toss an error message in the server console stating "Attempted to create unknown entity type tf_weapon_revolver_secondary!"

So after a little bit of digging, it appears that the Econ Data plugin, which includes the stocksoup include files, contains a bit of code replacing the "tf_weapon_revolver" class with "tf_weapon_revolver_secondary" if engineer gets a revolver.
I am assuming that tf_weapon_revolver_secondary outright doesn't exist in TF2, in which case you'd have to not only question yourself why it was added in the first place, but fork the project and remove that tiny piece of code.
Zeraph is offline
Ronas963
Member
Join Date: Jun 2016
Location: Denmark
Old 01-06-2024 , 18:18   Re: [TF2] Gimme (v1.20 - 03 May 2023)
Reply With Quote #77

But this plugins it does have same "9018 - Valve Rocket Launcher
9020 - Valve Sticky Launcher
9014 - Valve Sniper Rifle
9013 - Valve Scattergun
9021 - Valve Flamethrower
9017 - Valve Syringe Gun
9015 - Valve Minigun
9024 - Valve Revolver
9009 - Valve Engy Shotgun
9029 - Valve Medigun
2041 - Ludmila
9027 - Spycrab PDA
2061 - Fire Retardant Suit (still testing. It's a revolver that does no damage but proves some type of fire protection, currently set to not set you on fire if you are disguised)
8018 - Rapidfire Valve Rocket Launcher (VERY CHEAP)
7018 - Rapidfire Community Rocket Launcher (LESS SO, BUT STILL)
8045 - what I can only call, "the derpFaN"
9205 - Try it and find out. Let's just say it's Robin's, and actually exists now rather than in the past."

I want know?
Ronas963 is offline
Ronas963
Member
Join Date: Jun 2016
Location: Denmark
Old 01-10-2024 , 14:34   Re: [TF2] Gimme (v1.20 - 03 May 2023)
Reply With Quote #78

Hello PC Gamer how I can myself edit custom weapon like Valve Rocket Launcher

Valve Rocket Launcher
Level 100 Rocket Launcher
★ Unusual Effect: Flying Bits
+1009900% damage bonus
+109900% clip size
+75% faster firing speed
On Hit: Gain up to +250 health
On Kill: 10 seconds of 100% critical chance
+50% projectile speed
+100% faster move speed on wearer
Ronas963 is offline
R188
New Member
Join Date: Dec 2023
Location: New York, United States
Old 01-11-2024 , 12:32   Re: [TF2] Gimme (v1.16 12 Sept 2022)
Reply With Quote #79

Quote:
Originally Posted by PC Gamer View Post
Not specifically. However, you can create custom weapons with crazy attributes and decide if regular players can use !gimme to get the weapon, or if it requires an Admin to give the item to the player.

To do that simply create a text file in your /addons/sourcemod/configs/ directory called 'tf2items.givecustom.txt'

The plugin looks for this file whenever the plugin is loaded. That file should contain any custom items (weapons and cosmetics) that you want available in game. You can modify those items with whatever attributes you want.

Example tf2items.givecustom.txt file:
PHP Code:
"custom_give_weapons_vlolz"
{
    
"40001" //Mann Co Hat with random unusual effect
    
{
        
"classname"        "tf_wearable"
        "index"        "261"
        "slot"        "8"
        "quality"        "6"
        "level"        "29"
        "attribs"        "134 ; 999.0"
        "ammo"        "-1"
    
}

    
"50001"  //Super Overpowered Warhawk Rocketlauncher Factory New
    
{
        
"classname"        "tf_weapon_rocketlauncher"
        "index"        "15150"
        "slot"        "0"
        "quality"        "5"
        "level"        "9001"
        "attribs"        "134 ; 702.0 ; 2 ; 80.0 ; 6 ; 0.1 ; 4 ; 6.0 ; 57 ; 30.0 ; 318 ; 0.1 ; 851 ; 6.0 ; 326 ; 3.0 ; 99 ; 10 ; 1007 ; 1.0 ; 181 ; 2.0 ; 275 ; 1.0 ; 385 ; 82"
        "ammo"        "200"
    
}

In the above example there are two custom items, a hat and a rocketlauncher. The hat has an index number of 40001 and will look like index number 261 which is a Mann Co. Hat. The rocketlauncher has an index number of 50001 and will look like index number 15150 which is a Warhawk skinned rocketlauncher.

When creating items you should create item index numbers above 40000 to prevent conflicts with existing in-game item numbers. Item index numbers above 50000 require an Admin to use the command !giveitem <target> <item index number> to give the item to a player.

In our example above players can give themselves the hat because it has an item index number less than 50000. Players will not be able to give themselves the rocketlauncher because it has a number higher than 50000. To give the rocketlauncher to the player named Johnny an Admin would have to type: !giveitem johnny 50001
The rocketlauncher will be lost when the player dies or touches a locker unless the command !giveitemp johnny 50001 is used. In that case the player will keep the item until map end.

Players can give themselves the hat with the command !gimme 40001. The hat will be removed on death or touching a locker unless the player uses the command: !gimmep 40001 which will give the player the hat until map end.

Of course none of this will work unless you create the file named tf2items.givecustom.txt and put it in your /configs/ directory.

Public Safety Announcement: Use caution when creating custom weapons. They will very likely upset the balance of the game. For example, the rocketlauncher above has stats too extreme for public use (see attached image).
In regards to this, I'm trying to recreate the valve rocket launcher in its entirety but when I set the attributes, the attributes in-game do not reflect the attributes set in the text file.

For example, when I set the projectile speed to 50% in the file, it says 4900% in-game. Is there an unwritten rule where attributes are multiplied by the game itself? Or is there a way to make it so both the file and in-game attributes are the same?
R188 is offline
Ronas963
Member
Join Date: Jun 2016
Location: Denmark
Old 01-21-2024 , 06:38   Re: [TF2] Gimme (v1.20 - 03 May 2023)
Reply With Quote #80

I did but it not working

"custom_give_weapons_vlolz"
{
"9999" //Valve Rocket Launcher

{
"classname" "tf_weapon_rocketlauncher"
"index" "205"
"slot" "0"
"quality" "8"
"level" "100"
"attribs" "2 ; 10100.0 ; 4 ; 1100.0 ; 6 ; 0.25 ; 16 ; 250.0 ; 31 ; 10.0 ; 103 ; 1.5 ; 107 ; 2.0 ; 134 ; 2.0"
"ammo" "200"
}
}
Ronas963 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 01:30.


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