DayZ
52 ratings
Throwing Items Damage
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
Mod Type: Mechanics
File Size
Posted
Updated
4.290 MB
Jan 31, 2023 @ 7:27am
May 4, 2023 @ 3:18am
11 Change Notes ( view )

Subscribe to download
Throwing Items Damage

Description
This mod adds damage from throwing items to players/zombies/animals;
The general formula for calculating damage takes into account the clothes worn on the character if it has armor indicators from the melee damage at config.cpp;
You can configure both damage from items and their damage in the TDConfig file.json in the profiles folder;
So:
"ItemName" is the classname of the object
"DamageToPlayer" is the float of the base HP damage to player (before calculating the full players's armor)
"DamageToItem" is the float of the damage to throwing item if it hits the player.

The damage is logged to the special TDLogs.log file at profiles'es foldier;

Attention! This is SERVER-side modification, it is absolutely not necessary to install it on the client side;
Enjoy =)

*******
If you are the developer and wanna refer to mechanics from this mod you can use the #ifdef THROWINGDAMAGE

*******
If you have COT or VPP AdminTools and player is under godmode player would'nt get damage.

*******
If you have any of types SafeZones on your server or you wanna set allow no damage to any persons you can do this into the PlayerBase.c (server-side too):

#ifdef THROWINGDAMAGE
override void ThrowingDamage(ItemBase item, float dmg, float dmg2)
{
if (your condition)
return;

super.ThrowingDamage(ItemBase item, float dmg, float dmg2);
}
#endif

--------------------------------------------------------------------------------------
Мод добавляет урон от метания предметов по игроку/зомбям/животным;
Общая формула расчета урона учитывает одежду, надетую на персонажа в случае наличия у неё показателя брони от урона в ближнем бою в config.cpp;
Вы можете настроить как урон от предметов, так и их порчу в файле TDConfig.json в папке profiles;
Расшифровка конфига такая:
"ItemName" - это класснейм предмета (как в файле types)
"DamageToPlayer" - это значение базового урона по здоровью игрока (до расчета полной брони игрока).
"DamageToItem" - это значение урона, наносимого метательному предмету, если он попадает в игрока.

Повреждения логируются в файле TDLogs.log в папке profiles.;

Внимание! Это СЕРВЕРНАЯ модификация, нет никакой необходимости устанавливать ее на клиент (качать игрокам, подписывать и т.п.) - просто берёте PBO файл и кидаете в свой серверный мод. Серверный, не в модпак - это не требуется;

*******
Если вы разработчик и хотите сослаться на механики этого мода, вы можете использовать #ifdef THROWINGDAMAGE

*******
Если у вас есть AdminTools COT или VPP и игрок находится в режиме godmode, игрок не получит урона.

*******
Если у вас есть какие-либо типы безопасных зон, или вы хотите чтобы по кому-то конкретному не проходил урон, вы можете сделать это в классе PlayerBase (также на стороне сервера):

#ifdef THROWINGDAMAGE
override void ThrowingDamage(ItemBase item, float dmg, float dmg2)
{
if (ваше условие) //если выполняется условие/список условий то урон не наносится.
return;

super.ThrowingDamage(ItemBase item, float dmg, float dmg2);
}
#endif
17 Comments
BoGDaNoV☢ May 27 @ 5:10pm 
когда fix?
brummbar Apr 23 @ 3:17am 
Мод не работает: Логи мода пустые, серверные логи - ANIMATION (E): Can't load @Throwing Items Damage/Anims/cfg/skeletons.anim.xml. Подключал ручками через батник в параметре - "-servermod=@Throwing Items Damage;"
TheMatthew95 Jan 4 @ 3:38am 
does not work, problem with weaponType, server crashes
PoweredByPoosay Oct 14, 2024 @ 11:30pm 
Could I please repack? I will of course put your link and name in credits :)
ZEFIR001 Dec 2, 2023 @ 10:18am 
Does not work. Not being detected as server side mod,gives list synq error.
Dr.Day  [author] Aug 17, 2023 @ 4:21am 
Мод не надо грузить игроку и ставить на сторону клиента, когда вы ставите его себе на сервер вы делаете на нем флажок "server_side": true
Stormzilla Jun 24, 2023 @ 4:07am 
im new to servers and stuff, how do i set it so that players dont get the prompt to load the mod when connecting?
A.N.A.R.C.H.I.S.T Mar 31, 2023 @ 2:28pm 
Привет) классный мод, но мне не понятно, он считается как не распознанный со стороны клиента, как это исправить?
H Mar 18, 2023 @ 1:35pm 
nice
SashiSummers Feb 17, 2023 @ 6:13pm 
Is there a way to apply shock damage to thrown items? Wanting to knock people out with rocks and such