Raised This Month: $32 Target: $400
 8% 

[TF2Items] Give Weapon (v3.14159, 11/29/2013)


Post New Thread Reply   
 
Thread Tools Display Modes
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 10-25-2017 , 14:37   Re: [TF2Items] Give Weapon (v3.14159, 11/29/2013)
Reply With Quote #1611

@Galaxyi slots start at 0 for primary and go to 2 for melee, 3 for cloak/build pda, 4 for destroy pda, and 5 for the building box. There's a few others but basically look at the 'slot' key.

I'm trying to get an update for this plugin out that uses TF2IDB or TF2IDB+TF2ItemsInfo to update the weapon list and to stop having to define all the items in a giant trie. Hopefully I can release that soon.
__________________
Bread EOTL GunMettle Invasion Jungle Inferno will break everything. Don't even ask.

All plugins: Randomizer/GiveWeapon, ModelManager, etc.
Post in plugin threads with questions.
Steam is for playing games.
You will be fed to javalia otherwise.
Psyduck likes replays.
FlaminSarge is offline
Galaxyi
Junior Member
Join Date: Oct 2017
Old 10-26-2017 , 06:06   Re: [TF2Items] Give Weapon (v3.14159, 11/29/2013)
Reply With Quote #1612

Thank you for your response
The thing is, I've set the slot to 0 already, the glitch appeared, the weapon was set to secondary and primary was gone (leaving me down to 2 weapons only)
I tried to set it to secondary (1) and the glitch appeared still

I also encontered another issue which I have been through yesterday.
When I create custom weapons, i can't make more than 3. If I make a 4th one, the plugin will not detect it and tell me the index is invalid. i've tried to update all the plugins that make this one work yet it still does that issue.

Other than custom weapons everything seems to work fine
Galaxyi is offline
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 10-29-2017 , 04:07   Re: [TF2Items] Give Weapon (v3.14159, 11/29/2013)
Reply With Quote #1613

@galaxyi Sorry, rather, "slot" must match what the weapon's actual slot is. The point of "slot" is to remove a weapon from the player to make room for the given item. The panic attack shotgun is probably always a secondary weapon, so you'll have to use slot=1.
There's also an odd quirk with shotguns where if you use 'tf_weapon_shotgun', it tries to use a different slot for each class (e.g. engineer primary, pyro secondary). You can try to use tf_weapon_shotgun_pyro (with slot 1) or tf_weapon_shotgun_primary (with slot 0) to see if that helps.
__________________
Bread EOTL GunMettle Invasion Jungle Inferno will break everything. Don't even ask.

All plugins: Randomizer/GiveWeapon, ModelManager, etc.
Post in plugin threads with questions.
Steam is for playing games.
You will be fed to javalia otherwise.
Psyduck likes replays.

Last edited by FlaminSarge; 10-29-2017 at 04:07.
FlaminSarge is offline
MAGNAT2645
Senior Member
Join Date: Nov 2015
Location: AlliedMods.net
Old 10-29-2017 , 05:36   Re: [TF2Items] Give Weapon (v3.14159, 11/29/2013)
Reply With Quote #1614

How are things going with porting this plugin to TF2IDB? I really need this. I want to remove TF2ItemsInfo, because it does not work very well (with memory leaks).
__________________
MAGNAT2645 is offline
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 11-04-2017 , 23:32   Re: [TF2Items] Give Weapon (v3.14159, 11/29/2013)
Reply With Quote #1615

If you're pressed for time you can take a shot at using TF2IDB and the extra compat plugin from here https://github.com/FlaminSarge/tf2idb/, which basically lets TF2IDB replace TF2II for most things.
__________________
Bread EOTL GunMettle Invasion Jungle Inferno will break everything. Don't even ask.

All plugins: Randomizer/GiveWeapon, ModelManager, etc.
Post in plugin threads with questions.
Steam is for playing games.
You will be fed to javalia otherwise.
Psyduck likes replays.
FlaminSarge is offline
MAGNAT2645
Senior Member
Join Date: Nov 2015
Location: AlliedMods.net
Old 11-05-2017 , 07:17   Re: [TF2Items] Give Weapon (v3.14159, 11/29/2013)
Reply With Quote #1616

Problem is not in time, just TF2II badly affects for resources. Also TF2Ware uses GiveWeapon via TF2Items Extended Stocks that has leaks. So i want to use TF2IDB to fix these problems.
__________________

Last edited by MAGNAT2645; 11-05-2017 at 07:19. Reason: my english grammar is very bad
MAGNAT2645 is offline
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 11-06-2017 , 02:03   Re: [TF2Items] Give Weapon (v3.14159, 11/29/2013)
Reply With Quote #1617

Again, I wrote a plugin called 'tf2idb_tf2ii_compat' that basically pretends to be TF2II but instead uses TF2IDB to get its information. It's in that Github repo. See if it works for your use case.
__________________
Bread EOTL GunMettle Invasion Jungle Inferno will break everything. Don't even ask.

All plugins: Randomizer/GiveWeapon, ModelManager, etc.
Post in plugin threads with questions.
Steam is for playing games.
You will be fed to javalia otherwise.
Psyduck likes replays.
FlaminSarge is offline
MAGNAT2645
Senior Member
Join Date: Nov 2015
Location: AlliedMods.net
Old 11-06-2017 , 02:54   Re: [TF2Items] Give Weapon (v3.14159, 11/29/2013)
Reply With Quote #1618

Im not sure that this will help, maybe this will broke TF2Ware. I will try to use tf2idb_tf2ii_compat, but I'd rather wait for GiveWeapon update.
__________________
MAGNAT2645 is offline
msoza1
Junior Member
Join Date: Mar 2015
Location: California
Old 11-09-2017 , 03:35   Re: [TF2Items] Give Weapon (v3.14159, 11/29/2013)
Reply With Quote #1619

Does anyone have the "rndmodelcrashfix.vpk"? Dropbox doesn't have it anymore...
__________________
*Insert Generic Knockoff Signature Here*
msoza1 is offline
Send a message via Skype™ to msoza1
dedimark
Senior Member
Join Date: Jul 2015
Location: London
Old 11-13-2017 , 13:40   Re: [TF2Items] Give Weapon (v3.14159, 11/29/2013)
Reply With Quote #1620

Quote:
Originally Posted by msoza1 View Post
Does anyone have the "rndmodelcrashfix.vpk"? Dropbox doesn't have it anymore...
https://sites.google.com/site/tradedosbroder/tf/custom
dedimark is offline
Reply


Thread Tools
Display Modes

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 05:15.


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