Raised This Month: $12 Target: $400
 3% 

Randomly stopped working


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Swampass12
Junior Member
Join Date: Nov 2022
Old 11-13-2022 , 14:35   Randomly stopped working
Reply With Quote #1

"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
}
}
}

Last edited by Swampass12; 11-13-2022 at 14:47. Reason: incorrect code
Swampass12 is offline
Old 11-13-2022, 14:52
Swampass12
This message has been deleted by Swampass12.
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 11-16-2022 , 14:43   Re: Randomly stopped working
Reply With Quote #2

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
        
}
    }

PC Gamer is offline
Swampass12
Junior Member
Join Date: Nov 2022
Old 11-17-2022 , 09:31   Re: Randomly stopped working
Reply With Quote #3

this did the trick. Thanks.
Swampass12 is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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