Description
- Spawn emotes above you head by typing an emote name in the chat
Preview
Commands
Quote:
sm_emote - Spawns emote passed by argument sm_clearemotes - Clears any emotes spawned by the clientt
Convars
Quote:
emotes_animate_emotes - 1 - Should the emotes animate or just snap (Setting this to 0 will increase server performance if needed) emotes_emote_cooldown - 3.0 - Time in seconds before you can use another emote emotes_emote_time - 3.0 - Time in seconds an emote lasts emotes_emote_scale - 0.1 - The scale of the emote (0.1 is default for some reason)
Stock Config key is what the user needs to type in the chat to trigger the emote material is the path to the material you want to display. (Leave out the extension, also make sure you have the .vmt and .vtf in the same folder)
Added command sm_emote <emote> to force spawn emotes (even when dead or spectator)
v1.02
Added cooldown for emotes
Added convar emotes_emote_cooldown - 3.0 - Time in seconds before you can use another emote
Added convar emotes_emote_time - 3.0 - Time in seconds an emote lasts
Added convar emotes_emote_scale - 0.1 - The scale of the emote (0.1 is default for some reason)
Changed the return value of Native_SpawnEmote from a bool to a integer
Added new native Native_IsEmote
Cleaned up SpawnEmote and made the height of the emote scale with the emote scale
sm_emote command now gives feedback
Added EMOTE_PREFIX constant
Changed the return value of Emote_SpawnEmote from a bool to a integer, returns INVALID_ENT_REFERENCE if no emote was spawned, else it returns the entity index of the env_sprite_oriented entity
Added new native Emotes_IsEmote which returns true if the parameter is an emote, else it returns false
Removed EMOTE_TIME constant, using a convar now instead in emotes.sp(v1.02)
v1.03
Added native Native_ClearEmotes which clears any emotes spawned by the client
Added command sm_clearemote which removes any emotes the client has spawned
Emotes spawned on dead players/spectators now spawn at their origin instead of 80 units above their origin
Update native Emotes_SpawnEmote to take 4 arguments, <client> <emote> <scale> <duration>, if duration is equal or less than 0, then it will last as long as the round timer
Added native Emotes_ClearEmotes which clears any emotes spawned by the client
v1.04
Now works with any game...
v1.05
Can now spawn emotes with the following plugins installed: simple-chat-processor, chat-processor (Thanks Squallkins)
v1.06
Removed neanderthal way of spawning emotes through chat, and added a better way of doing it
v1.07
Emotes now spawn in TF2
Extra
Quote:
The stock emotes I put in the materials folder are all 64x64.
VTFEdit flags for the emote materials:
- Clamp S
- Clamp T
- No Mipmap
- No Level Of Detail
- Eight Bit Alpha
Originally Posted by iskenderkebab33
(Post 2604190)
oh, never seen this befor, thanks!
SPEdit is a fine program to use, but beware, there are some bugs. A big one that contributed to me switching to Sublime Text 3 was trying to close an unsaved document in SPEdit. Doing so causes the program to lock up forcing you to have to end the process and re-open SPEdit.