Yes.
Consider using either the [TF2Items] Give Weapon plugin by FlaminSarge (
https://forums.alliedmods.net/showthread.php?p=1337899) or the [TF2] Gimme plugin by me (
https://forums.alliedmods.net/showthread.php?t=335644). Both plugins support the creation of weapons with custom stats.
1. Install either plugin with their requisite dependencies.
2. Use the attribute wiki page to determine which attributes to add to your new weapons. Link:
https://wiki.teamfortress.com/wiki/L...tem_attributes
3. Add or edit the /sourcemod/config/tf2items.givecustom.txt file to include your custom weapons. Both plugins use this format. It should look something like this:
PHP Code:
"custom_give_weapons_vlolz"
{
"9999"
{
"classname" "tf_weapon_rocketlauncher"
"index" "228"
"slot" "0"
"quality" "6"
"level" "29"
"attribs" "134 ; 19"
"ammo" "20"
}
"1304"
{
"classname" "tf_weapon_knife"
"index" "225"
"slot" "2"
"quality" "6"
"level" "2"
"attribs" "215 ; 9999.0 ; 1 ; 0.5"
"ammo" "-1"
}
}
4. To receive the item you created just use the appropriate command (depends on which plugin you installed), like !gimme 9999 or !giveitem (target) 1304
I should note that the same process is used to create cosmetics with custom stats. Just use tf_wearable as the classname, slot 8 and ammo of -1.