Files
wwdpublic/Content.Shared
Skubman b63a41d6e9 Pacification Prevents Throwing Weapons (#1433)
# Description

Prevents entities who are Pacified (through the Pacifist trait or being
a thief) from throwing items that deal damage on hit or embed.

## Technical Details

Two components will prevent throwing if they deal any damage:
`DamageOtherOnHitComponent` and `EmbedPassiveComponent`.

The pacifist check on `EmbeddableProjectileComponent` has been removed,
because just because an item is embeddable does not mean they deal
damage.

## Media

**Throw attempt with the Pacifist trait**

![image](https://github.com/user-attachments/assets/6c439bb3-b41b-4f30-975d-4fa15c2cfa6d)

# Changelog

🆑 Skubman
- fix: Pacified characters (Pacifist trait and thieves) can no longer
throw items that deal throwing damage.

---------

Signed-off-by: VMSolidus <evilexecutive@gmail.com>
Co-authored-by: VMSolidus <evilexecutive@gmail.com>
(cherry picked from commit 71e3c031750db523f8fcccc4a36a61200b1028f2)
2025-01-14 01:31:56 +03:00
..
2025-01-14 00:13:42 +03:00
2025-01-14 00:13:42 +03:00
2024-12-14 10:41:27 +02:00
2024-11-21 17:49:04 +07:00
2024-10-19 13:24:03 +07:00
2025-01-14 00:13:42 +03:00
2024-10-19 14:53:37 +07:00
2025-01-14 00:13:42 +03:00
2024-10-19 14:53:37 +07:00
2024-10-19 13:24:45 +07:00
2025-01-14 00:13:42 +03:00
2024-12-14 10:41:27 +02:00
2025-01-14 00:13:42 +03:00
2025-01-14 00:13:42 +03:00
2025-01-14 00:13:42 +03:00
2024-08-05 18:11:37 +01:00
2025-01-14 01:19:23 +03:00
2024-11-21 17:49:04 +07:00
2025-01-14 00:13:42 +03:00
2025-01-14 01:19:23 +03:00
2025-01-14 00:13:42 +03:00
2025-01-14 00:13:42 +03:00
2024-10-19 13:15:15 +07:00
2025-01-14 00:13:42 +03:00
2024-11-21 17:49:04 +07:00
2024-12-14 10:41:27 +02:00
2024-11-21 17:49:04 +07:00
2025-01-14 00:13:42 +03:00
2024-11-21 17:49:04 +07:00
2025-01-14 00:13:42 +03:00
2024-11-21 17:49:04 +07:00
2025-01-14 00:13:42 +03:00
2024-11-21 17:49:04 +07:00
2024-12-14 10:41:27 +02:00
2025-01-14 00:13:42 +03:00
2024-12-14 10:41:27 +02:00
2024-11-21 17:49:04 +07:00
2024-11-21 17:49:04 +07:00
2024-12-14 10:41:27 +02:00
2024-12-14 10:41:27 +02:00
2024-11-21 17:49:04 +07:00
2024-11-21 17:49:04 +07:00
2025-01-14 00:13:42 +03:00
2025-01-14 00:13:42 +03:00
2024-12-14 10:41:27 +02:00
2024-10-19 14:53:37 +07:00
2024-11-01 02:58:24 +03:00
2024-10-19 12:53:54 +07:00
2024-11-21 17:49:04 +07:00
2024-10-19 14:53:37 +07:00
2024-08-15 03:11:05 -04:00
2024-11-21 17:49:04 +07:00
2025-01-14 00:13:42 +03:00
2024-11-21 17:49:04 +07:00
2024-10-19 14:53:37 +07:00
2024-10-19 14:53:37 +07:00
2025-01-14 00:13:42 +03:00
2024-11-21 17:49:04 +07:00
2025-01-14 00:13:42 +03:00
2025-01-14 00:13:42 +03:00
2024-11-21 17:49:04 +07:00
2025-01-14 00:13:42 +03:00
2025-01-14 00:13:42 +03:00
2025-01-14 00:13:42 +03:00
2025-01-14 00:13:42 +03:00
2024-11-21 17:49:04 +07:00
2025-01-14 00:13:42 +03:00
2025-01-14 00:13:42 +03:00
2024-12-14 10:41:27 +02:00
2025-01-14 00:13:42 +03:00
2025-01-14 00:13:42 +03:00
2025-01-14 00:13:42 +03:00
2024-11-25 01:20:13 +07:00
2024-11-21 17:49:04 +07:00
2025-01-14 00:13:42 +03:00
2025-01-14 00:13:42 +03:00
2025-01-14 00:32:37 +03:00
2025-01-14 00:13:42 +03:00
2025-01-14 00:37:03 +03:00
2024-10-19 14:53:37 +07:00
2024-12-06 19:42:33 +03:00
2025-01-14 00:13:42 +03:00
2025-01-14 00:13:42 +03:00
2025-01-14 00:13:42 +03:00
2025-01-14 00:13:42 +03:00
2025-01-14 00:13:42 +03:00
2024-11-21 17:49:04 +07:00
2025-01-14 00:13:42 +03:00
2024-11-21 17:49:04 +07:00
2025-01-14 00:13:42 +03:00
2024-10-19 14:53:37 +07:00
2024-10-19 14:53:37 +07:00
2024-11-21 17:49:04 +07:00
2025-01-14 00:13:42 +03:00
2024-12-14 10:41:27 +02:00
2025-01-14 00:13:42 +03:00
2024-12-14 10:41:27 +02:00
2024-10-19 14:53:37 +07:00
2025-01-14 00:13:42 +03:00
2025-01-14 00:13:42 +03:00
2024-12-14 10:41:27 +02:00
2025-01-14 00:13:42 +03:00
2024-11-21 17:49:04 +07:00
2025-01-14 00:13:42 +03:00
2025-01-14 00:13:42 +03:00
2025-01-14 00:13:42 +03:00
2025-01-14 00:13:42 +03:00
2024-12-14 10:41:27 +02:00
2025-01-14 00:13:42 +03:00
2024-11-21 17:49:04 +07:00
2025-01-14 00:13:42 +03:00
2025-01-14 00:13:42 +03:00
2025-01-14 00:13:42 +03:00
2025-01-14 00:13:42 +03:00
2024-12-14 10:41:27 +02:00
2024-11-21 17:49:04 +07:00
2024-11-21 17:49:04 +07:00
2025-01-14 00:13:42 +03:00
2025-01-14 00:13:42 +03:00
2025-01-14 00:13:42 +03:00
2024-11-21 17:49:04 +07:00
2024-12-14 10:41:27 +02:00
2025-01-14 00:13:42 +03:00
2025-01-14 00:13:42 +03:00
2024-10-19 14:53:37 +07:00
2025-01-14 00:13:42 +03:00
2025-01-14 00:13:42 +03:00
2024-11-21 17:49:04 +07:00
2025-01-14 00:13:42 +03:00
2025-01-14 00:13:42 +03:00
2025-01-14 00:13:42 +03:00
2025-01-14 00:13:42 +03:00
2024-12-14 10:41:27 +02:00
2025-01-14 00:13:42 +03:00
2025-01-14 00:13:42 +03:00
2024-11-21 17:49:04 +07:00
2025-01-14 00:13:42 +03:00
2024-11-21 17:49:04 +07:00
2024-10-19 14:53:37 +07:00
2024-10-19 14:53:37 +07:00
2024-12-14 10:41:27 +02:00
2025-01-14 00:13:42 +03:00
2024-12-14 10:41:27 +02:00
2024-12-14 10:41:27 +02:00
2024-10-19 14:53:37 +07:00
2024-11-21 17:49:04 +07:00
2025-01-14 00:13:42 +03:00
2025-01-14 00:13:42 +03:00
2025-01-14 00:13:42 +03:00
2025-01-14 00:13:42 +03:00