Opened 8 years ago
Last modified 5 years ago
#3562 new task
Decide whether resources/corpses should have an obstruction, and if so how and which.
Reported by: | wraitii | Owned by: | |
---|---|---|---|
Priority: | Should Have | Milestone: | Backlog |
Component: | Simulation | Keywords: | design pathfinding |
Cc: | Patch: |
Description (last modified by )
This ticket follow #3530 and [17156]
In [17156] I made it so that entities that become resources upon death (chicken...) get a passable (it does not block anything) static obstruction. This fixes a bug and makes the behavior saner.
We should decide how to generalize this behavior: should some entities get a blocking obstruction? How do we decide the size of this obstruction?
Do we want this behavior for corpses too? If so it could go in decay.
Change History (9)
comment:1 by , 8 years ago
comment:2 by , 8 years ago
As mentioned in #3530, gatherable corpses are only one case where obstructions with clearance 0 can occur, there might be other cases we don't know about yet.
That's why we should still add the warning and ignore obstructions with clearance zero, i.e. attachment:t3530_throw_warnings.patch:ticket:3530 and attachment:testLine.patch:ticket:3530
comment:3 by , 8 years ago
Description: | modified (diff) |
---|
comment:4 by , 8 years ago
Keywords: | pathfinding added |
---|
comment:6 by , 8 years ago
r17156 lead to resources which are inaccessibles when building a structure upon a resource corpse, as now they does not block anymore construction. That's a problem for the AIs which try to reach them. We should
- either make resource corpses block construction
- or destroy them when starting to build, but the present check in Foundation.js does not catch them.
comment:8 by , 8 years ago
Milestone: | Alpha 20 → Backlog |
---|
comment:9 by , 5 years ago
Component: | UI & Simulation → Simulation |
---|
Move tickets to Simulation
as UI & Simulation
got some sub components.
Notice it is important to assign the correct radius to the different corpse types, otherwise units won't be gathering at the correct place.