Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[New Feature] Crusher Level System #1455

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Aephiex
Copy link
Contributor

@Aephiex Aephiex commented Dec 17, 2024

Extracted crusher level related stuff from draft pull request.

@NetsuNegi
Copy link
Contributor

is there any effect when crush a building?

@Aephiex
Copy link
Contributor Author

Aephiex commented Dec 20, 2024

is there any effect when crush a building?

In an unmodded game, 1x1 buildings can be made crushable by Crushable=yes. Buildings seem to have some innate immunity to OmniCrusher=yes, they resist omni crushers without explicit OmniCrushResistant=yes. When crushed, a building silently disappears from the map. No explosion, no sound. Buildings are apparently not made to be crushed.

With crusher level system enabled for 1x1 buildings, they can be "safely" crushed by anything with CrusherLevel >= 3, which might not be a desired behavior of a modder, so I'm making that an option. When crusher level system is not turned on for buildings, crush check will fallback to unmodded behavior.

@TaranDahl
Copy link
Contributor

is there any effect when crush a building?

In an unmodded game, 1x1 buildings can be made crushable by Crushable=yes. Buildings seem to have some innate immunity to OmniCrusher=yes, they resist omni crushers without explicit OmniCrushResistant=yes. When crushed, a building silently disappears from the map. No explosion, no sound. Buildings are apparently not made to be crushed.

With crusher level system enabled for 1x1 buildings, they can be "safely" crushed by anything with CrusherLevel >= 3, which might not be a desired behavior of a modder, so I'm making that an option. When crusher level system is not turned on for buildings, crush check will fallback to unmodded behavior.

In truth, you must enter the middle cell of the building to trigger a crushing. For the buildings with no middle cell, there is no way to trigger crushing with no other's help. Still, you can place another techno above the building and crush that techno, and the building will be crushed at the same time.

@Aephiex
Copy link
Contributor Author

Aephiex commented Dec 20, 2024

In truth, you must enter the middle cell of the building to trigger a crushing. For the buildings with no middle cell, there is no way to trigger crushing with no other's help.

I suppose so. Maybe a 3x3 structure whose middle cell is somehow passible can be crushed as well, such as the allied service depot. But that thing doesn't exist in Mental Omega, so I don't know anything good enough to do the test.

Still, you can place another techno above the building and crush that techno, and the building will be crushed at the same time.

Yes I watched that video, and it frightened me about my pull request "Crush Expanded", that one of the features is units can fire a death rattle weapon when crushed. What if 3 infantries were crushed at a same time, does it mean only 1 infantry gets to fire the death rattle and the rest are just silently deleted by the game? Then I did a quick test and in fact all 3 get to fire the death rattle.

Copy link

Nightly build for this pull request:

This comment is automatic and is meant to allow guests to get latest nightly builds for this pull request without registering. It is updated on every successful build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants