Closed puppleStar77 closed 11 months ago
class unk_interior // still need to figure out what this actually is
{
char pad_0000[184]; //0x0000
bool interior_camera; //0x00B8 1 when camera is set to interior even when head out the window
bool is_camera_inside; //0x00B9 1 if camera is inside, 0 when head through window
char pad_00BA[2]; //0x00BA
float camera_rotation_in_cabin; //0x00BC 0 = head straight, left is -, right is +, maybe different for UK??
char pad_00C0[24]; //0x00C0
unk_cabin_t* unk_cabin_ptr; //0x00D8
vec2s_t window_state; //0x00E0 0 = closed, 1 = open
char pad_00E8[1648]; //0x00E8
navigation_sound_event* now_playing_navigation_sound; // 0x0758
char pad_0768[88]; //0x0768
navigation_sound_event** navigation_sound_events; //0x07C0
int64_t navigation_sound_events_count; //0x07C8
char pad_07D0[5152]; //0x07D0
bool should_have_echo; //0x1BF0
I updated the storage location for the currently playing navigation sound object to ensure better sound support.
Oh very nice thank you, I've seen multiple people ask about custom navigation sounds before so yes feel free to make a pull request.
Thank you for your response. I will tidy up the code and submit the pull request soon.
Приветы)как это все сделать незнающему человеку? очень хочу свою навигацию
Euro Truck Simulator 2 (ETS2) has navigation voice sounds in numerous languages. However, there are still unsupported countries and languages, and there are also many low-quality voice instructions. In the Multi-mode(TruckerMP), Eurotruck mode is not available. Therefore, I implemented the navigation_sound_event feature using the provided code. I am not good with English, C++, and reverse engineering, but I have tried my best and put in a lot of effort. This feature allows receiving navigation event sounds. Before proceeding with a pull request, I want to confirm if it is needed and desired by the project maintainers.
The new classes added are:
To utilize the feature, you can use the following code snippet: