Raised This Month: $52 Target: $400
 13% 

TF2Items - Items with custom attributes.


Post New Thread Closed Thread   
 
Thread Tools Display Modes
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 07-25-2011 , 17:41   Re: TF2Items - Items with custom attributes.
#1011

Quote:
Originally Posted by Pawn 3-pg View Post
Is there a way to tell what the weapon quality is before replacing it? That way I can add the kill count attribute when it is needed and leave it off when it isn't.
Unfortunately it isn't, the API is pretty terrible, this is known.
__________________
asherkin is offline
Snaggle
AlliedModders Donor
Join Date: Jul 2010
Location: England
Old 07-25-2011 , 18:06   Re: TF2Items - Items with custom attributes.
#1012

Just gave the new update a whirl and it all looks good, thanks very much
Snaggle is offline
dbmiller5
Senior Member
Join Date: Jun 2011
Old 07-26-2011 , 05:30   Re: TF2Items - Items with custom attributes.
#1013

Thanks for the update, its working great!!!
dbmiller5 is offline
PAL-18
AlliedModders Donor
Join Date: Jul 2010
Old 07-26-2011 , 20:13   Re: TF2Items - Items with custom attributes.
#1014

Is the value always a whole number or can it be a decimal (eg. decimal for percentage values)?

Also, can i see the stats of the items i create in-game?

Last edited by PAL-18; 07-26-2011 at 20:20.
PAL-18 is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 07-26-2011 , 20:16   Re: TF2Items - Items with custom attributes.
#1015

Quote:
Originally Posted by PAL-18 View Post
Is the value always a whole number or can it be a decimal (eg. decimal for percentage values)?
TF2Items treats all attribute values as floating-point (decimal) numbers.
There are a few that take integers, but none of them are relevant for item customization.
__________________
asherkin is offline
PAL-18
AlliedModders Donor
Join Date: Jul 2010
Old 07-26-2011 , 20:25   Re: TF2Items - Items with custom attributes.
#1016

Do hats work for items or only weapons?
PAL-18 is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 07-26-2011 , 20:44   Re: TF2Items - Items with custom attributes.
#1017

Quote:
Originally Posted by PAL-18 View Post
Also, can i see the stats of the items i create in-game?
Yes.

Quote:
Originally Posted by PAL-18 View Post
Do hats work for items or only weapons?
Hats work fine.
__________________
asherkin is offline
PAL-18
AlliedModders Donor
Join Date: Jul 2010
Old 07-26-2011 , 20:58   Re: TF2Items - Items with custom attributes.
#1018

I have a hat configured, but i cant see it/use in-game. Here's my config:

Code:
"custom_weapons_v3"
{
"*"
    {
        "278" // Horsemann Hat
        {
            "quality"        "2"
            "level"            "100"
            
            "1"            "6 ; 10" // Firerate Bonus
            "2"            "32 ; 10" // Minor Slow Enemy on Hit
            "3"            "52 ; 5" // Stop Backstabs
            "4"            "109 ; 0.50" // Minor penalty to health from packs
            "5"            "112 ; 0.05" // Minor ammo regeneration
            "6"            "150 ; 1" // Corpse turned to gold
            "7"            "205 ; 0.25" // Ranged Damage Decreased
            "8"            "206 ; 0.25" // Melee Damage Increased
            "9"            "134 ; 8" // Particle Effect

            "admin-flags"    "a"
            "quality"        "100"
        }
    }
}
Is this the right code?

Last edited by PAL-18; 07-26-2011 at 23:14.
PAL-18 is offline
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 07-27-2011 , 01:54   Re: TF2Items - Items with custom attributes.
#1019

You can't wear the horsemann hat when it's not in halloween mode. Also, this doesn't modify the item in the player's backpack, it modifies the item as it is given. Hence, people inspecting you will be able to see any changes.

Besides that, how the hell can you FIRE with a HAT? Adding attributes to hats normally doesn't make them global to all your weapons, FYI.
__________________
Bread EOTL GunMettle Invasion Jungle Inferno 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
PAL-18
AlliedModders Donor
Join Date: Jul 2010
Old 07-27-2011 , 02:45   Re: TF2Items - Items with custom attributes.
#1020

Quote:
Originally Posted by FlaminSarge View Post
You can't wear the horsemann hat when it's not in halloween mode. Also, this doesn't modify the item in the player's backpack, it modifies the item as it is given. Hence, people inspecting you will be able to see any changes.

Besides that, how the hell can you FIRE with a HAT? Adding attributes to hats normally doesn't make them global to all your weapons, FYI.
Ah, ok thanks. I thought it affected everything.

Can hats affect player health/hp regen, movement speed and defense?

Also, does a player have to have the particular hat or weapon equipped for them to get the attributes or does this plugin equip it on them when they enable it.

Last edited by PAL-18; 07-27-2011 at 06:03.
PAL-18 is offline
Closed Thread


Thread Tools
Display Modes

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 00:40.


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