SRB2 Message Board

SRB2 Message Board (https://mb.srb2.org/index.php)
-   Miscellaneous (https://mb.srb2.org/forumdisplay.php?f=113)
-   -   Emotes (KL_emotes-v2.2.pk3) (https://mb.srb2.org/showthread.php?t=46945)

Afrorule 03-25-2020 03:32 AM

Emotes (KL_emotes-v2.2.pk3)
 
2 Attachment(s)
An alternate way to express yourself in races. (70+ emotes)

V2 - Custom animated emotes support! Check 'Customisation' for more info.

Changelog:
Spoiler:
v2.2 Emotes set automatically + fixed minor visual oversight
v2.1 - Emotes don't jitter on uncapped builds of the game anymore + emotehell command (turn hell emotes on/off)
V2 - Custom animated emotes support + animated emotes highlight with a different colour when listing emotes

V1.3 - Emotes scale with player (so emotes dont spawn higher on maps with small mobj scale) + fixed oversight with emotelist command
V1.2 - You can set emotes as a spectator + three new emotes (excuseme, dontlookatme, hooray)
v1.1 - Changed emote functionality on hell maps, added hell emotes
V1.0 - Initial release

Console commands (please read):
Spoiler:
emotehelp: A short explanation on how to use this mod in-game.
emotelist <pagenumber>: List the available emotes by page. (Limit of 10 per page)
emote1 <emote>: Bind an emote to your CUSTOM1 button.
emote2 <emote>: Bind an emote to your CUSTOM2 button.
emote3 <emote>: Bind an emote to your CUSTOM3 button.

(Instead of <emote>, you can also put 'random', which randomises the emote bound to your CUSTOM button of choice at the start of each race. For example, emote1 random, will randomise the emote for your CUSTOM1 button. Try it out!)

emotesoundon: Turn on notification sound that plays when you emote.
emotesoundoff: Turn off notification sound that plays when you emote.
(Bear in mind, this sound is only local to you, no one else can hear it.)

Admin command(s):
emotehell <On/Off>: Turn hell emotes on/off.

Instructions:
Spoiler:
1. Bind an emote to one of your CUSTOM buttons. (Example: emote1 joy, would bind the emote 'joy' to your CUSTOM1 button.)
2. Press that button.

Customisation:
Spoiler:
You can add custom emotes too!

Just make a separate wad with the emotes you want to add (remember to adjust the offsets as well). For each emote added, call this function for it:

Code:

freeslot("S_EMO_EXMP")
Emotes_AddCustomEmote({name="example", sprite="SPR_EXMP", description="Example emote", state=S_EMO_EXMP})

And for hell emotes:
Code:

freeslot("S_EMO_HLXM")
Emotes_AddCustomHellEmote({name="hell-example", sprite="SPR_HLXM", description="Example hell emote", state=S_EMO_HLXM})

Personally, I'd recommend that your states start with "S_EMO" or "S_EMOTE" to reduce chances of conflicts with any states already in the game, but, it's up to you!

The description entry is optional, but make sure there's at least a name, sprite and state entry.

ANIMATED EMOTES:

Adding animated emotes requires a bit more.

For each frame of the animated emote, use the freeslot function to add a state. For example, if I wanted to add an emote with 4 frames (so you should have 4 sprites):

For normal emotes:
Code:

freeslot("S_EXMP1", "S_EXMP2", "S_EXMP3", "S_EXMP4")
Emotes_AddCustomAnimatedEmote({name="exmple-animated", sprite="SPR_EXMP",
statetable={S_EXMP1, S_EXMP2, S_EXMP3, S_EXMP4}, description="I am animated, wee"})

For hell emotes:
Code:

freeslot("S_EXMP1", "S_EXMP2", "S_EXMP3", "S_EXMP4")
Emotes_AddCustomAnimatedHellEmote({name="exmple-animated", sprite="SPR_EXMP",
statetable={S_EXMP1, S_EXMP2, S_EXMP3, S_EXMP4}, description="I am animated, wee"})

Once again, the description entry is optional, but make sure there's at least a name, sprite and statetable entry. (Make sure the offset is the same for all the sprites or it'll animate inconsistently!)

Credits:
Spoiler:
Thanks to Barki for helping me record the preview you can see below.
Thanks to the wonderful folks on GINGER for testing this and giving me suggestions.
Full list of credits for emotes used found in the .pk3.

D00D64 03-25-2020 04:20 AM

Welcome to releases!

Afrorule 03-25-2020 05:15 PM

...And here's the same-day release update!

V1.1 changelog:
* Changed emote functionality on hell maps, added hell emotes

Afrorule 03-26-2020 10:58 PM

V1.2 changelog:
* You can set emotes as a spectator
* Three new emotes (excuseme, dontlookatme, hooray)

Afrorule 03-27-2020 03:19 AM

omds

V1.3 CHANGELOG:
* Emotes scale with player (so emotes dont spawn higher on maps with small mobj scale) + fixed oversight with emotelist command
* Fixed oversight when listing emotes by page

Afrorule 03-27-2020 12:36 PM

hmm

V2 CHANGELOG:
* Custom animated emotes support
* Animated emotes highlight with a different colour when listing emotes
* Some hell emotes which were meant to be animated are now animated

Afrorule 04-05-2020 02:29 AM

V2.1 CHANGELOG:

* Emotes don't weirdly jitter anymore on uncapped builds:

This changes how you can add custom emotes a tad, so check out the 'Customisation' section for a slight update! This doesn't affect how you add animated emotes, only static ones.

* emotehell command added, turn hell emotes on/off

Afrorule 04-13-2020 06:31 PM

V2.2 CHANGELOG:

* Emotes set from the get-go (like hornmod lol)
* Fixed visual oversight which I'm hoping no one noticed


All times are GMT. The time now is 03:33 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.