Garry's Mod

Garry's Mod

28 ratings
[TTT2] Enhanced PlayerModel Selector Fix/Compatibility
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Server content
Addon Tags: Fun, Roleplay
File Size
Posted
Updated
2.669 KB
10 Nov, 2021 @ 9:09pm
3 Sep, 2024 @ 5:10pm
2 Change Notes ( view )

Subscribe to download
[TTT2] Enhanced PlayerModel Selector Fix/Compatibility

Description
Allows players to choose their own playermodels, while also allowing TTT2 to forcibly change these players' playermodels when necessary.

Problems with using EPMS and TTT2 at the same time:

1. With the EPMS Server Setting "Enable playermodel enforcement" enabled, TTT2 cannot change player's models. An example of this would be when a player is revived by a Necromancer (role), the revived player should change their model to a zombie. This does not occur with the setting enabled.

2. With the EPMS Server Setting "Enable playermodel enforcement" disabled, TTT2 can change player's models, but will reset playermodels to the default "Phoenix" model at the start of preround / end of rounds. This is frustrating, as player's would have to reapply their playermodel every round.

3. There have also been some reports of the addon preventing players from joining due to an infinite loop error.

How the fix works:

With the "Enable playermodel enforcement" disabled, this addon does 2 things to solve issues. Playermodels being applied at the start of preround / end of rounds by TTT2 are disabled. This causes some model issues with bots, but they will receive the default model when the first round starts. The addon also automatically reapplies player's selected models at the start of preround / end of rounds. These two changes allow for custom playermodels that players can choose for themselves while allowing TTT2 to change models when needed.

Note:
1. "Enable playermodel enforcement" server setting in the EPMS menu must be disabled.
2. Players can still choose to change their playermodel during the game at any point
7 Comments
Mr. Napkins 16 Mar @ 10:26am 
I've tried a lot of parameter changes starting with the ones you defined. It doesn't seem to want to reapply the player models and never switches out of Phoenix unless its manually updated or TTT2 changes it for a role. I don't have any console errors, and the mod is enabled on both the server and the client. Not a big deal in the long run, I just can't get it to work.
Maboy 11 Jun, 2022 @ 2:00pm 
Got the same error as blackmagicfine
dhkatz 12 Apr, 2022 @ 8:43pm 
I added what I believe to be a better fix in my TTT/2 fixes addon. It fixes the issue with bots.
blackmagicfine 11 Feb, 2022 @ 7:11pm 
I encountered an issue on this. Aside from bots having playermodel issues, when I was alone on the server, a friend couldn't join. They got the error:
"Disconnect: Too many requests. Please check your script for infinite loops."

Taking out this addon fixed the issue. Very strange issue.
hawky_ 29 Nov, 2021 @ 8:24pm 
nvm it does
hawky_ 26 Nov, 2021 @ 12:25am 
hawky_ 26 Nov, 2021 @ 12:23am 
does this work with the feusig edit? (the one that allows you to change playermodel hands)