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

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


Post New Thread Reply   
 
Thread Tools Display Modes
Cave Johnson
Junior Member
Join Date: Jul 2016
Old 10-16-2017 , 22:56   Re: [TF2Items] Give Weapon (v3.14159, 11/29/2013)
Reply With Quote #1601

Quote:
Originally Posted by kickman7 View Post
I need help, when i try to give myself the golden frying pan (1071), it just looks like a normal frying pan for me. If anyone could tell me how to fix this problem, that would be great. Thanks!
for that to work, you need to give it the attribute 542 ; 0

heres some pre-made code for you
"8700"
{
"classname" "saxxy" //golden pan
"index" "1071"
"slot" "2"
"quality" "11"
"level" "12"
"attribs" "150 ; 1 ; 542 ; 0 "
}
__________________
Bot go beep
Cave Johnson is offline
cheddar
Member
Join Date: Sep 2015
Old 10-21-2017 , 19:41   Re: [TF2Items] Give Weapon (v3.14159, 11/29/2013)
Reply With Quote #1602

Trying to giveweapon the new weapons such as "Dragon's Fury".
I found the item index for Dragon's Fury to be 1178.
I get the error "[TF2Items] Invalid Weapon Index"

I'm sure it'll get fixed in time, but for now is there a workaround?
cheddar is offline
cheddar
Member
Join Date: Sep 2015
Old 10-21-2017 , 23:20   Re: [TF2Items] Give Weapon (v3.14159, 11/29/2013)
Reply With Quote #1603

To anyone looking for a workaround until the Jungle/Inferno weapons get added...

I stumbled onto source code for a plugin that would spawn weapons on the ground as tf_dropped_weapon. I modified a couple lines and put a proper "myinfo" in the file. All credit for this goes to "Potato Uno" on this thread.

Installation: Just drag dropwep.smx into /plugins
Usage: sm_dropwep [index]
Example: sm_dropwep 1178 <-- this will drop the Dragon's Fury.
Other indexes: here

Notes: This is a very light plugin that's not nearly as versatile or powerful as the giveweapon plugin. I didn't make this, I'm just uploading it here as a workaround. All credit goes to Potato Uno
Attached Files
File Type: sp Get Plugin or Get Source (dropwep.sp - 424 views - 1.4 KB)
File Type: smx dropwep.smx (4.6 KB, 176 views)
cheddar is offline
404UserNotFound
BANNED
Join Date: Dec 2011
Old 10-22-2017 , 02:15   Re: [TF2Items] Give Weapon (v3.14159, 11/29/2013)
Reply With Quote #1604

Quote:
Originally Posted by cheddar View Post
Trying to giveweapon the new weapons such as "Dragon's Fury".
I found the item index for Dragon's Fury to be 1178.
I get the error "[TF2Items] Invalid Weapon Index"

I'm sure it'll get fixed in time, but for now is there a workaround?
The weapons need to actually be coded in. The plugin stores them all in a stringmap. There are other issues with them that need to be resolved. I tried adding them in myself and ran into bugs with things like the new Pyro primary only firing once and you have to hit a resupply locker to generate a new copy of the weapon to shoot it again, the Gas Passer not refilling, etc.
404UserNotFound is offline
dedimark
Senior Member
Join Date: Jul 2015
Location: London
Old 10-22-2017 , 13:02   Re: [TF2Items] Give Weapon (v3.14159, 11/29/2013)
Reply With Quote #1605

L 10/22/2017 - 114:51: Info (map "ctf_2fort") (file "errors_20171022.log")
L 10/22/2017 - 114:51: [SM] Exception reported: Failed to locate function
L 10/22/2017 - 114:51: [SM] Blaming: tf2items_giveweapon.smx
L 10/22/2017 - 114:51: [SM] Call stack trace:
L 10/22/2017 - 114:51: [SM] [0] TF2_MakeBleed
L 10/22/2017 - 114:51: [SM] [1] Line 610, tf2items_giveweapon.sp::Event_PlayerJarated
L 10/22/2017 - 11:58:40: [SM] Exception reported: Failed to locate function
L 10/22/2017 - 11:58:40: [SM] Blaming: tf2items_giveweapon.smx
L 10/22/2017 - 11:58:40: [SM] Call stack trace:
L 10/22/2017 - 11:58:40: [SM] [0] TF2_MakeBleed
L 10/22/2017 - 11:58:40: [SM] [1] Line 610, tf2items_giveweapon.sp::Event_PlayerJarated

anyone have issue, after update?
dedimark is offline
XaH JoB
Junior Member
Join Date: Sep 2016
Old 10-22-2017 , 13:06   Re: [TF2Items] Give Weapon (v3.14159, 11/29/2013)
Reply With Quote #1606

Quote:
Originally Posted by dedimark View Post
L 10/22/2017 - 114:51: Info (map "ctf_2fort") (file "errors_20171022.log")
L 10/22/2017 - 114:51: [SM] Exception reported: Failed to locate function
L 10/22/2017 - 114:51: [SM] Blaming: tf2items_giveweapon.smx
L 10/22/2017 - 114:51: [SM] Call stack trace:
L 10/22/2017 - 114:51: [SM] [0] TF2_MakeBleed
L 10/22/2017 - 114:51: [SM] [1] Line 610, tf2items_giveweapon.sp::Event_PlayerJarated
L 10/22/2017 - 11:58:40: [SM] Exception reported: Failed to locate function
L 10/22/2017 - 11:58:40: [SM] Blaming: tf2items_giveweapon.smx
L 10/22/2017 - 11:58:40: [SM] Call stack trace:
L 10/22/2017 - 11:58:40: [SM] [0] TF2_MakeBleed
L 10/22/2017 - 11:58:40: [SM] [1] Line 610, tf2items_giveweapon.sp::Event_PlayerJarated

anyone have issue, after update?
It'll be fixed in new sm update i think, i saw this event in sm report.

Last edited by XaH JoB; 10-22-2017 at 13:07.
XaH JoB is offline
dedimark
Senior Member
Join Date: Jul 2015
Location: London
Old 10-22-2017 , 13:17   Re: [TF2Items] Give Weapon (v3.14159, 11/29/2013)
Reply With Quote #1607

Thanks.
dedimark is offline
404UserNotFound
BANNED
Join Date: Dec 2011
Old 10-23-2017 , 02:53   Re: [TF2Items] Give Weapon (v3.14159, 11/29/2013)
Reply With Quote #1608

Quote:
Originally Posted by dedimark View Post
L 10/22/2017 - 114:51: Info (map "ctf_2fort") (file "errors_20171022.log")
L 10/22/2017 - 114:51: [SM] Exception reported: Failed to locate function
L 10/22/2017 - 114:51: [SM] Blaming: tf2items_giveweapon.smx
L 10/22/2017 - 114:51: [SM] Call stack trace:
L 10/22/2017 - 114:51: [SM] [0] TF2_MakeBleed
L 10/22/2017 - 114:51: [SM] [1] Line 610, tf2items_giveweapon.sp::Event_PlayerJarated
L 10/22/2017 - 11:58:40: [SM] Exception reported: Failed to locate function
L 10/22/2017 - 11:58:40: [SM] Blaming: tf2items_giveweapon.smx
L 10/22/2017 - 11:58:40: [SM] Call stack trace:
L 10/22/2017 - 11:58:40: [SM] [0] TF2_MakeBleed
L 10/22/2017 - 11:58:40: [SM] [1] Line 610, tf2items_giveweapon.sp::Event_PlayerJarated

anyone have issue, after update?
Seems like the Jar of Ants weapon is responsible here. It's a jarate that makes the jarate'd player bleed.
404UserNotFound is offline
Facksy
Senior Member
Join Date: Apr 2017
Location: +2+2
Old 10-23-2017 , 17:58   Re: [TF2Items] Give Weapon (v3.14159, 11/29/2013)
Reply With Quote #1609

L 10/23/2017 - 23:46:43: [SM] Exception reported: Invalid Handle 0 (error 4)
L 10/23/2017 - 23:46:43: [SM] Blaming: tf2items_giveweapon.smx
L 10/23/2017 - 23:46:43: [SM] Call stack trace:
L 10/23/2017 - 23:46:43: [SM] [0] GetTrieValue
L 10/23/2017 - 23:46:43: [SM] [1] Line 5063, C:\hlserver\tf2\tf\addons\sourcem
od\scripting\tf2items_giveweapon.sp::Native_C reateWeapon
L 10/23/2017 - 23:46:43: [SM] [3] TF2Items_CreateWeapon

I get this error when i wanna create a weapon with TF2Items_CreateWeapon

Last edited by Facksy; 10-23-2017 at 17:59.
Facksy is offline
Galaxyi
Junior Member
Join Date: Oct 2017
Old 10-24-2017 , 18:59   Re: [TF2Items] Give Weapon (v3.14159, 11/29/2013)
Reply With Quote #1610

Hello!
I've been using this plugin for quite a while now, and I decided to get into Custom Weapon creation.

As a prototype I made an OP Panic Attack with lots of attributs, but there is only one issue I could not fix.
The weapon equips on the second slot, removing the primary, for no reason. here's the code:

Quote:
"1234"
{
"classname" "tf_weapon_shotgun"
"index" "1153"
"slot" "0"
"quality" "8"
"level" "100"
"attribs" "2 ; 500 ; 4 ; 100 ; 6 ; 0.2 ; 31 ; 5 ; 45 ; 3 ; 150 ; 1 ; 180 ; 250 ; 97 ; 0.7 ; 208 ; 1 ; 517 ; 400 ; 148 ; 0 ; 286 ; 6 ; 327 ; 1 ; 344 ; 600 ; 345 ; 600"
"ammo" "9000"
}
I used the same code with the Item Designer and it worked perfectly. But I want a shortcut command rather than a whole code to copy-paste.
Any idea why this issue occurs? It frustrates me to see it not working properly..
Galaxyi 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 13:04.


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