AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   TF2Items (https://forums.alliedmods.net/forumdisplay.php?f=146)
-   -   Using a different classname doesn't give a weapon (https://forums.alliedmods.net/showthread.php?t=282009)

Blinx 04-26-2016 19:29

Using a different classname doesn't give a weapon
 
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.

Powerlord 05-01-2016 01:51

Re: Using a different classname doesn't give a weapon
 
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.


All times are GMT -4. The time now is 21:08.

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