Поиск по STEAMB

Игры по онлайну и скины по объёму продаж

Ничего не найдено

Попробуйте другое название или переключите категорию.

Меню

Инструменты

[E2] DamageCore

Положительные голоса83%280 голосов игроков
Подписчики29 тыс.28 990 в Steam Workshop
Размер файла26,06 КБЗагрузка через Steam
Обновление автора13 авг. 2023 г.Дата обновления материала
[E2] DamageCore

Изображение 1 из 2. Материалы автора из Steam Workshop.

Добавить в игру через Steam

  1. Перейдите в Steam

    Откроется страница именно этого материала.

    Открыть в Steam Workshop
  2. Нажмите «Подписаться»

    На странице Steam войдите в аккаунт, если потребуется.

    Подписаться

О материале

«[E2] DamageCore» — материал мастерской Garry’s Mod. Аддоны, карты, персонажи и инструменты для песочницы. Данные Steam, описание автора и ссылка для установки через подписку. Совместимость редакцией не проверена.

Описание автора

For more information, go to the GitHub Page

DamageCore

DamageCore is an extension module for the Wire Expression 2 Chip. It enables players to detect and/or deal damage to other entities.

Workshop Installation

The DamageCore is available on the Steam Workshop! Go to the DamageCore Workshop Page and press

Subscribe

. For can go to the Expression 2 Core Collection for more extensions.

Manual Installation

Clone this repository into your

steamapps\common\GarrysMod\garrysmod\addons

folder using this command if you are using git:


git clone https://github.com/sirpapate/damagecore.git

Documentation

Events

DeclarationReplacingDescription
event damage(Victim:entity, Damage:damage)runOnDmg, dmgClk, lastDamage, lastDamageVictimTriggered when an entity takes damage.
event trackedDamage(Victim:entity, Damage:damage)Triggered when an entity in the list of tracked (with "E:trackDamage()") entities takes damage.
event playerDamage(Victim:entity, Damage:damage)Triggered when a player takes damage.

Tick Functions

FunctionReturnDescription
runOnDmg(N)If set to 1, E2 will run when an entity takes damage.
runOnDmg(N,E)If set to 1, E2 will run when specified entity takes damage.
runOnDmg(N,R)If set to 1, E2 will run when specified entities take damage.
E:trackDamage()E2 will run when the specified entity takes damage.
T:trackDamage()E2 will run when the specified entities take damage.
E:stopTrackDamage()E2 will no longer run when the specified entity takes damage.
R:stopTrackDamage()E2 will no longer run when the specified entities take damage.
getDamageTrackedEntities()RReturns a array of all tracked entities.
E:isDamageTracked()NReturns 1 if the entity is tracked. Returns 0 otherwise.
dmgClk()NReturns 1 if the chip is being executed because of a damage event. Returns 0 otherwise.
lastDamage()XDMReturns the last damage.
lastDamageVictim()EReturns the victim of the last damage.

Damage Type

FunctionReturnDescription
damage()XDMMakes an empty damage.
XDM:clone()XDMReturns a copy of the damage.
XDM:toTable()TConverts the damage into a table.
XDM:getDamage()NReturns the damage amount.
XDM:getAttacker()EReturns the attacker of damage.
XDM:getForce()VReturns a vector representing the damage force.
XDM:getPosition()VReturns the position where the damage was or is going to be applied to.
XDM:getType()NReturns a bitflag which indicates the damage type of the damage.
XDM:getInflictor()EReturns the inflictor of the damage. This is not necessarily a weapon.
XDM:isBulletDamage()NReturns 1 if the damage was caused by a bullet.
XDM:isExplosionDamage()NReturns 1 if the damage contains explosion damage.
XDM:isFallDamage()NReturns 1 if the damage contains fall damage.
XDM:setDamage(N)XDMSets the amount of damage. Returns itself.
XDM:setAttacker(E)XDMSets the attacker of the damage. Returns itself.
XDM:setForce(V)XDMSets the directional force of the damage. Returns itself.
XDM:setPosition(V)XDMSets the position of where the damage gets applied to. Returns itself.
XDM:setType(N)XDMSets the damage type. Returns itself.
XDM:setInflictor(E)XDMSets the inflictor of the damage for example a weapon. Returns itself.

Applying Damage Functions

FunctionReturnDescription
canDamage(E)NReturns 1 if the entity can be damaged by the player.
E:takeDamage(XDM)Applies the damage specified by the damage info to the entity.
E:takeDamage(N,E)Applies the specified amount of damage to the entity. (Damage Amount)
E:takeDamage(N,E)Applies the specified amount of damage to the entity. (Damage Amount, Attacker)
E:takeDamage(N,E,E)Applies the specified amount of damage to the entity. (Damage Amount, Attacker, Inflictor)
blastDamage(XDM,V,N)Applies spherical damage based on damage info to all entities in the specified radius. (Damage, Position, Radius)
blastDamage(E,E,V,N,N)Applies explosion damage to all entities in the specified radius. (Attacker, Inflictor, Position, Radius, Damage Amount)
Оригинал в Steam Workshop

Как установить и запустить

Откройте оригинальную страницу в Steam Workshop, проверьте версию игры, зависимости и порядок загрузки в описании автора. Нажмите «Подписаться» и дождитесь загрузки Steam. Включите материал в меню модификаций или контента игры, если это требуется. Совместимость и запуск редакцией не проверены.

Настройки cookies

Вы можете изменить выбор в любой момент. Отказ от аналитики не ограничивает доступ к сайту.

Технологии, провайдеры и сроки хранения