CleverRaven / CleverRaven/Cataclysm-DDA

Hulks sometimes attack nearby allies

Open
#48,879 8 comments 0 reactions 0 assignees View on GitHub
<Bug> Monsters
Dominant language
C++
Stars
13.1k
Forks
4.6k
Avg merge
2d 1h
Merged PRs (30d)
200

Description

# Describe the bug

While creating the hive hulk in #48876, I noticed that the hulk was attacking the flesh raptors it spawned

I tested and found that they also attack other zombies like frog mothers

# Steps To Reproduce

1. spawn a zombie hulk and a frog mother next to each other
2. get the them to collide
3. get away really fast (teleportation works best)
4. get messages about the hulk attempting to kill the frog mother, despite being in the same faction

# Expected behavior

Hulks not attacking their own faction

# Screenshots

![monster infighting](https://user-images.githubusercontent.com/68650913/118346375-e9b12a80-b508-11eb-95d7-597eec07ea31.png)

# Versions and configuration

- OS: Windows
- OS Version: 10.0 2004
- Game Version: 0.E-9280-g9dde4db-dirty [32-bit]
- Graphics Version: Tiles
- Game Language: English [en]
- Mods loaded:
Dark Days Ahead [dda],
Disable NPC Needs [no_npc_food],
Bionic Professions [package_bionic_professions],
Magiclysm [magiclysm]

# Edit
I changed the reported bug after Venera3 found that the hulks themselves were causing the issue and not summon blasts

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported collision between a zombie hulk and frog mother, then trace the hulk's faction and attack decision logic; the issue names no files or tests. Done means hulks no longer attempt to attack monsters in their own faction, including spawned flesh raptors and frog mothers.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
game-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.