Пользовательское оружие 2

From Team Fortress Wiki
< User:✌ AlexBro ✌
Revision as of 18:29, 17 October 2016 by ✌ AlexBro ✌ (talk | contribs) (sandbox)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Да. Мне нравится новая пушка.
Пулеметчик о своем новом найденном оружии

Custom Weapons 2 это название SourceMod плагина для сервера Team Fortress 2. Разработчиком этого плагина является MasterOfTheXP, и в настоящее время находится в бета-версии с 03/12/14.

В настоящее время поддерживается Chdata, 404 и Theray070696.

В отличии от плагина Advanced Weaponiser, здесь нет ни просмотра снаряжения, ни системы выпадения, потому что всё оружие доступно для публики.




Команды / CVAR

Все игроки могут снарядить пользовательское оружие написав в чат !custom, !cus, или !c.

  • Команды для администратора
    • custom_addattribute <клиент> <слот> <"название характеристики"> <"значение"> <"плагин"> - Добавляет пользовательские характеристики на любое оружие.
      • Хотите чтобы ваше оружие ближнего боя зажигало кого бы то ни было включая криты? custom_addattribute @me 2 «crits ignite» «1» «basic-attributes»
  • Cvars
    • sm_customweapons_enable (1/0, стандарт. 1) Включает плагин. Установите значение 0, чтобы удалить всё активное пользовательское оружие.
    • sm_customweapons_onlyinspawn (1/0, стандарт. 1) Разрешать использовать команду /custom только внутри комнаты возрождения.
    • sm_customweapons_arena_time (стандарт. 20) Время после возрождения, в секундах, после которого можно использовать /custom на арене.
    • sm_customweapons_bots (стандарт. 0.15) Процентный шанс того, что боты будут использовать пользовательское оружие.
    • sm_customweapons_menu (1/0, стандарт. 1) Игрокам разрешено говорить /custom, чтобы снаряжать пользовательское оружие в ручную. Установите значение 0 чтобы отключить ручной выбор оружия без отключения всего плагина.
    • sm_customweapons_killwearablesondeath (1/0, стандарт. 1) Удаляет пользовательские одели оружия когда игрок умирает. Рекомендуется пока плохие вещи не начинают происходить.
    • sm_customweapons_sethealth (1/0, стандарт. 1) Когда пользовательское оружие будет снаряжено, здоровье игрока будет восполнено до максимума.
    • sm_customweapons_onlyteam (стандарт. 0) Если не ноль, пользовательское оружие может быть использовано только одной командой; 2 = КРС, 3 = СИН.



КАК СДЕЛАТЬ ПОЛЬЗОВАТЕЛЬСКОЕ ОРУЖИЕ

Создание нового пользовательского оружия это легко и просто. Просто скопируйте файл конфигурации оружия, и внесите в него изменения, написав свои характеристики.

  • Название оружия находится на самом верху, в «кавычках».
  • «classes» is the array of player classes the weapon should be available for; the number next to each class is the weapon slot (0 = Основное оружие, 1 = Доп. оружие, 2 = Ближний бой)
  • «baseclass» это имя класса оружия, без «tf_weapon_».
  • «baseindex» это индекс предмета базового оружия, смотрите выше имя класса. Если вы не уверены, придерживайтесь предела в 0-30s.
  • Если оружие использует боеприпасы (т.е. большинство оружия не ближнего боя) оно должно иметь «mag» и «ammo» значение с предполагаемым стартовым количеством патронов.
  • «logname» это имя будет отображаться в клиентских консолях, когда будет производиться убийство с этого оружия. В настоящее время не реализовано.
  • «killicon», эта функция также ещё не реализована, будет менять иконку убийства у оружия.
  • «description» список характеристик оружия, который будут видеть игроки при выборе оружия. \n = Новая строка. «\n \n» = Будет пропускать всю строку.
  • «attributes»; the bread-n-butter. Each attribute has:
    • An identifier, to set what attribute it is. This will either be a case-sensitive name (Custom Weapons, TF2Attributes) or an attribute index (TF2Items).
    • «plugin»: Who will provide the attribute's functionality?
      • For official Valve attributes, you'll usually want to use TF2Attributes, so put «tf2attributes». A select few attributes require «tf2attributes.int» instead.
      • If TF2Attributes doesn't work for said attribute (so far I've only seen «alt-fire is vampire» not work with TF2Att) then try «tf2items» instead, with the identifier being the number beside the attribute's name. (e.g. «move speed penalty» should instead be «54»)
      • Or, of course, a custom attribute! In which case, «plugin» should be set to the name of the attributes plugin, minus «.smx». The starter pack includes «basic-attributes» and «custom-attributes».
    • And of course, a value. Most attributes are multipliers; with "damage bonus/penalty«, »2.0« is double (+100%), and »0.5« is halved (-50%). With time-based attributes such as »Reload time increased/decreased«, »0.5« is half time (good), whereas »2.0« makes it take twice as long (bad). And some attributes are simply »1.0 = on, 0.0 = off".
    • If you're unsure about values, check out a weapon that already has that attribute (Ctrl+F the official weapon's name in tf/scripts/items_game.txt, or just look at the custom weapon's config)



HOW TO MAKE CUSTOM ATTRIBUTES

To be able to make custom attributes, all you need to know are the basics of SourcePawn. That's it! (Also, you need customweaponstf.inc from the bottom of this post) Take a look at basic-attributes.sp in the Starter Weapons Pack; it's fairly simple, and has some comments here, there, and everywhere to explain things. Think of it as somewhat of a template for attributes plugins.

Q&A

How is this different from Advanced Weaponiser? You (who runs the game server) can change around the weapons in whatever ways you'd like. The weapons are always equippable, and not tied to any «master server». Also, this plugin isn't abandoned, private, or what have you.

I gave my custom weapon a model, can other players besides the user see it? Nope. The player will be able to see it in both first and third person, though.

<weapon name> is overpowered/underpowered! Fix it! No u! Change its stats, or disable it (after all, that's the point of this plugin!) and perhaps suggest a tweak to its stats once you've done so.

Was there a Custom Weapons 1? Yes. It was 100% hardcoded, and terrible. Thankfully, it was private.

Why is it called «customweaponstf.smx»? I actually, for some reason, originally made this for CS:GO; as a proof of concept, and because bot matches were getting a bit stale with CS:GO's plain, realistic weapons. So, this is the «TF2 edition» of Custom Weapons.

УСТАНОВКА

Необходимо загрузить на ваш сервер TF2Items и TF2Attributes.

  • 1. Установите customweaponstf.smx в директорию игры sourcemod/plugins/.
  • 2. Установите tf2items.randomizer.txt в директорию игры sourcemod/gamedata/.
  • 3. Установите любое пользовательское оружие в /attributes/packs как вы бы хотели. Вам нужно по крайней мере, одно пользовательское оружие для этой работы, и, скорее всего, это оружие будет требовать характеристики плагина.
  • 4. sm plugins загрузит customweaponstf, или sm plugins перезагрузит customweaponstf когда вы устанавливаете больше оружия.
  • 5. Готово!



LIST OF WEAPONS

ACTIVE WEAPONS

Следующие виды оружия в настоящее время доступны для загрузки и использования.

Active Weapons
Класс Оружие Авторы Характеристики/Заметки
Leaderboard class scout.png
Разведчик
Fist IMG.png

Ближний бой
Buff Up

MasterOfTheXP (Weapon)

Pictogram plus.png Max health increased by +25
Pictogram minus.png No double jump
Pictogram minus.png Movement speed reduced by -15%

Leaderboard class soldier.png
Солдат
Directhittransparent.png

Основное
Quick Hand

MasterOfTheXP (Weapon)

Pictogram plus.png Weapon switch +45% faster
Pictogram minus.png Clip size reduced by -25%
Pictogram minus.png Damage decreased by -10%

Shovel IMG.png

Ближний бой
Denied Burial

MasterOfTheXP (Weapon)

Pictogram plus.png Damage increased by +50%
Pictogram plus.png Always mini-crit against burning enemies
Pictogram minus.png Max health decreased by -10%

Leaderboard class pyro.png
Поджигатель
Rocket launcher.png

Основное
Incendiary Cannon

MasterOfTheXP (Weapon)

Pictogram plus.png Ignite enmies
Pictogram plus.png Self damage force decreased by -20%
Pictogram plus.png Self damage decreased by -30%
Pictogram minus.png Clip size reduced by -75%
Pictogram minus.png Damage decreased by -35%
Pictogram minus.png Reload time increased by +150%
Pictogram minus.png Ammo carried decreased by -95%

Leaderboard class heavy.png
Пулеметчик
Natascha.png

Основное
Ludmila

Pictogram plus.png Alt-fire makes you shoot and restore 3 health points per hit
Pictogram minus.png Minigun spin up time increased by +20%
Pictogram minus.png Fire rate decreased by -10%

Shortstop.png

Дополнительное
Shortstop

VALVE™

Exact same attributes as the Shortstop.

RED Gloves of Running Urgently.png

Основное
Vich Gloves

MasterOfTheXP (Weapon)

Pictogram plus.png On kill : restores 150 health points
Pictogram minus.png Attack rate decreased by -20%

Leaderboard class engineer.png
Инженер
Pistol.png

Дополнительное
Fast Fix

MasterOfTheXP (Weapon)

Pictogram plus.png Can destroy sappers
Pictogram plus.png Fires fast fix bolts
Pictogram plus.png Infinite Ammo
Pictogram minus.png Clip size decreased by -67%
Pictogram minus.png Cannot be crit-boosted
Pictogram minus.png Ammo carried decreased by -100%
Pictogram minus.png Shooting deducts 10 metals

Item icon Destruction PDA.png

КПК
Boost PDA

MasterOfTheXP (Weapon)

Pictogram info.png Provide on active
Pictogram plus.png Movement speed increased by 15%
Pictogram minus.png Cannot destroy building

Leaderboard class medic.png
Медик
RED Syringe Gun.png

Основное
Flight of the Fully Charged

MasterOfTheXP (Weapon)

Pictogram plus.png Looking down and attacking will push the user into the air
Pictogram minus.png Clip size decreased by -75%
Pictogram minus.png Ammo carried decreased by -47%

RED Overdose.png

Основное
Worst-Case-Szenario

MasterOfTheXP (Weapon)

Pictogram plus.png Press alt-fire to use 20% of your Übercharge to give yourself a mini-crit and speed boost
Pictogram minus.png Clip size decreased by -25%

RED Vaccinator.png

Дополнительное
Buchstabieren

MasterOfTheXP (Weapon)

Pictogram plus.png Übercharge rate increased by +25%
Pictogram plus.png Press Alt-fire (übercharge) to use 25% of your Übercharge and gives you a Healing Spell of Halloween
Pictogram minus.png Heal rate decreased by -50%
Pictogram minus.png Doesn't overheal

RED Medigun.png

Дополнительное
Medispenser

MasterOfTheXP (Weapon)

Pictogram plus.png Healing a teammate restore 2% of their offhand ammo every second
Pictogram plus.png You and your patient share all positive boosts
Pictogram minus.png Heal rate decreased by -25%

RED Kritzkrieg.png

Дополнительное
Speed Booster

MasterOfTheXP (Weapon)

Pictogram plus.png Übercharge rate increased by +75%
Pictogram plus.png Übercharge is a speed boost

Leaderboard class sniper.png
Снайпер
Memory Maker.png

Ближний бой
Melee Charger

MasterOfTheXP (Weapon)

Pictogram plus.png On kill : Increases the minimum charge of your primary weapon by 50%
Pictogram minus.png Weapon switch time increased by +35%
Pictogram minus.png Increased minimum charge loosed upon dying or attacking with your primary weapon
Pictogram info.png Can be raised up to 100% with 2 kills

Leaderboard class spy.png
Шпион
L'Étranger.png

Основное
Turnabout

MasterOfTheXP (Weapon)

Pictogram info.png Only holds 8 bullets but they can be used over and over again as long as you don't miss
Pictogram minus.png Clip size decreased by -67%

Sapper IMG.png

Sapper
Hell-Sap

MasterOfTheXP (Weapon)

Pictogram plus.png Sapper damage increased by +80%
Pictogram minus.png Has 10 seconds of cooldown upon sapping a building
Pictogram minus.png The Engineer who built the building will have 100% critical hit against you for the next 10 seconds

Cloak and Dagger.PNG

Cloak
Leech

MasterOfTheXP (Weapon)

Pictogram plus.png Unlimited cloak
Pictogram minus.png Drain 4 health points every second when cloaked
Pictogram info.png Can be cloaked up to 31 seconds before dying

Leaderboard class soldier.pngСолдат, Leaderboard class pyro.pngПоджигатель, Leaderboard class heavy.pngПулеметчик and Leaderboard class engineer.pngИнженер Shotgun IMG.png

Основное and Дополнительное
Loose Screw

MasterOfTheXP (Weapon)

Pictogram plus.png Infinite ammo
Pictogram plus.png Instant reload
Pictogram minus.png Reload time increased by +55%

Leaderboard class pyro.pngПоджигатель and Leaderboard class medic.pngМедик Wrench IMG.png

Ближний бой
Engi's Assistant

MasterOfTheXP (Weapon)

Pictogram minus.png Damage decreased by -25%
Pictogram minus.png Damage against building decreased by -25%
Pictogram info.png Cannot upgrade and repair building. Can only destroy Sapper.


КОМАНДА РАЗРАБОТЧИКОВ

MasterOfTheXP - Автор и Главный разработчик.
Chdata - Главный разработчик.
404 - Главный разработчик.
Theray070696 - Создатель (WIP)Advanced Weaponiser 2 Attributes Pack и Главный разработчик.
Nergal - Создатель Nergalpak Attributes Pack.
Orion™ - Создатель Orion's Attributes Pack, More Advanced Weaponiser 2 Attributes Pack и Dota 2 Attributes Pack.
KarmaCharger - Сотрудник Team Fortress 2 Wiki и демонстратор оружия.


Предыдущие изменения

BETA 2 March 12, 2014
  • Добавлена поддержка для Арены
  • Added 9 natives for other plugins to use
  • Added 3 more cvars to configure the plugin
  • Added error message for when there are no custom weapons for the player's class
  • Added warning message to server console for when there are no custom weapons installed at all
  • Added simple output for typing «custom» into the server console
  • Added version cvar (whoops!)
  • «nobots» «1» may now be placed in weapon configs to prevent bots from equipping them
  • Fixed weapons that changed maximum health not having health updated upon equip
  • Fixed being able to equip weapons that players already had equipped
  • Released the WIP Weapons Pack! Contains a few unbalanced/unfinished weapons. Try 'em, and see if you can get them working/balanced!
  • Starter Weapons Pack
    • Hell-Sap
      • Увеличение бонуса урона до 80% (по сравнению с 65%)
      • Уменьшена продолжительность обоих эффектов (перезарядка и ярость) до 10 секунд (было 20 секунд)
  • HL2 оружие
    • Annabelle
      • Reversed self-aimpunch (now recoils upwards instead of downwards)
  • Пользовательские характеристики
    • Исправлен эффект «Sapper causes rage», который никогда не закачивается (игрок будет получать криты от жертвы до конца матча).
    • «fires lasers» Теперь принимает значение, которое будет устанавливать базовый урон лазера (ранее всегда 25).
    • Добавлена недостающая документация для нескольких характеристик в верхней части .sp

Ссылки