#1385 closed enhancement (fixed)
Implement wall gates
Reported by: | vts | Owned by: | Badmadblacksad- |
---|---|---|---|
Priority: | Should Have | Milestone: | Alpha 11 |
Component: | UI & Simulation | Keywords: | |
Cc: | Patch: |
Description
The current wall system as implemented in #786/r11760 does not yet have a way to add gates to an existing wall. It should be possible to select a single long wall segment and click a UI button to transform it into a gate, at a certain cost.
From an implementation point of view, this is likely to require support for multiple obstruction shapes per entity. Specifically, for the gates to operate properly, we'll need a way for a part of the obstruction box corresponding to the physical gate part in the model to be an independent shape, on which we can toggle the BLOCK_MOVEMENT
flag to allow units through while open, or block them while closed.
Change History (4)
comment:1 by , 12 years ago
comment:2 by , 12 years ago
Owner: | set to |
---|
comment:4 by , 12 years ago
Milestone: | Backlog → Alpha 11 |
---|
Note:
See TracTickets
for help on using tickets.
I think a transform function alone could handle it in that it would allow us to first transform a wall into a closed gate and then transform the closed gate into an open gate as needed. The open gate could just operate like the farms do where allied and enemy units could just walk right through. This seems more sensible to me then AoE/M's way of having an open gate still block out enemies as if they were vampires or something. I suppose you could code it to block everyone when closed and allow everyone when opened, but I really want a reusable transform function to use for a bajillion other things.