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

How can I change item_class?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
VintageDoodle
Junior Member
Join Date: Mar 2014
Old 04-05-2014 , 07:42   How can I change item_class?
Reply With Quote #1

Is it possible to change the "item_class" of a weapon in tf2items.weapons.txt?

PHP Code:
            KvGetString(hKeyValues"class"strBuffersizeof(strBuffer));
            
TF2Items_SetClassname(hItemstrBuffer);
            
iItemFlags |= OVERRIDE_CLASSNAME
Why does this remove weapons?

I found a related thread https://forums.alliedmods.net/showthread.php?p=2046815 here but I don't understand what powerlord means by keeping track of when the weapon is being replaced.

Last edited by VintageDoodle; 04-05-2014 at 12:07.
VintageDoodle is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 04-08-2014 , 09:51   Re: How can I change item_class?
Reply With Quote #2

If i can recall right, you need to force generate the weapon.
Check out how Custom Weapons 2 Beta 2 does it. i dont think i have messed with it at all.
Mitchell 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 05:15.


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