View Single Post
Cerise
Senior Member
Join Date: Jun 2009
Location: debug_backtrace()
Old 01-10-2010 , 16:44   Re: [EXTENSION] TF2Items
#34

Yeah thought about that but that fact is the attributes for tf_weapon_sword are :

PHP Code:
"attributes"
{
"crit mod disabled"
{"attribute_class"    "mult_crit_chance"
"value"    "0"
}
"max health additive penalty"
{
"attribute_class"    "add_maxhealth"
"value" "-25"
}
 } 
And it's not sufficient to have the same effects.
I'm currently reading everything if the tf2 items help page but i can't find what would work to clone the effect

EDIT :

Have another 'problem' with my maths ( it begins to getting late ). Here's my prob :

Code lines :

PHP Code:
"73" 
 

 
"name" "weapon burn time increased"
 "attribute_class" "mult_wpn_burntime"
 "attribute_name" "Minor increase to burn time" 
 "min_value" "1.05" 
 "max_value" "1.15" 
 "description_string" 
#Attrib_WpnBurnTime_Increased" 
 
"description_format" "value_is_percentage" 
 "hidden" "0" 
 "effect_type" "positive" 
 

And

PHP Code:
"74" 
 

 
"name" "weapon burn time ireduced"
 "attribute_class" "mult_wpn_burntime"
 "attribute_name" "Minor reduction to burn time" 
 "min_value" "0.95" 
 "max_value" "0.7" 
 "description_string"
#Attrib_WpnBurnTime_Reduced" 
 
"description_format" "value_is_percentage" 
 "hidden" "0" 
 "effect_type" "negative" 
 

I want to put on my weapon an attribute that reduces burning duration by 20% on myself. But when i'm using the attribute 74, it appears like "20% burn duration" in red. ( cant get a -XX% with this one )
When using The attribute 73, it gaves me "+-20% burn duration" in blue. But it means that my target will burn longer if my weapon is a Flamethrower.

So which attribute will i have to use and which value to have on my weapon "-20% burn duration" ( When burning, i'll burn for 20% shorter time )

I perfectly know i would find the clue later after a good night but i have to finish this one tonight
__________________

Last edited by Cerise; 01-10-2010 at 18:36.
Cerise is offline