[TYT] Как создать своё оружие

qubka

Zombie Plague Разработчик
Сообщения
245
Реакции
245
Как создать своё оружие

Все оружия загружаются из ../sourcemod/zombieplague/weapons.ini
Дополнительную информацию смотрите include/zombieplague/weapons.inc
У вас всё будет работать только,если вы будете следовать ниже приведённой инструкцие!

Посмотрите на стандартное оружие в этом файле,как пример.
PHP:
"etherial"
{
    // General
    "info"         ""
    "entity"       "weapon_m4a1"
    "group"        ""

    // Base
    "cost"         "0"
    "slot"         "7"
    "level"        "1"
    "online"       "1"
    "damage"       "5.0"
    "knock"        "1.0"
    "clip"         "100"
    "ammo"         "200"
    "speed"        "0.25"
    "reload"       "2.5"
    "deploy"       "1.5"
    "sound"        "ETHERIAL_SHOOT_SOUNDS"
    "class"        "2"

    // Models   
    "view"         "models/player/custom_player/zombie/ethereal/ethereal_v.mdl"
    "world"        "models/player/custom_player/zombie/ethereal/ethereal_w.mdl"
    "dropped"      "models/player/custom_player/zombie/ethereal/ethereal_w_dropped.mdl"
    "body"         ""
    "skin"         ""
    "muzzle"       "weapon_muzzle_flash_taser"
    "heat"         "0.5"
}

NOTE: Если вы хотите сменить название оружия,то меняйте название блока!

Описание блока оружия:
info: The caption to display in the hint. (""-off) (Only will be taken from translation file)
---------------
entity: The entity name of the weapon refered to. (Look here: List of Counter-Strike: Global Offensive Entities - Valve Developer Community)
---------------
group: The admin group to access to buy a weapon. ['' = all users]
---------------
cost: The price of this weapon. ['0' = off any messages and weaponcost from menu]
---------------
slot: The slot index the weapon resides in. ['1' = pistol | '2' = shotgun | '3' = rifle | '4' = sniper | '5' = machinegun | '6' = grenades | '7' = others]
---------------
level: The level which had access to buy the weapon. ['0' = off]
---------------
online: The number of players which require to buy the weapon. ['0' = off]
---------------
damage: The damage multiplier for the weapon. ['0.5' = half damage | '2.0' = double damage]
---------------
knock: The knockback multiplier for the weapon. ['1.0' = standart knockback | '2.0' = double knockback]
---------------
clip: The amount of ammo clip in the weapon. ['0' = default] (Only work with DHook extension and with undefined macros USE_DHOOKS in zbm3_core.sp)
---------------
ammo: The amount of ammo reserve in the weapon. ['0' = default] (Only work with DHook extension and with undefined macros USE_DHOOKS in zbm3_core.sp)
---------------
speed: The delay between shoots of the weapon. ['0.0' = default]
---------------
reload: The duration of reload for the weapon. ['0.0' = default]
---------------
deploy: The duration of deploy for the weapon. ['0.0' = default]
---------------
sound: The attack sound path. ['' = default] The attack sound block. ['' = default] (Block from 'sounds.ini' config)
---------------
class: The class which had access to hold the weapon. ['1' = human | '2' = survivor | '3' = zombie | '4' = nemesis]
---------------
view: The view model path. ['' = default] (This model files/textures will be automatically precache)
---------------
world: The world model path. ['' = default] (This model files/textures will be automatically precache)
---------------
dropped: The drop model path. ['' = default] (This model files/textures will be automatically precache) (Also set on the player's back) (If slot is 'grenade' will set model on the projectile entity)
---------------
body: The view/world/drop/projectile model body index. ['0 0 0 0' = default]
---------------
skin: The view/world/drop/projectile model skin index. ['0 0 0 0' = default] (Skins not work at world models)
---------------
muzzle: The particle name of a custom muzzle effect. ['' = none] (Only work on attachment on view model at 1st index)
---------------
heat: The delay of the custom muzzle smoke effect. ['0.5' = default] (Only work on attachment on view model at 1st index)

NOTE: Чтобы создать свою оружие просто создайте новый блок,вставьте в него нужные вам значения, но не ЗАБУДЬТЕ оставить пути скачек моделей в addons/sourcemod/zombieplague/dowloads.ini
NOTE: Чтобы удалить оружие- удалите весь блок!
NOTE: Максимальное кол-во "кастомных" пушек бесконечно!
 
Последнее редактирование:
Сверху Снизу