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

Allow adding more Tiberiums and customize their image #1061

Merged
merged 20 commits into from
Sep 26, 2024

Conversation

ZivDero
Copy link
Member

@ZivDero ZivDero commented Sep 8, 2024

  • This PR extends Tiberium Storage to support new Tiberiums.

  • New and old Tiberiums' image can now also be customized in more detail.

[Tiberium]
Overlay = ; OverlayType - defaults to the value usually used by the Image=, or overlay at index 102 if not specified
UseSlopes = ; bool  - does this Tiberium have graphics for slopes?

#WARNING: The Image= key only works within its vanilla values, and sets OverlayIndex and UseSlopes defaults. For new values, use those keys, which will override values set by Image=.

  • OverlayIndex specifies the index of the first overlay the Tiberium uses. There must be 12 overlays, located one after another sequentially. Additionally, is UseSlopes is set to yes, another 8 overlays are required after the previous 12.

  • Additionally, Power= has been unhardcoded for Tiberium [Vinifera]

  • Moreover, the damage Tiberium deals to infantry is now customizable separately from Power.

[Tiberium]
DamageToInfantry = ; integer - damage to infantry per tick, defaults to Power / 10

Removal of ts-patches tiberium_stuff and tiberium_damage is required for this to work properly. Please keep in mind that Power once again behaves like in vanilla in regards to chain explosions and should be set to reasonable values, while DamageToInfantry should be used to customize Tiberium's damage to infantry.

#WARNING: All OverlayTypes used by a Tiberium must have Tiberium=yes, and no other OverlayTypes may have Tiberium=yes, or this will lead to severe lags/crashes.

Resolves #1062

Copy link

github-actions bot commented Sep 8, 2024

This comment is automatically generated by Nightly.link and allows non-registered users to get download the artifacts for this pull request.

These links are also updated when the pull request is pushed to.

@ZivDero ZivDero self-assigned this Sep 8, 2024
@ZivDero ZivDero force-pushed the feature/custom-tiberiums branch 2 times, most recently from c99879b to 35214a4 Compare September 9, 2024 10:02
@ZivDero ZivDero force-pushed the feature/custom-tiberiums branch 2 times, most recently from f7e4b7c to 2c97ed0 Compare September 10, 2024 08:30
@ZivDero ZivDero added the new-feature New feature or request. label Sep 14, 2024
@ZivDero ZivDero force-pushed the feature/custom-tiberiums branch 3 times, most recently from 43808d9 to 5fc0986 Compare September 18, 2024 15:43
@ZivDero ZivDero force-pushed the feature/custom-tiberiums branch from 5fc0986 to 5a20748 Compare September 26, 2024 04:38
@ZivDero ZivDero merged commit 53c0137 into Vinifera-Developers:develop Sep 26, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-feature New feature or request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[New Feature] Allow creating new Tiberiums
1 participant