FortyTwoFortyTwo / Randomizer

TF2 plugin that randomizes player loadout in any imaginable combinations
GNU General Public License v3.0
35 stars 15 forks source link

Add custom weapons support #54

Closed FortyTwoFortyTwo closed 3 years ago

FortyTwoFortyTwo commented 3 years ago

There a lot of changes here and not finished yet, just want to push current progress.

This adds custom weapons support from #51, supports name, index, classname and attributes. No support for custom model and viewmodels, those are a mess to work with and i'm not sure if there enough demands for it.

Default config won't have any starter custom weapons, but server owners can add themselves in config, with Army of One as an example on how to add custom weapons in config.

Also updated commands where player don't respawn, but instead regenerated on weapon/class change. sm_rndweapon also supports having weapon name as instead of def index in args, eg sm_rndweapon @me 1 Righteous Bison would be the same as sm_rndweapon @me 1 442

FortyTwoFortyTwo commented 3 years ago

This PR need a complete rewrite as it been almost 10 months with a lot of changes, but should be easier to make this possible with newest code.