FortyTwoFortyTwo / Randomizer

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

fix viewmodels #113

Open tsuza opened 1 year ago

tsuza commented 1 year ago

Changing the player's class to the intended weapon's class and then reverting it back is not required to have correct animations. The missing piece was setting the weapon's m_iViewModelIndex.

tsuza commented 1 year ago

Maybe I should have given a better title to the PR. Yes, viewmodels currently work just fine. However: Setting the weapon's model and setting the weapon's m_iViewModelIndex on top of setting m_nCustomViewmodelModelIndex removes the need to: