Quote:
Originally Posted by Marttt
|
Thanks, I don't know if the rock of the tank can also apply shove to another tank.
Quote:
Originally Posted by Marttt
Spoiler
I did a test and is working properly, the default section is the value set for all enabled weapons when their attribute is not found inside their section.
See the example below for applying to specific weapons.
Yes. The section "default" is the value that is applied to all weapons in config with "enable" "1"
E.g: If you want that any hit from SMG staggers the Tank just do this in the data file (short example):
PHP Code:
"l4d_stagger_tank" { "default" { "enable" "1" "normal" "0" "explosive" "100" "incendiary" "0" }
"classnames" { "weapon_smg" { "normal" "100" "enable" "1" } } }
If the "attribute" is not found then it uses the default config.
I didn't add all config per weapon in the data file otherwise the file would become too big.
|
So if I do that, Example:
Spoiler
PHP Code:
"l4d_stagger_tank"
{
"default"
{
"enable" "1"
"normal" "100"
"explosive" "100"
"incendiary" "100"
}
"classnames"
{
"weapon_smg"
{
"enable" "1"
"normal" "0"
"explosive" "0"
"incendiary" "0"
}
}
}
weapon_smg would remove any chance to stagger tanks?