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

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


Post New Thread Reply   
 
Thread Tools Display Modes
avi9526
Senior Member
Join Date: Apr 2013
Location: Ukraine
Old 06-26-2013 , 08:41   Re: [TF2Items] Give Weapon (v3.141, 06/04/2013)
Reply With Quote #1071

Could You please add another weapon to mod?
I found that Ap-Sap, AWPer Hand, Festive Holy Mackerel seems to be working fine.
Deflector (850) also working on MvM, but rage crash server.

Here is diff
Code:
diff -r 8e75db4678d2 -r 56705bce11c0 addons/sourcemod/scripting/tf2items_giveweapon.sp
--- a/addons/sourcemod/scripting/tf2items_giveweapon.sp    Tue Jun 25 20:32:31 2013 +0300
+++ b/addons/sourcemod/scripting/tf2items_giveweapon.sp    Tue Jun 25 21:20:44 2013 +0300
@@ -4256,6 +4256,34 @@
     SetTrieString(g_hItemInfoTrie, "834_attribs", "146 ; 1.0 ; 438 ; 1.0 ; 15 ; 0.0 ; 138 ; 0.8 ; 436 ; 1.0 ; 153 ; 1.0", false);
     SetTrieValue(g_hItemInfoTrie, "834_ammo", -1, false);
 
+//Deflector
+//    SetTrieString(g_hItemInfoTrie, "850_classname", "tf_weapon_minigun", false);
+//    SetTrieValue(g_hItemInfoTrie, "850_index", 850, false);
+//    SetTrieValue(g_hItemInfoTrie, "850_slot", 0, false);
+//    SetTrieValue(g_hItemInfoTrie, "850_quality", 6, false);
+//    SetTrieValue(g_hItemInfoTrie, "850_level", 1, false);
+//    SetTrieString(g_hItemInfoTrie, "850_attribs", "", false);
+//    SetTrieValue(g_hItemInfoTrie, "850_ammo", 200, false);
+
+
+//The AWPer Hand
+    SetTrieString(g_hItemInfoTrie, "851_classname", "tf_weapon_sniperrifle", false);
+    SetTrieValue(g_hItemInfoTrie, "851_index", 851, false);
+    SetTrieValue(g_hItemInfoTrie, "851_slot", 0, false);
+    SetTrieValue(g_hItemInfoTrie, "851_quality", 6, false);
+    SetTrieValue(g_hItemInfoTrie, "851_level", 1, false);
+    SetTrieString(g_hItemInfoTrie, "851_attribs", "", false);
+    SetTrieValue(g_hItemInfoTrie, "851_ammo", 25, false);    
+
+//Ap-Sap
+    SetTrieString(g_hItemInfoTrie, "933_classname", "tf_weapon_sapper", false);
+    SetTrieValue(g_hItemInfoTrie, "933_index", 933, false);
+    SetTrieValue(g_hItemInfoTrie, "933_slot", 1, false);
+    SetTrieValue(g_hItemInfoTrie, "933_quality", 1, false);
+    SetTrieValue(g_hItemInfoTrie, "933_level", 1, false);
+    SetTrieString(g_hItemInfoTrie, "933_attribs", "451 ; 1.0 ; 452 ; 3.0", false);
+    SetTrieValue(g_hItemInfoTrie, "933_ammo", -1, false);
+
 //Bat Outta Hell
     SetTrieString(g_hItemInfoTrie, "939_classname", "saxxy", false);
     SetTrieValue(g_hItemInfoTrie, "939_index", 939, false);
@@ -4310,6 +4338,15 @@
     SetTrieString(g_hItemInfoTrie, "998_attribs", "144 ; 3.0 ; 473 ; 3.0 ; 10 ; 1.5 ; 479 ; 0.34 ; 292 ; 1.0 ; 293 ; 2.0", false);
     SetTrieValue(g_hItemInfoTrie, "998_ammo", -1, false);
 
+//Festive Holy Mackerel
+    SetTrieString(g_hItemInfoTrie, "999_classname", "tf_weapon_bat_fish", false);
+    SetTrieValue(g_hItemInfoTrie, "999_index", 999, false);
+    SetTrieValue(g_hItemInfoTrie, "999_slot", 2, false);
+    SetTrieValue(g_hItemInfoTrie, "999_quality", 6, false);
+    SetTrieValue(g_hItemInfoTrie, "999_level", 42, false);
+    SetTrieString(g_hItemInfoTrie, "999_attribs", "292 ; 7.0 ; 388 ; 7.0", false);
+    SetTrieValue(g_hItemInfoTrie, "999_ammo", -1, false);
+
 }
 stock AddCustomHardcodedToTrie(Handle:trie)
 {

Last edited by avi9526; 06-26-2013 at 08:43.
avi9526 is offline
Crispyhade
New Member
Join Date: Jun 2013
Old 06-26-2013 , 21:12   Re: [TF2Items] Give Weapon (v3.141, 06/04/2013)
Reply With Quote #1072

Ok, i had a problem install this plugin.
Here is the problem:
After i have follow the instruction and downloaded tf2items give weapon, i decided to check it if i successfully installed it or not. Then, when i typed in sm plugins list, if shows me that it has an error loading tf2items give weapon. I typed sm plugins info 19(my tf2items give weapon plugin number.)
This is what it showed up:
Filename: tf2items_giveweapon.smx
Load Error: Native "GetPlayerResourceEntity" was not found
File info: <title "[Tf2items] Give Weapon"> <version "3.141">
File URL: http://limetech.org/ and http://forums.alliedmods.net
I need a solution
Crispyhade is offline
NameUser
Senior Member
Join Date: Apr 2012
Location: Bay Area, California
Old 06-27-2013 , 00:13   Re: [TF2Items] Give Weapon (v3.141, 06/04/2013)
Reply With Quote #1073

Quote:
Originally Posted by killerps View Post
[le code]
any solutions?
btw. viewmodel still doesn't work
Looks like it can't find a property for setting EntProp. (m_hExtraWearableViewModel)
__________________

Last edited by NameUser; 06-27-2013 at 00:13.
NameUser is offline
Send a message via Skype™ to NameUser
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 06-27-2013 , 21:45   Re: [TF2Items] Give Weapon (v3.141, 06/04/2013)
Reply With Quote #1074

CrispyHade: Grab the latest SM snapshot (1.5 or 1.6 should do).

avi9526: Please install TF2ItemsInfo, it automatically updates the item list. It's not worth updating it manually.

killerps: I forgot that viewmodel doesn't work properly on the Targe/wearable weapons. I'll fix that sometime.... eventually.
__________________
Bread EOTL GunMettle Invasion Jungle Inferno 64-bit 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
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 06-29-2013 , 19:07   Re: [TF2Items] Give Weapon (v3.141, 06/04/2013)
Reply With Quote #1075

Quote:
Originally Posted by ShowTeKPT View Post
But that doesn't give the item immediatly
Wrong
__________________
DarthNinja is offline
MasterOfTheXP
Veteran Member
Join Date: Aug 2011
Location: Cloudbank
Old 06-30-2013 , 12:53   Re: [TF2Items] Give Weapon (v3.141, 06/04/2013)
Reply With Quote #1076

Wether you do it the correct way (i.e. not that way) or not, given wearables aren't visible to other players.
__________________
Plugins / My Steam / TF2 Sandbox (plugin beta testing!)
MasterOfTheXP is offline
The_dr
Senior Member
Join Date: Jan 2012
Location: Canada
Old 06-30-2013 , 15:07   Re: [TF2Items] Give Weapon (v3.141, 06/04/2013)
Reply With Quote #1077

Quote:
Originally Posted by MasterOfTheXP View Post
Wether you do it the correct way (i.e. not that way) or not, given wearables aren't visible to other players.
I understand now. I guess I didn’t fully read why it didn’t work
The_dr is offline
the_ragdoll
Junior Member
Join Date: May 2013
Old 07-03-2013 , 11:15   Re: [TF2Items] Give Weapon (v3.141, 06/04/2013)
Reply With Quote #1078

Sorry to souns like an A******, but the ap-sap won't work for me. Is there any way to obtain it? even if it is about messing up the plugin's code? Great Plugin by the way, my admins love the 8018-8045s
EDIT:
sorry, my fault I figured out I had an old version of the plugin, before the ap-sap patch. nice job!! and thanks for the plugin.

Last edited by the_ragdoll; 07-03-2013 at 15:41.
the_ragdoll is offline
math341c
Junior Member
Join Date: Apr 2013
Old 07-04-2013 , 12:13   Re: [TF2Items] Give Weapon (v3.141, 06/04/2013)
Reply With Quote #1079

Hey sarge what is happening for the botkiller weapons they are not working anymore. Most of them worked before now 0 of them work?
math341c is offline
hqtornado
New Member
Join Date: Jun 2012
Old 07-09-2013 , 21:42   Re: [TF2Items] Give Weapon (v3.141, 06/04/2013)
Reply With Quote #1080

Quote:
Originally Posted by FlaminSarge View Post
CrispyHade: Grab the latest SM snapshot (1.5 or 1.6 should do)
Hey Sarge, I did what you told him to do because I had the exact same problem, but it still gives me the error when I try to load the plugin. Any other ideas? D:
hqtornado 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 22:57.


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