Resize Players v1.4.0 19/Сен/2024 |
Описание:
Плагин способен изменять размер игроков или их головы (голова масштабируется только в TF2).
Команды:
sm_resize <#userid|name> [scale] [time in seconds] | Allows an admin to target multiple players. | Default Flag: CHEATS (N)
sm_resizeme | Toggles ones size between normal and the default scale, or uses a menu if the necessary ConVar is set. | Default Flag: GENERIC (B)
sm_resizehead <#userid|name> [scale] [time in seconds] | Allows an admin to target multiple players' heads. | Default Flag: CHEATS (N)
sm_resizemyhead | Toggles ones head size between normal and the default head scale, or uses a menu if the necessary ConVar is set. | Default Flag: GENERIC (B)
Cvars:
sm_resize_version | Версия плагина.
sm_resize_enabled | 0 = выключить плагин, 1 = включить плагин | По умолчанию: 1
sm_resize_defaultresize | По умолчанию масштаб игроков при изменении размера. Нормальный размер 1, можно указывать любое деситичное значение выше 0. | По умолчанию: 0.4
sm_resize_defaultheadresize | По умолчанию масштаб головы игроков при изменении размера. Нормальный размер 1, можно указывать любое деситичное значение выше 0. | Default Value: 2.5
sm_resize_joinstatus | Изменения размера при подключании: 0 = нет, 1 = тело каждого, 3 = голова каждого 5 = голова и тела каждого (Add 1 to any value for admin only) | По умолчанию: 0
sm_resize_menu | 0 = откоючить меню, 1 = включить меню | По умолчанию: 0
sm_resize_voices | 0 = нормальный голос, 1 = тембр голоса зависит от размера игрока, 2 = нет низких голосов, 3 = нет высоких голосов | По умолчанию: 0
sm_resize_damage | 0 = нормальный урон, 1 = урон зависит от размера, 2 = не мсштабируются повреждение, 3 = нет уменьшеных повреждений | По умолчанию: 0 (для этого требуется SDKHooks)
sm_resize_notify | 0 = без уведомлений, 1 = Respect sm_show_activity, 2 = уведомление всем | По умолчанию: 1
sm_resize_bounds | Нижняя (не обязательно) и врехние граници изменения размера. Указывать через запятую. | Значение по умолчанию: "0.1, 3.0"
sm_resize_headbounds | Нижняя (не обязательно) и врехние граници изменения размера головы. Указывать через запятую. | Default Value: "0.25, 3.0"
sm_resize_menuitems | Изменить размеры пунктов меню (see Q&A). | Значение по умочанию: "0.1, Smallest; 0.25, Smaller; 0.50, Small; 1.00, Normal; 1.25, Large; 1.50, Larger; 2.00, Largest"
sm_resize_headmenuitems | Изменения пунктов меню размера головы (see Q&A). | Значение по умолчанию: "0.50, Smallest; 0.75, Small; 1.00, Normal; 2.00, Large; 3.00, Largest"
sm_resize_logging | 0 = No logging, 1 = Log self/target resizes, 2 = Log target resizes only. | Default Value: 1
sm_resize_unstick | Revert when stuck: 0 = Never, 1 = Self-resizes only, 2 = Respawns only, 3 = Self-resizes and respawns. | Default Value: 1
sm_resize_backstab | 0 = Normal backstabs, 1 = Backstab damage scales proportionally with size. | TF2 | SDKHooks | Default Value: 0
Overrides:
sm_resize | Доступ к команде sm_resize. | Флаг по умолчанию: CHEATS (N)
sm_resizeme | Доступ к команде sm_resizeme. | Флаг по умолчанию: GENERIC (B)
sm_resizehead | Доступ к команде sm_resizehead. | Флаг по умолчанию: CHEATS (N)
sm_resizemyhead | Доступ к команде sm_resizemyhead. | Флаг по умолчанию: GENERIC (B)
sm_resizejoinoverride | Only clients with this flag are resized when sm_resize_joinstatus is 2 or 6 (see ConVars) | Default Flag: CHEATS (N)
sm_resizeheadjoinoverride | Only clients with this flag have their head resized when sm_resize_joinstatus is 4 or 6 (see ConVars) | Default Flag: CHEATS (N)
sm_resizeboundsoverride | Clients with this flag are not restricted by the bounds set by sm_resize_bounds | Default Flag: NO DEFAULT
sm_resizeheadboundsoverride | Clients with this flag are not restricted by the bounds set by sm_resize_headbounds | Default Flag: NO DEFAULT
Q&A:
How do I set bounds for my sm_resize(me) and sm_resize(my)head commands?
Set bounds with the sm_resize_bounds and sm_resize_headbounds ConVars, separating the minimum and maximum values with a comma. If you don't supply a minimum bound (or it is less than zero) then 0.0 will be used. Example: "0.5, 2.0".
How do I enable bounds for some admins but disable them for higher ones?
Use override flags sm_resizeboundsoverride and/or sm_resizeheadboundsoverride for the admins you want to be able to bypass restrictions. Note that these flags do not have a default and must be explicitly defined, and that sizes less than or equal to zero are invalid regardless of access.
How do I write my own custom menus?
Design your menus using the sm_resize_menuitems and sm_resize_headmenuitems ConVars. Each item in the menu is separated with a semicolon. Example: "0.5; 2.0" Each item can also have an optional label by putting it after the number and separated with a comma. Example: "0.5, Something; 2.0, SomethingElse".
How does the TF2 backstab damage work?
If the sm_resize_backstab ConVar is set to 1 then the spy will deal damage in proportion to his size. If a spy is at 50% size then he will deal 50% of the victim's maximum health (or more if overhealed). If he is at 25% size then he will deal 25% of the victim's maximum health, and so on. Maximum health altering items such as the Dalokohs Bar are taken into account automatically.
Установка:
Положить ResizePlayers.smx в папку addons/sourcemod/plugins