Quote:
Originally Posted by Jose76Tron
How can I add some weapons names instead of classes to the uu_weapons.txt?
|
The weapon name is not necessary, or used. Instead, you need to know the 'Weapon Class' used for that weapon, which can be found here:
https://wiki.alliedmods.net/Team_for...nition_indexes
Here's a real example of what I did when a new weapon was introduced to TF2 called 'The Air Strike', which is like a Rocket Launcher:
Problem: New weapon added to game called 'Air Strike'. Players who had the Air Strike equipped could not upgrade it using the Uber Upgrades Mod.
Cause: The weapon class for the Air Strike does not exist in uu_weapons.txt file.
Solution:
1. Use link above to open up page on AlliedModders website that lists weapon classes.
2. Search page for 'The Air Strike'. Locate the weapon class listed for it.
3. In this case, the Weapon Class is "tf_weapon_rocketlauncher_airstrike".
4. Open your uu_weapons.txt file for editing (using notepad++).
6. Review the list and find a similar weapon within the file for comparison. In this case, The Air Strike is most similar to a Rocket Launcher. The rocket launcher has a type listed of "expweap", so we'll use that as well for The Air Strike.
7. Add an a line of "tf_weapon_rocketlauncher_airstrike" "expweap" within the file.
8. Save it. You are done.
The next time you start your game server players should be able to upgrade The Air Strike.
I hope this helps...