AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   TF2Items (https://forums.alliedmods.net/forumdisplay.php?f=146)
-   -   Randomly stopped working (https://forums.alliedmods.net/showthread.php?t=340363)

Swampass12 11-13-2022 14:35

Randomly stopped working
 
"custom_weapons_v3" // Leave this alone
{
"*" // asterisk means these changes apply to all players
{
"312" // Brass Beast
{
"preserve_attributes" "1"
"1" "2 ; 1.15" // this equals 40% more dmg
}
}
"*" // asterisk means these changes apply to all players
{
"41" // Natascha
{
"preserve_attributes" "0"
"1" "86 ; 1.5" // 50% slower rev
"2" "1 ; 0.75" // 25% less damage
"3" "737 ; 1.0" // speed boost
}
}
"*" // asterisk means these changes apply to all players
{
"811" //Huo Long Heater
{
"preserve_attributes" "0"
"1" "430 ; 12" // ring of fire
"2" "431 ; 4" // uses 4 ammo per second aiming
"3" "795 ; 1.25" // 25% more dmg on burning players
"4" "60 ; 0.75" // 25% fire resist
}
}
}

PC Gamer 11-16-2022 14:43

Re: Randomly stopped working
 
I don't use this feature so my input may be wrong. Still, it's worth a try. My understanding is that the configuration file for this uses a nested block based format where you have to list the player identifier in a block, followed by weapon identifiers for that player.

In your config you listed the same player (everyone, by use of asterisk) three separate times. My guess is that each time you list the same player (everyone in this case) the previous instructions for that player are replaced by the new instruction. It is likely that the only weapon that will work as intended is the last one (Huo Long Heater). In other words, try again, but this time use only one asterisk (*) and place all the weapons that you want to apply to everyone in that section.

Try using this format, and let us know if it works:
PHP Code:

"custom_weapons_v3" // Leave this alone
{
    
"*" // asterisk means these changes apply to all players
    
{
        
"312" // Brass Beast
        
{
            
"preserve_attributes" "1"
            "1" "2 ; 1.15" 
// this equals 40% more dmg
        
}
        
"41" // Natascha
        
{
            
"preserve_attributes" "0"
            "1" "86 ; 1.5" 
// 50% slower rev
            
"2" "1 ; 0.75" // 25% less damage
            
"3" "737 ; 1.0" // speed boost
        
}
        
"811" //Huo Long Heater
        
{
            
"preserve_attributes" "0"
            "1" "430 ; 12" 
// ring of fire
            
"2" "431 ; 4" // uses 4 ammo per second aiming
            
"3" "795 ; 1.25" // 25% more dmg on burning players
            
"4" "60 ; 0.75" // 25% fire resist
        
}
    }



Swampass12 11-17-2022 09:31

Re: Randomly stopped working
 
this did the trick. Thanks.


All times are GMT -4. The time now is 13:39.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.