Garry's Mod

Garry's Mod

评价数不足
[TTT2] Map-based Playermodel Changer
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 服务器内容
插件标签: 卡通, 快乐, 角色扮演
文件大小
发表于
更新日期
15.013 KB
2024 年 2 月 7 日 上午 11:30
2024 年 7 月 22 日 上午 4:59
6 项改动说明 ( 查看 )

订阅以下载
[TTT2] Map-based Playermodel Changer

描述
About the Addon
This addon enables server administrators to assign specific player models to certain maps. When a map is loaded and a specific player model has been defined for this map, it is automatically loaded at the start of the preparation time.

For example, on Minecraft maps, players can play as the Steve character, and on a Spongebob map, they can play as Spongebob, provided these player models are installed on the server.

For each map, a separate player model can also be defined for the role of the detective if desired.

It is also possible to store several player models for one map.
If you have done this, you have the following options:
1. each player gets the same random player model (random selection from the stored player models for the map)
2. each player gets a random player model (random selection from the stored player models for the map)


How it works
The addon automatically detects all installed maps. To assign player models to individual maps, follow these steps:
Press F1 on your keyboard -> "Server Addons" -> "Map-based Playermodel Changer"
You will now see a list of all installed maps. Next to each map, you can enter the path of the player models. It's important to confirm the input by pressing the "Enter" key.
If you want to store several player models, you must separate them with a semicolon.

There is also a switch under the map, if the switch is "Off", a random player model is assigned to the players (everyone gets a random player model).
If the switch is "On", all players are assigned the same random player model (everyone gets the same random player model)
No server restart is required for the changes to take effect. Only the map needs to be reloaded.

Here is an example:
1. only one player model for one map:
mapname = path/to/playermodel ttt_bikinibottom = models/spongebob/spongebob.mdl

2. multiple player models for one map:
mapname = path/to/playermodel;path/to/playermodel ttt_bikinibottom = models/spongebob/spongebob.mdl;models/plankton/plankton.mdl


Currently Supported Languages
- English
- German


ConVars
Since the settings are stored in ConVars, it's also possible to make assignments in the server.cfg file. The assignment would look like this:
ttt_mapmodel_MAPNAME models/.../playermodel.mdl
ttt_mapmodel_MAPNAME models/.../playermodel.mdl;models/.../playermodel2.mdl
ttt_mapdetectivemodel_MAPNAME models/.../playermodel.mdl
ttt_mapconfig_MAPNAME true/false


Info
For server owners:
- Only the server needs the addon

Collection with working playermodels and the correct paths can be found here:
Collection: https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3156112948
Paths: https://psteamcommunity.yuanyoumao.com/workshop/filedetails/discussion/3156112948/4351114159711464327/

It is of course possible to use alternative player models. However, these specific models have been tested in any case, and the path of each player model in the collection has also been specified. The collection will be continuously expanded.


License Terms
- The addon may not be further developed or published without the developer's consent.
- Re-uploads of the addon are not permitted.



Tags: playermodel changer, playermodel, mapbased, map-based, map based, character, character changer, changer, change playermodel, PM, changing
10 条留言
frequency 2024 年 7 月 20 日 上午 3:37 
cool
Budd 2024 年 3 月 27 日 下午 3:26 
YAAAAAAAAAAAAAAAAAAAAAAAAY
MR. Fresch  [作者] 2024 年 3 月 27 日 上午 11:57 
I have released an update.
Playermodel is now already loaded during the preparing time.
You can now store several player models for a map and then either assign a random player model to each one, or all get the same random player model.
Please refer to the description for more details.
Budd 2024 年 3 月 24 日 上午 9:45 
That's alright if there isnt, The only way I see it working is if it directly edited the "ttt_map_settings" entity on startup of the map, The Modest Map Manipulator can edit it but the "Forceplayermodel" keyvalue just isnt there sadly
MR. Fresch  [作者] 2024 年 3 月 24 日 上午 1:59 
Yes, that is correct. Unfortunately, there was no other option at the time. But I'll look again to see if this is possible in another way.
Budd 2024 年 3 月 23 日 上午 11:23 
Awesome! My only other gripe is that it applies the models at the start of the round and not just the start of the map loading
MR. Fresch  [作者] 2024 年 3 月 23 日 上午 11:03 
I am trying to add a function of storing several player models for a specific map.
If this works, I will try to implement a function where each player from the pool is assigned a random player model.
Budd 2024 年 3 月 23 日 上午 10:21 
Haha that was just a dumb example, I was intending like creating a pool of models to randomly select from for each individual player each round. Like a random citizen model for each player rather than each player is the same random model
MR. Fresch  [作者] 2024 年 3 月 21 日 下午 11:31 
Unfortunately, this is not currently possible.
But I can see if I can add the function.
Do you want everyone to have a different Mii character, or do you want everyone to have the same Mii character and change it every round?
Budd 2024 年 3 月 21 日 下午 12:35 
Is there anyway to set multiple models for a single map? I.E. Different Mii character models for the Wii Sports Island or something