Skip to content

New EVA voice after deploying a building #1682

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

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from

Conversation

FS-21
Copy link
Contributor

@FS-21 FS-21 commented May 27, 2025

  • You can now replace the current EVA voice when a specific structure is placed/deployed.
  • NewEVAVoice.Index is the index of the new EVA voice. Ares is hightly recomended because these indexes are readed the new section [EVATypes] at evamd.ini created by Ares. Look at Ares documentation for more information.
  • In case of multiple structures with different EVA voices NewEVAVoice.Priority establish a priority queue, being the highest value the selected one.
  • NewEVAVoice.RecheckOnDeath re-checks a new EVA voice after the destruction/undeployment of of of these buildings.
  • NewEVAVoice.InitialMessage plays an EVA message to the player when a different EVA has been selected.

In rulesmd.ini:

[SOMEBUILDING]                    ; BuildingType
NewEVAVoice=                      ; boolean
NewEVAVoice.Index=0               ; integer
NewEVAVoice.Priority=1            ; integer
NewEVAVoice.RecheckOnDeath=false  ; boolean
NewEVAVoice.InitialMessage=       ; EVA entry

@FS-21 FS-21 marked this pull request as draft May 27, 2025 11:15
FS-21 added 2 commits May 28, 2025 08:40
- The player will hear only his own EVA voices from the tag NewEVAVoice.InitialMessage.
- The readed data of the [EVATypes] was deleted before it was used by the new code.
- Small fixes & tweaks.
@FS-21 FS-21 marked this pull request as ready for review May 28, 2025 07:04
@FS-21
Copy link
Contributor Author

FS-21 commented May 28, 2025

2025-05-28.09-02-10.mp4

Copy link

github-actions bot commented May 28, 2025

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.

Copy link
Contributor

@Starkku Starkku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The EVA voice change logic should be generalized and put in a separate function from buildings, probably in SideExt or something. Firestorm has a map trigger for this purpose and I suppose someone might want to reimplement that here as well.

Some smaller things to take note of as well.

Comment on lines +41 to +42
NewEVAVoice= ; boolean
NewEVAVoice.Index=0 ; integer
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Get rid of the bool and use Nullable or negative default value index.

Comment on lines +319 to +322
namespace EVAIndexListTemp
{
std::vector<std::string> EVAIndexList;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this namespace actually used anywhere?

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.

2 participants