View Single Post
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 10-15-2021 , 01:04   Re: [L4D & L4D2] Mutant Tanks (v8.89, 9-11-2021)
Reply With Quote #1113

Quote:
Originally Posted by yuzumi View Post
Tank #17 In mutant_tanks.cfg

PHP Code:
        "Props"
        
{
            
"Light Color"                "50,155,150,255"
            "Oxygen Tank Color"            "50,155,150,255"
            "Flame Color"                "50,155,150,255"
            "Rock Color"                "50,155,150,255"
            "Tire Color"                "50,155,150,255"
            "Propane Tank Color"            "50,155,150,255"
            "Flashlight Color"            "50,155,150,255"
            "Crown Color"                "50,155,150,255"
            "Rock Model"                "2"
        
}
        
"Health" <-- Remove This
        
"Drunk Ability"
        
{
            
"Human Ability"                "1"
            "Human Ammo"                "2"
            "Human Cooldown"            "120"
            "Ability Enabled"            "1"
            "Ability Effect"            "7"
            "Ability Message"            "1"
            "Drunk Chance"                "33.3"
            "Drunk Duration"            "5"
            "Drunk Hit"                "1"
            "Drunk Hit Mode"            "0"
            "Drunk Range"                "150.0"
            "Drunk Range Chance"            "15.0"
            "Drunk Speed Interval"            "2.5"
            "Drunk Turn Interval"            "1.5"
        

Thanks for helping, yuzumi.

Quote:
Originally Posted by thewintersoldier97 View Post
Holy sh-t thank you! Now it's working like a charm. I'll be more careful when editing stuff next time. Cheers!
Glad it's working for you now. Also, yeah, gotta be careful how you structure the config file. If you want slightly easier formats, try the other 4 formats I included in the data/mutant_tanks/backup_config folder. This main one seems to be tricky for a lot of users due to all the spaces in the keywords.

--

Quote:
Originally Posted by Marttt View Post
Try changing it to "weapon_grenade_launcher" (besides, looking at the plugin code, it already does an workaround for that case)

Also your "Drop Chance" is 0, try setting it as 100.0 like in the example:

PHP Code:
"Drop Chance"                "100.0" 
Thank you for helping, Marttt.

By the way, the "Drop Chance" only needs to be set if the user wants the Tank to drop the weapon that he is carrying when he dies. For this case, the grenade launcher is just for cosmetic reasons so it can be kept at "0".

Quote:
Originally Posted by moschinovac View Post
The Drop Ability seem broken. I set to grenade launcher but in-game, that tank have random weapon, same as other gun but melee seem fine.

...
Marttt's suggestion is the only solution for now. I already reworked the logic for the weapon name look-up in the next update. The current version's logic forgot to include cases where the "weapon_" prefix is omitted from the name. Sorry for the inconvenience.
__________________
Psyk0tik is offline