Repository navigation
Conversation
…CanChangeEvaVoice
2025-05-28.09-02-10.mp4 |
|
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. |
Starkku
left a comment
There was a problem hiding this comment.
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.
b429215 to
280b1c8
Compare
Since Ares already has Map trigger actions for changing these voices like in Firestorm I only focused in learning how to change it and apply this logic for buildings like in the video, not reimplementing again the EVA voices. Let me see the SideExt you mentioned because I remember one of the first attempts was storing data in that place but things happened that made me move the code and I ended here. |
- Removed NewEvaVoice tag. - NewEvaVoice.Index now is nullable int and the checks are against this value instead of the old NewEvaVoice.
|
Applied feedback and updated documentation and initial message here. The missing bit I have to do now is that suggestion of moving the code into a separated function from buildings to SideExt for future changes/additions, etc. |
…CanChangeEvaVoice
Function UpdateMainEvaVoice(...) moved from Buildings to side class.
|
Moved the UpdateMainEvaVoice(...) function to SideExt. |
…CanChangeEvaVoice
|
Limbo Delivery buildings can't change EVA |
…ecated Index usage
Yes, I never tried that so I added support now. I updated this code and added support when a building is captured by engineers. |
…CanChangeEvaVoice
…CanChangeEvaVoice
NewEVAVoice.Tag.NewEVAVoice.Tagspecifies the EVA voice name (defined under[EVATypes]inevamd.inivia Ares, or vanilla voicesAllied,Russian,Yuri).NewEVAVoice.Priorityestablishes a priority queue, where the building with the highest value is selected.NewEVAVoice.RecheckOnDeathcontrols whether to re-evaluate the active EVA voice upon building destruction or sale.NewEVAVoice.InitialMessageplays an EVA sound message to the player when a new EVA voice is activated.NewEVAVoice.EndingMessageplays an EVA sound message / sound effect with the outgoing EVA voice when it is deactivated/replaced before transitioning to the new voice.NewEVAVoiceremain, the EVA voice automatically falls back hierarchically:[HouseType] -> EVA.Tag(Country-specific EVA voice)[Side] -> EVA.Tag(Side-specific EVA voice)In
rulesmd.ini: