diff options
author | onefang | 2021-09-06 22:07:45 +1000 |
---|---|---|
committer | onefang | 2021-09-06 22:07:45 +1000 |
commit | 652ac103403240612a01569bbc71e46090f708d2 (patch) | |
tree | 1aca6c179f1fa203823cf01f9b551ed88c8d7c0c | |
parent | Rip it a new one, the other side. (diff) | |
download | 1ring-652ac103403240612a01569bbc71e46090f708d2.zip 1ring-652ac103403240612a01569bbc71e46090f708d2.tar.gz 1ring-652ac103403240612a01569bbc71e46090f708d2.tar.bz2 1ring-652ac103403240612a01569bbc71e46090f708d2.tar.xz |
Better smilage. B-)
Diffstat (limited to '')
-rw-r--r-- | 1AOor2.lsl | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -341,9 +341,10 @@ integer doThing(key id, string button, string fr, string cmd, string data, integ | |||
341 | else if ("SMILE" == cmd) | 341 | else if ("SMILE" == cmd) |
342 | { // The built in express_* animations are too short, but live with it. | 342 | { // The built in express_* animations are too short, but live with it. |
343 | animEnd(llGetOwner(), Smile); | 343 | animEnd(llGetOwner(), Smile); |
344 | Smile = llList2String(Smiles, (integer) llFrand(2.5)); | 344 | Smile = llList2String(Smiles, (integer) llFrand((float) llGetListLength(Smiles))); |
345 | addEvent(3.0 + llFrand(5.0), cmd); | 345 | addEvent(3.0 + llFrand(2.0), cmd); |
346 | animBegin(llGetOwner(), Smile); | 346 | animBegin(llGetOwner(), Smile); |
347 | } | ||
347 | else if ("SLOWER_-" == cmd) | 348 | else if ("SLOWER_-" == cmd) |
348 | { | 349 | { |
349 | integer sp = llListFindList(AOspeeds, [getSetting("SPEED")]); | 350 | integer sp = llListFindList(AOspeeds, [getSetting("SPEED")]); |
@@ -734,12 +735,12 @@ string nextState; // AO state name. | |||
734 | // Smiler | 735 | // Smiler |
735 | integer SmileCounter = 0; | 736 | integer SmileCounter = 0; |
736 | string Smile = "express_toothsmile"; | 737 | string Smile = "express_toothsmile"; |
737 | list Smiles = | 738 | list Smiles = |
738 | [ | 739 | [ |
739 | "express_smile", | ||
740 | "express_toothsmile", | 740 | "express_toothsmile", |
741 | "express_wink_emote", | 741 | "express_embarrassed_emote", |
742 | "express_tongue_out" | 742 | "express_smile", |
743 | "express_wink_emote" | ||
743 | ]; | 744 | ]; |
744 | 745 | ||
745 | // Couples | 746 | // Couples |