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

Using a different classname doesn't give a weapon


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Blinx
Senior Member
Join Date: Oct 2013
Old 04-26-2016 , 19:29   Using a different classname doesn't give a weapon
Reply With Quote #1

I want to grant a weapon that has a different classname than it should have, but if i do this, I don't get the weapon, that slot just gets removed, is this intended behaviour? Or am I doing something wrong?

PHP Code:
new Handle:hItemOverride PrepareItemHandle(hItem"tf_weapon_wrench"_,"80 ; 2.0",false); 
This function works fine if I don't provide a classname or use the one it should have.
Blinx is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 05-01-2016 , 01:51   Re: Using a different classname doesn't give a weapon
Reply With Quote #2

This is intentional behavior on the game's side. You can, however, give them a new item instead and block the original item from being given.
__________________
Not currently working on SourceMod plugin development.
Powerlord 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 11:57.


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