[GUIDE] Mann vs Machine Attributes - by Turbo Lover

Status
Not open for further replies.

Seba

DR. BIG FUCKER, PHD
aa
Jun 9, 2009
2,364
2,728
So while I was complaining about attaching hats in MvM in chat, Turbo Lover decided to tell me some things about how bot attributes work. Note that this is a Steam conversation, so it's not as in-depth as his full guide will be (when that guide comes out, I'll lock this thread and link to his instead).

This is the full list of attributes in TF2: http://pastebin.com/nPphenm1



So to give your bot an attribute, you look at the list and find "Attributes Associated" and pick out the attribute you want, then put it in your TFBot under CharacterAttributes like so
CharacterAttributes
{
"damage bonus" 1.5
}

This gives the bot a 50% damage bonus

Now let's say you want to give it a firing rate bonus

Scroll until you find the Associated Attribute "fire rate bonus" and put it in CharacterAttributes like before

CharacterAttributes
{
"damage bonus" 1.5
"fire rate bonus" 0.5
}

Now why is that one 0.5 and not 1.5 for a 50% bonus? Well in the list, under Attribute Format, you'll find that damage bonus is a Percentage, and fire rate bonus is an inverted percentage

Percentages have a positive effect if they are above 1

Inverted Percentages are the opposite, and are positive effects when below 1, a fire rate bonus of 1.5 is actually 50% slower firing rate

Attributes can also be Additive, or Additive Percentage

Additive is for effect like "Set DamageType Ignite" where any value that isn't 0 will cause it to set people on fire or effects like "max health additive bonus" where the value you put, is the amount by which your health is increased

Additive Percentage is a percentage from 0 to 100, like "slow enemy on hit" the value you enter is the chance it will slow

Finally, I didn't make or compile this, this dude did http://steamcommunity.com/sharedfiles/filedetails/?id=113191044#2801

I just put all 5 pages into one

Oh and keep in mind certain attributes are limited by what type of weapon they are used on and some by what kind of projectile is being used, hte list of what the attribute allowed is under attribute format

Note: I've removed the Steam chat formatting for ease of reading; each 'paragraph' is a separate message.

Here's a sample picture, provided by TL:
1J7Oq



If you have any questions about this, feel free to message TL on Steam.
 

tyler

aa
Sep 11, 2013
5,102
4,621
It's totally ridiculous that some things are regular and others are inverted. Good to have this spelled out.
 

henke37

aa
Sep 23, 2011
2,075
515
It's not inverted. Both the example values are used with multiplication. They are ratios. You multiply the damage with a value bigger than 1 to boost it and you multiply the fire interval with a value lower than 1 to scale it down. The attribute names reflect this. The "mult" prefix is used for both of these, since it is a base number that is multiplied with a factor.

The real thing here is that for some attributes lower is better while others have the opposite of higher being better.
 
Status
Not open for further replies.