AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY] Emotes (v1.07 07/24/2018) (https://forums.alliedmods.net/showthread.php?t=309198)

Rachnus 07-17-2018 05:56

[ANY] Emotes (v1.07 07/24/2018)
 
EMOTES v1.07 :nono:


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)
PHP Code:

"emotes"
{
    
"anele"
    
{
        
"key"    "ANELE"
        "material"    "materials/emotes/anele"
    
}
    
    
"gachigasm"
    
{
        
"key"    "gachiGASM"
        "material"    "materials/emotes/gachigasm"
    
}
    
    
"heyguys"
    
{
        
"key"    "HeyGuys"
        "material"    "materials/emotes/heyguys"
    
}
    
    
"jebaited"
    
{
        
"key"    "Jebaited"
        "material"    "materials/emotes/jebaited"
    
}
    
    
"kappapride"
    
{
        
"key"    "KappaPride"
        "material"    "materials/emotes/kappapride"
    
}
    
    
"lul"
    
{
        
"key"    "LUL"
        "material"    "materials/emotes/lul"
    
}
    
    
"minglee"
    
{
        
"key"    "MingLee"
        "material"    "materials/emotes/minglee"
    
}
    
    
"wutface"
    
{
        
"key"    "WutFace"
        "material"    "materials/emotes/wutface"
    
}
    
    
"4house"
    
{
        
"key"    "4House"
        "material"    "materials/emotes/4house"
    
}
    
    
"feelsbadman"
    
{
        
"key"    "FeelsBadMan"
        "material"    "materials/emotes/feelsbadman"
    
}
    
    
"forsene"
    
{
        
"key"    "forsenE"
        "material"    "materials/emotes/forsene"
    
}
    
    
"hyperbruh"
    
{
        
"key"    "HYPERBRUH"
        "material"    "materials/emotes/hyperbruh"
    
}
    
    
"omegalul"
    
{
        
"key"    "OMEGALUL"
        "material"    "materials/emotes/omegalul"
    
}
    
    
"pagchomp"
    
{
        
"key"    "PagChomp"
        "material"    "materials/emotes/pagchomp"
    
}
    
    
"trihard"
    
{
        
"key"    "TriHard"
        "material"    "materials/emotes/trihard"
    
}
    
    
"lulw"
    
{
        
"key"    "LULW"
        "material"    "materials/emotes/lulw"
    
}
    
    
"pepehands"
    
{
        
"key"    "PepeHands"
        "material"    "materials/emotes/pepehands"
    
}


Changelog
Quote:

v1.0
  • Release

v1.01
  • 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
  • Update command sm_emote, now takes 4 parameters, <client> <emote> <scale> <duration>
  • 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

VMT file settings:
PHP Code:

UnlitGeneric
{
    
"$basetexture" "emotes/<materialnamewithoutextension>"
    "
$nocull1
    
"$translucent" "1"
    "
$spriteorientation" "oriented"
    "
$color"    "{150 150 150}"



Credits
  • Me
  • Pelipoika
  • Bara

DOWNLOAD

Bara 07-17-2018 05:59

Re: [ANY] Emotes (v1.0 07/17/2018)
 
Nice! rukia

ThisIsAUsername 07-17-2018 06:37

Re: [ANY] Emotes (v1.01 07/17/2018)
 
This is cool.

Though do you think you can add an optional delay cvar so that people wont bind and spam it?

freak.exe_uLow 07-17-2018 06:47

Re: [ANY] Emotes (v1.01 07/17/2018)
 
https://pbs.twimg.com/media/DLy6MDoXUAErI0a.png

Thanks :3

iskenderkebab33 07-17-2018 06:48

Re: [ANY] Emotes (v1.01 07/17/2018)
 
Nice!, can we also put own Emotes?

Rachnus 07-17-2018 06:50

Re: [ANY] Emotes (v1.01 07/17/2018)
 
Quote:

Originally Posted by iskenderkebab33 (Post 2604184)
Nice!, can we also put own Emotes?

yes, you can add another section in the config

iskenderkebab33 07-17-2018 06:52

Re: [ANY] Emotes (v1.01 07/17/2018)
 
Quote:

Originally Posted by Rachnus (Post 2604186)
yes, you can add another section in the config

cool! thanks!, and what is the Programm Code in the background? (like.. Notepad++..)

Rachnus 07-17-2018 06:54

Re: [ANY] Emotes (v1.01 07/17/2018)
 
Quote:

Originally Posted by iskenderkebab33 (Post 2604188)
cool! thanks!, and what is the Programm Code in the background? (like.. Notepad++..)

that would be SPEdit (https://forums.alliedmods.net/showthread.php?t=259917)

iskenderkebab33 07-17-2018 06:56

Re: [ANY] Emotes (v1.01 07/17/2018)
 
Quote:

Originally Posted by Rachnus (Post 2604189)

oh, never seen this befor, thanks!

404UserNotFound 07-17-2018 13:33

Re: [ANY] Emotes (v1.01 07/17/2018)
 
Quote:

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.


All times are GMT -4. The time now is 16:49.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.