aboutsummaryrefslogtreecommitdiff
path: root/webAO/client.js
diff options
context:
space:
mode:
authorsD <stoned@derpymail.org>2020-04-28 22:13:17 +0200
committersD <stoned@derpymail.org>2020-04-28 22:13:17 +0200
commite6da4143cbbda967c9bd57059f0e06e79872d34f (patch)
treedaea26418864f5788a0a2680eec80a9b893b6d1d /webAO/client.js
parent77784e5f09e0c05c5034693d6973a4bfaef0f072 (diff)
add dummy 2.7 stuff
Diffstat (limited to 'webAO/client.js')
-rw-r--r--webAO/client.js16
1 files changed, 15 insertions, 1 deletions
diff --git a/webAO/client.js b/webAO/client.js
index 0b06670..d35aa5c 100644
--- a/webAO/client.js
+++ b/webAO/client.js
@@ -262,12 +262,26 @@ class Client extends EventEmitter {
*/
sendIC(deskmod, preanim, name, emote, message, side, sfx_name, emote_modifier, sfx_delay, objection_modifier, evidence, flip, realization, text_color, showname, other_charid, self_offset, noninterrupting_preanim) {
let extra_cccc = ``;
+ let extra_27 = ``;
+
if (extrafeatures.includes("cccc_ic_support")) {
extra_cccc = `${showname}#${other_charid}#${self_offset}#${noninterrupting_preanim}#`;
+
+ if (extrafeatures.includes("looping_sfx")) {
+ const looping_sfx = 0;
+ const screenshake = 0;
+ const frame_screenshake = 0;
+ const frame_realization = 0;
+ const frame_sfx = 0;
+
+ extra_27 = `${looping_sfx}#${screenshake}#${frame_screenshake}#${frame_realization}#${frame_sfx}#`;
+ // looping_sfx, screenshake, frame_screenshake, frame_realization, frame_sfx = args
+ }
}
+
const serverMessage = `MS#${deskmod}#${preanim}#${name}#${emote}` +
`#${escapeChat(encodeChat(message))}#${side}#${sfx_name}#${emote_modifier}` +
- `#${this.charID}#${sfx_delay}#${objection_modifier}#${evidence}#${flip}#${realization}#${text_color}#${extra_cccc}%`;
+ `#${this.charID}#${sfx_delay}#${objection_modifier}#${evidence}#${flip}#${realization}#${text_color}#${extra_cccc}${extra_27}%`;
console.log(serverMessage);