Batfoxkid / Freak-Fortress-2-Rewrite

The gamemode that's now also a standalone boss maker.
https://forums.alliedmods.net/forumdisplay.php?f=154
GNU General Public License v3.0
17 stars 7 forks source link

[Bug] tf_weapon_pistol minicrits #193

Closed FateFighter970730 closed 5 months ago

FateFighter970730 commented 5 months ago

one question again, why is there no minicrit for "tf_weapon_pistol" but the others have it and the config looks like this


{    
    // Scout Primary
    "220"
    {
        "strip"            "false"
        "attributes"    "525 ; 1; 526 ; 1.2; 533 ; 1.4; 534 ; 1.4; 328 ; 1; 241 ; 1.5; 78 ; 1.389; 97 ; 0.75"
    }
    "772"
    {
        "strip"            "false"
        "attributes"    "418 ; 1; 49 ; 1; 3 ; 0.66; 532 ; 1; 793 ; 1"
    }
    "1103"
    {
        "strip"            "false"
        "attributes"    "179 ; 1.0"
    }
}
"Classnames"
{
    // Scout Secondary
    "tf_weapon_pistol"
    {
        "strip"            "false"
        "custom"
        {    
            "mod crit type on bosses"    "1.0"
            "mod crit type glow"    "1.0"
        }
    }
    "tf_weapon_lunchbox_drink"
    {
        "strip"            "false"
        "custom"
        {    
            "mod crit type on bosses"    "1.0"
            "mod crit type glow"    "1.0"
        }
    }
    "tf_weapon_jar_milk"
    {
        "strip"            "false"
        "custom"
        {    
            "mod crit type on bosses"    "1.0"
            "mod crit type glow"    "1.0"
        }
    }
    "tf_weapon_handgun_scout_secondary"
    {
        "strip"            "false"
        "custom"
        {    
            "mod crit type on bosses"    "1.0"
            "mod crit type glow"    "1.0"
        }
    }
    "tf_weapon_cleaver"
    {
        "strip"            "false"
        "custom"
        {    
            "mod crit type on bosses"    "1.0"
            "mod crit type glow"    "1.0"
        }
    }
}
Batfoxkid commented 5 months ago

Weapon index entries override classname entries so you would need to add your custom attributes to your weapon index entries.

FateFighter970730 commented 5 months ago

Weapon index entries override classname entries so you would need to add your custom attributes to your weapon index entries.

I don't really understand what exactly I should do, since minicrits belonging to other classnames work

FateFighter970730 commented 5 months ago

Weapon index entries override classname entries so you would need to add your custom attributes to your weapon index entries.

not good for me either It just doesn't work https://wiki.teamfortress.com/wiki/Pistol


{   
    // Scout Primary
    "220"
    {
        "strip"         "false"
        "attributes"    "525 ; 1; 526 ; 1.2; 533 ; 1.4; 534 ; 1.4; 328 ; 1; 241 ; 1.5; 78 ; 1.389; 97 ; 0.75"
    }
    "772"
    {
        "strip"         "false"
        "attributes"    "418 ; 1; 49 ; 1; 3 ; 0.66; 532 ; 1; 793 ; 1"
    }
    "1103"
    {
        "strip"         "false"
        "attributes"    "179 ; 1.0"
    }
    "23"
    {
        "strip"         "false"
        "custom"
        {   
            "mod crit type on bosses"   "1.0"
            "mod crit type glow"    "1.0"
        }
    }
    "209"
    {
        "strip"         "false"
        "custom"
        {   
            "mod crit type on bosses"   "1.0"
            "mod crit type glow"    "1.0"
        }
    }
    "160"
    {
        "strip"         "false"
        "custom"
        {   
            "mod crit type on bosses"   "1.0"
            "mod crit type glow"    "1.0"
        }
    }
    "294"
    {
        "strip"         "false"
        "custom"
        {   
            "mod crit type on bosses"   "1.0"
            "mod crit type glow"    "1.0"
        }
    }
    "15013"
    {
        "strip"         "false"
        "custom"
        {   
            "mod crit type on bosses"   "1.0"
            "mod crit type glow"    "1.0"
        }
    }
    "15018"
    {
        "strip"         "false"
        "custom"
        {   
            "mod crit type on bosses"   "1.0"
            "mod crit type glow"    "1.0"
        }
    }
    "15035"
    {
        "strip"         "false"
        "custom"
        {   
            "mod crit type on bosses"   "1.0"
            "mod crit type glow"    "1.0"
        }
    }
    "15041"
    {
        "strip"         "false"
        "custom"
        {   
            "mod crit type on bosses"   "1.0"
            "mod crit type glow"    "1.0"
        }
    }
    "15046"
    {
        "strip"         "false"
        "custom"
        {   
            "mod crit type on bosses"   "1.0"
            "mod crit type glow"    "1.0"
        }
    }
    "15056"
    {
        "strip"         "false"
        "custom"
        {   
            "mod crit type on bosses"   "1.0"
            "mod crit type glow"    "1.0"
        }
    }
    "15060"
    {
        "strip"         "false"
        "custom"
        {   
            "mod crit type on bosses"   "1.0"
            "mod crit type glow"    "1.0"
        }
    }
    "15061"
    {
        "strip"         "false"
        "custom"
        {   
            "mod crit type on bosses"   "1.0"
            "mod crit type glow"    "1.0"
        }
    }
    "15100"
    {
        "strip"         "false"
        "custom"
        {   
            "mod crit type on bosses"   "1.0"
            "mod crit type glow"    "1.0"
        }
    }
    "15101"
    {
        "strip"         "false"
        "custom"
        {   
            "mod crit type on bosses"   "1.0"
            "mod crit type glow"    "1.0"
        }
    }
    "15102"
    {
        "strip"         "false"
        "custom"
        {   
            "mod crit type on bosses"   "1.0"
            "mod crit type glow"    "1.0"
        }
    }
    "15126"
    {
        "strip"         "false"
        "custom"
        {   
            "mod crit type on bosses"   "1.0"
            "mod crit type glow"    "1.0"
        }
    }
    "15148"
    {
        "strip"         "false"
        "custom"
        {   
            "mod crit type on bosses"   "1.0"
            "mod crit type glow"    "1.0"
        }
    }
    "30666"
    {
        "strip"         "false"
        "custom"
        {   
            "mod crit type on bosses"   "1.0"
            "mod crit type glow"    "1.0"
        }
    }

}
"Classnames"
{
    // Scout Secondary
    "tf_weapon_pistol"
    {
        "strip"         "false"
        "custom"
        {   
            "mod crit type on bosses"   "1.0"
            "mod crit type glow"    "1.0"
        }
    }
    "tf_weapon_handgun_scout_primary"
    {
        "strip"         "false"
        "custom"
        {   
            "mod crit type on bosses"   "1.0"
            "mod crit type glow"    "1.0"
        }
    }
    "tf_weapon_lunchbox_drink"
    {
        "strip"         "false"
        "custom"
        {   
            "mod crit type on bosses"   "1.0"
            "mod crit type glow"    "1.0"
        }
    }
    "tf_weapon_jar_milk"
    {
        "strip"         "false"
        "custom"
        {   
            "mod crit type on bosses"   "1.0"
            "mod crit type glow"    "1.0"
        }
    }
    "tf_weapon_handgun_scout_secondary"
    {
        "strip"         "false"
        "custom"
        {   
            "mod crit type on bosses"   "1.0"
            "mod crit type glow"    "1.0"
        }
    }
    "tf_weapon_cleaver"
    {
        "strip"         "false"
        "custom"
        {   
            "mod crit type on bosses"   "1.0"
            "mod crit type glow"    "1.0"
        }
    }
}```