h2-mod/data/cdata/scripts/ending/achievements.gsc
fed e43ae321c0 Add custom achievements
Co-Authored-By: Vlad Loktionov <13555921+VladWinner@users.noreply.github.com>
2023-04-14 18:43:31 +02:00

22 lines
490 B
Plaintext

main()
{
replacefunc(maps\char_museum::ramirez_jukebox, ::ramirez_jukebox);
}
ramirez_jukebox()
{
common_scripts\utility::flag_wait("museum_ready");
wait 4;
jukebox = getent("ramirez_jukebox", "targetname");
jukebox makeusable();
for (;;)
{
jukebox waittill("trigger");
index = randomint(37);
jukebox maps\_utility::play_sound_on_entity("museum_ramirez_ee_" + index);
maps\_utility::giveachievement_wrapper("RAMIREZ");
}
}