Информация о файле
Для работы функционала необходим следующий плагин:
- Данный плагин позволяет использовать оружие когда игрок упал, и при этом нет больше необходимости изменять какие либо скрипты.
- Нажимайте клавиши 1, 2, 3, 4, 5, чтобы переключить оружие. Прокрутка мыши не работает.
- Гранаты и оружие ближнего боя можно использовать. Выжившие, кажется, встают, чтобы бросить гранаты, это можно предотвратить, установив Left4DHooks.
- Поддерживает использование таблеток и адреналина для лечения или оживления игрока в версии 1.16 и новее.
Команды администратора: (требуется флаг "z"):
sm_incap // Соответственно выводит игрока из строя. Используй: [#userid|name] или команду без аргументов, что бы применить ее на себя.
Конфиг:
Сохраняется в l4d_incapped_weapons.cfg в папке \cfg\sourcemod\ на сервере.
// 0=Plugin off, 1=Plugin on. l4d_incapped_weapons_allow "1" // Turn on the plugin in these game modes, separate by commas (no spaces). (Empty = all). l4d_incapped_weapons_modes "" // Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = none). l4d_incapped_weapons_modes_off "" // Turn on the plugin in these game modes. 0=All, 1=Coop, 2=Survival, 4=Versus, 8=Scavenge. Add numbers together. l4d_incapped_weapons_modes_tog "0" // L4D2 only: 0.0=Off. How many seconds a player must wait after using Adrenaline to be revived. l4d_incapped_weapons_delay_adren "5.0" // 0.0=Off. How many seconds a player must wait after using Pills to be revived. l4d_incapped_weapons_delay_pills "5.0" // 0=Off. 1=Print to chat. 2=Print to hint box. Display to player how long until they are revived, when using a _delay cvar. l4d_incapped_weapons_delay_text "2" // 0.0=None. 1.0=Default damage. Scales an incapped Survivors friendly fire damage to other Survivors. Multiplied against the games survivor_friendly_fire* cvars. l4d_incapped_weapons_friendly "1.0" // L4D2 only: -1=Revive player. 0=Off. How much to heal a player when they use Adrenaline whilst incapped. l4d_incapped_weapons_heal_adren "50" // -1=Revive player. 0=Off. How much to heal a player when they use Pain Pills whilst incapped. l4d_incapped_weapons_heal_pills "50" // 0=Off. When reviving with healing items, should player enter black and white status. 1=Pills. 2=Adrenaline. 3=Both. l4d_incapped_weapons_heal_revive "0" // 0=Off. 1=Print to chat. 2=Print to hint box. Print a message when incapacitated that Pills/Adrenaline can be used to heal/revive. l4d_incapped_weapons_heal_text "1" // How much health to give a player when they revive themselves. l4d_incapped_weapons_health "30" // L4D2 only: 0=No friendly fire. 1=Allow friendly fire. When using Melee weapons should they hurt other Survivors. l4d_incapped_weapons_melee "0" // L4D2 only: 0=Don't give pistol (allows Melee weapons to be used). 1=Give pistol (game default). l4d_incapped_weapons_pistol "0" // Empty string to allow all. Prevent these weapon IDs from being used while incapped. See below for details. // L4D2: default blocks all medkits/upgrade ammo. To block grenades add "13,14,25" l4d_incapped_weapons_restrict "12,24,30,31" // L4D1: default blocks medkits. To block grenades add "9,10" e.g: "8,12,9,10" l4d_incapped_weapons_restrict "8" // Play revive animation: 0=Off. 1=On and damage can stop reviving. 2=Damage will interrupt animation and restart reviving. 3=Damage does not interrupt reviving. 4=Give god mode when reviving l4d_incapped_weapons_revive "3" // 0=Block throwing grenade animation to prevent standing up during throw (requires Left4DHooks plugin). 1=Allow throwing animation. l4d_incapped_weapons_throw "0" // Incapped Weapons plugin version. l4d_incapped_weapons_version
ID оружия можно посмотреть например в этой теме:
Что нового в версии 1.38 Просмотр изменений
Размещено
Изменен плагин, чтобы не возникало сбоев, если какие-либо пути уже были исправлены.