aboutsummaryrefslogtreecommitdiff
path: root/src/courtroom.cpp
diff options
context:
space:
mode:
authorCrystalwarrior <varsash@gmail.com>2019-10-23 05:08:20 +0300
committerCrystalwarrior <varsash@gmail.com>2019-10-23 05:08:20 +0300
commitbef368e98651fa01e743728a2a88783fdfab74ac (patch)
tree678dcf6bc0149770da5d467b3d1f1d52d1512b83 /src/courtroom.cpp
parent3595fd11e60fd07a2a6802150f4dff60cf6669fc (diff)
Allow gender (blip sounds) that don't use sfx-blip naming convention
Fix "prezoom" packet being ignored Allow char.ini's to indicate a zoom w/ preanimation by using emote_mod=4 ((ALL OF THESE ARE UNTESTED - TESTING NEEDED!))
Diffstat (limited to 'src/courtroom.cpp')
-rw-r--r--src/courtroom.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/courtroom.cpp b/src/courtroom.cpp
index 7cb5cf39..fec354a0 100644
--- a/src/courtroom.cpp
+++ b/src/courtroom.cpp
@@ -1391,7 +1391,7 @@ void Courtroom::on_chat_return_pressed()
{
if (ui_pre->isChecked())
{
- if (f_emote_mod == 5)
+ if (f_emote_mod == 4 || f_emote_mod == 5)
f_emote_mod = 6;
else
f_emote_mod = 2;
@@ -1957,7 +1957,7 @@ void Courtroom::play_char_sfx(QString sfx_name)
{
sfx_player->play(ao_app->get_sfx_suffix(sfx_name));
if(ao_app->get_looping_sfx())
- sfx_player->set_looping(ao_app->get_sfx_looping(current_char, sfx_name)!="0");
+ sfx_player->set_looping(ao_app->get_sfx_looping(current_char, QString::number(current_emote))!="0");
}
void Courtroom::handle_chatmessage_3()
@@ -2396,7 +2396,7 @@ void Courtroom::play_preanim(bool noninterrupting)
//all time values in char.inis are multiplied by a constant(time_mod) to get the actual time
int ao2_duration = ao_app->get_ao2_preanim_duration(f_char, f_preanim);
int text_delay = ao_app->get_text_delay(f_char, f_preanim) * time_mod;
- int sfx_delay = m_chatmessage[SFX_DELAY].toInt() * 60;
+ int sfx_delay = m_chatmessage[SFX_DELAY].toInt() * time_mod;
int preanim_duration;
@@ -2493,7 +2493,7 @@ void Courtroom::start_chat_ticking()
QString f_gender = ao_app->get_gender(m_chatmessage[CHAR_NAME]);
- blip_player->set_blips(ao_app->get_sfx_suffix("sfx-blip" + f_gender));
+ blip_player->set_blips(ao_app->get_sfx_suffix(f_gender));
//means text is currently ticking
text_state = 1;