- } else if (hotspottype[closest] >= 20 && dialoguegonethrough[hotspottype[closest] - 20] == 0) {
- whichdialogue = hotspottype[closest] - 20;
- for (j = 0; j < numdialogueboxes[whichdialogue]; j++) {
- player[participantfocus[whichdialogue][j]].coords = participantlocation[whichdialogue][participantfocus[whichdialogue][j]];
- player[participantfocus[whichdialogue][j]].yaw = participantyaw[whichdialogue][participantfocus[whichdialogue][j]];
- player[participantfocus[whichdialogue][j]].targetyaw = participantyaw[whichdialogue][participantfocus[whichdialogue][j]];
- player[participantfocus[whichdialogue][j]].velocity = 0;
- player[participantfocus[whichdialogue][j]].animTarget = player[participantfocus[whichdialogue][j]].getIdle();
- player[participantfocus[whichdialogue][j]].frameTarget = 0;
- }
- directing = 0;
- indialogue = 0;
- dialoguegonethrough[whichdialogue]++;
- if (dialogueboxsound[whichdialogue][indialogue] != 0) {
- int whichsoundplay;
- if (dialogueboxsound[whichdialogue][indialogue] == 1) whichsoundplay = rabbitchitter;
- if (dialogueboxsound[whichdialogue][indialogue] == 2) whichsoundplay = rabbitchitter2;
- if (dialogueboxsound[whichdialogue][indialogue] == 3) whichsoundplay = rabbitpainsound;
- if (dialogueboxsound[whichdialogue][indialogue] == 4) whichsoundplay = rabbitpain1sound;
- if (dialogueboxsound[whichdialogue][indialogue] == 5) whichsoundplay = rabbitattacksound;
- if (dialogueboxsound[whichdialogue][indialogue] == 6) whichsoundplay = rabbitattack2sound;
- if (dialogueboxsound[whichdialogue][indialogue] == 7) whichsoundplay = rabbitattack3sound;
- if (dialogueboxsound[whichdialogue][indialogue] == 8) whichsoundplay = rabbitattack4sound;
- if (dialogueboxsound[whichdialogue][indialogue] == 9) whichsoundplay = growlsound;
- if (dialogueboxsound[whichdialogue][indialogue] == 10) whichsoundplay = growl2sound;
- if (dialogueboxsound[whichdialogue][indialogue] == 11) whichsoundplay = snarlsound;
- if (dialogueboxsound[whichdialogue][indialogue] == 12) whichsoundplay = snarl2sound;
- if (dialogueboxsound[whichdialogue][indialogue] == 13) whichsoundplay = barksound;
- if (dialogueboxsound[whichdialogue][indialogue] == 14) whichsoundplay = bark2sound;
- if (dialogueboxsound[whichdialogue][indialogue] == 15) whichsoundplay = bark3sound;
- if (dialogueboxsound[whichdialogue][indialogue] == 16) whichsoundplay = barkgrowlsound;
- if (dialogueboxsound[whichdialogue][indialogue] == -1) whichsoundplay = fireendsound;
- if (dialogueboxsound[whichdialogue][indialogue] == -2) whichsoundplay = firestartsound;
- if (dialogueboxsound[whichdialogue][indialogue] == -3) whichsoundplay = consolesuccesssound;
- if (dialogueboxsound[whichdialogue][indialogue] == -4) whichsoundplay = consolefailsound;
- emit_sound_at(whichsoundplay, player[participantfocus[whichdialogue][indialogue]].coords);
- }