Deadlineem / Extras-Addon-for-YimMenu

This addon features extra tools for YimMenu that aren't already a part of the stand alone base version.
http://extrasaddon.us.to/
51 stars 10 forks source link

issue feature request sound spams #42

Closed binded-zz closed 4 months ago

binded-zz commented 4 months ago

idk if its me but alot of the sounds dont work also major out of order any way of sorting them out maybe list only the working ones

also while i was playing with them i managed to start a few loops that i didnt not know would not stop at all if i didnt click the stop local sounds first hand

theres no way at all to stop them with out fully closing the game and i want to ask but at the same time i dont want too is there way to list just toxic ones, and fun ones yes thats toxic to ask but also if you dont want to use a toxic one its nice to know what ones are not that toxic

and its all toxic pretty much but it can still be funny to send sounds and listen or watch chat and spec them and they be like you hear that and they try to figure out what it is

Deadlineem commented 4 months ago

idk if its me but alot of the sounds dont work also major out of order any way of sorting them out maybe list only the working ones

also while i was playing with them i managed to start a few loops that i didnt not know would not stop at all if i didnt click the stop local sounds first hand

theres no way at all to stop them with out fully closing the game and i want to ask but at the same time i dont want too is there way to list just toxic ones, and fun ones yes thats toxic to ask but also if you dont want to use a toxic one its nice to know what ones are not that toxic

and its all toxic pretty much but it can still be funny to send sounds and listen or watch chat and spec them and they be like you hear that and they try to figure out what it is

The list of sounds is massive, it uses all the sound files from the entire game. Some of these sounds as you encountered will loop on their own and are uncontrollable, this is related to the sounds themselves and unfortunately there is no fix for that.

In an older version, there were checkboxes with various sound spam options (7 out of 8 of them worked), however, this cluttered up the menu severely as well as the code, and we ended up doing a dropdown selectable with the entire sound list from https://github.com/DurtyFree/gta-v-data-dumps/blob/master/soundNames.json

lonelybud commented 1 month ago

is there no way to stop sound spam? have you tried this -

        void play_audio(Audio obj)
        {
            g_fiber_pool->queue_job([obj] {
                AUDIO::PLAY_SOUND_FROM_ENTITY(1, obj.AudioName.c_str(), self::ped, obj.AudioRef.c_str(), true, 0);
            });
        }

        if (components::button("Stop sound"))
            play_audio({"SELECT", "HUD_FRONTEND_DEFAULT_SOUNDSET"});

https://github.com/lonelybud/lonelyMenu/commit/f0ee34685f80ee0263f865991141faabecc556bc#diff-db82d218ef3a27827d45d0e18c54ee38bdfb356f03a899678e4b077abb738f34

basically means you play another sound which is short on same sound id. This will clear previous sound. Have not tested on networked sounds

Deadlineem commented 1 month ago

ther sound which is short on same sound id. This will clear previous sound. Have not tested on networked sounds

As long as the sound is stopped locally, does it matter if they are stopped on others? Normally when i go to the measure of sound spamming someone Im doing it to make them leave, Which is rare because vehicle sandwich is way more fun lol