Decreasing rocket and stickybomb ammo
Can't seem to get my configs right. Trying to reduce ammo for stickybomb and rockets, and even tried all weapons.
Code:
"custom_weapons_v3" |
Re: Decreasing rocket and stickybomb ammo
Are you trying to reduce the amount of ammo they have per "clip", or the ammo that they have in reserve?
|
Re: Decreasing rocket and stickybomb ammo
well can you give me examples of both or whichever one is possible?
I would try to do both, but the ammo they have in reserve being reduced is more important. Thanks for the help! |
Re: Decreasing rocket and stickybomb ammo
For the ammo in reserve, go into the TF2 .vpk files, then the scripts folder, and then the playerclasses folder, and pull out out all of the .ctx files (except for the civilian file), then put them in the scripts/playerclasses folder of your server. If your server doesn't have a scripts folder, or a subordinate playerclasses folder, then create them. You'll have to decompile the .ctx files into .txt files if you want to edit them. I use a program called "vice", which is available somewhere out there. Once you decompile the .ctx files, delete them and edit the .txt files. Each class has a section of their file that contains "tf_ammo_primary" and "tf_ammo_secondary". Those are the values you want to change. It'll be secondary for Demo's stickybomb launcher, and primary for Soldiers rockets. Unfortunately, as far as I know, you cannot reduce the number of shots a class has in their "clip", which I posted about (https://forums.alliedmods.net/showthread.php?t=293368).
Hope this helped. All blame for how convoluted this is lies with VALVe for causing this game to consist of spaghetti code when they should be using .txt files for weapons. The items_game.txt that the game now relies on for numerous things is almost completely unnecessary, but it has become increasingly evident over the years that the people at VALVe are fucking clueless and amateur designers. This has led to the necessity of plugins like TF2Items to do simple edits, when we should only have to edit a single .txt file to change a weapon's entirety on a server, from its model to stats to description. It honestly makes me want to rip my hair out. |
Re: Decreasing rocket and stickybomb ammo
Wait so no way to do it with tf2items?
|
Re: Decreasing rocket and stickybomb ammo
Attribute 77 / 79 are definitely what you want, they need to be set to a float that is less than 1.0 (e.g. 0.5 will be half the normal ammo, 0.25 a quarter, etc). Are you sure your config file is being used at all? Is the TF2Items Manager plugin loaded? Have you checked the error logs?
|
Re: Decreasing rocket and stickybomb ammo
Hello asherkin, I will double check and get back to you. Thanks for helping out.
|
| All times are GMT -4. The time now is 20:59. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.