Raised This Month: $12 Target: $400
 3% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Rachnus
Senior Member
Join Date: Jun 2016
Location: Funland
Plugin ID:
6196
Plugin Version:
1.07
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Display emotes (images) above your head
    Old 07-17-2018 , 05:56   [ANY] Emotes (v1.07 07/24/2018)
    Reply With Quote #1

    EMOTES v1.07


    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
    __________________
    Github: https://github.com/jimppan
    Steam: http://steamcommunity.com/id/jimppan
    _____________________________________________ _________
    Taking private requests

    Last edited by Rachnus; 02-21-2024 at 13:56.
    Rachnus is offline
    Bara
    AlliedModders Donor
    Join Date: Apr 2012
    Location: Germany
    Old 07-17-2018 , 05:59   Re: [ANY] Emotes (v1.0 07/17/2018)
    Reply With Quote #2

    Nice!
    __________________
    Discord (Bara#5006) | My Plugins (GitHub)
    You like my work? Support is not a crime.
    Bara is offline
    ThisIsAUsername
    Junior Member
    Join Date: Nov 2017
    Old 07-17-2018 , 06:37   Re: [ANY] Emotes (v1.01 07/17/2018)
    Reply With Quote #3

    This is cool.

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

    Last edited by ThisIsAUsername; 07-17-2018 at 06:41.
    ThisIsAUsername is offline
    freak.exe_uLow
    AlliedModders Donor
    Join Date: Jul 2012
    Location: Germany
    Old 07-17-2018 , 06:47   Re: [ANY] Emotes (v1.01 07/17/2018)
    Reply With Quote #4



    Thanks

    Last edited by freak.exe_uLow; 07-17-2018 at 17:17.
    freak.exe_uLow is offline
    iskenderkebab33
    Senior Member
    Join Date: Jun 2018
    Old 07-17-2018 , 06:48   Re: [ANY] Emotes (v1.01 07/17/2018)
    Reply With Quote #5

    Nice!, can we also put own Emotes?
    iskenderkebab33 is offline
    Rachnus
    Senior Member
    Join Date: Jun 2016
    Location: Funland
    Old 07-17-2018 , 06:50   Re: [ANY] Emotes (v1.01 07/17/2018)
    Reply With Quote #6

    Quote:
    Originally Posted by iskenderkebab33 View Post
    Nice!, can we also put own Emotes?
    yes, you can add another section in the config
    __________________
    Github: https://github.com/jimppan
    Steam: http://steamcommunity.com/id/jimppan
    _____________________________________________ _________
    Taking private requests
    Rachnus is offline
    iskenderkebab33
    Senior Member
    Join Date: Jun 2018
    Old 07-17-2018 , 06:52   Re: [ANY] Emotes (v1.01 07/17/2018)
    Reply With Quote #7

    Quote:
    Originally Posted by Rachnus View Post
    yes, you can add another section in the config
    cool! thanks!, and what is the Programm Code in the background? (like.. Notepad++..)

    Last edited by iskenderkebab33; 07-17-2018 at 06:54.
    iskenderkebab33 is offline
    Rachnus
    Senior Member
    Join Date: Jun 2016
    Location: Funland
    Old 07-17-2018 , 06:54   Re: [ANY] Emotes (v1.01 07/17/2018)
    Reply With Quote #8

    Quote:
    Originally Posted by iskenderkebab33 View Post
    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)
    __________________
    Github: https://github.com/jimppan
    Steam: http://steamcommunity.com/id/jimppan
    _____________________________________________ _________
    Taking private requests
    Rachnus is offline
    iskenderkebab33
    Senior Member
    Join Date: Jun 2018
    Old 07-17-2018 , 06:56   Re: [ANY] Emotes (v1.01 07/17/2018)
    Reply With Quote #9

    Quote:
    Originally Posted by Rachnus View Post
    oh, never seen this befor, thanks!
    iskenderkebab33 is offline
    404UserNotFound
    BANNED
    Join Date: Dec 2011
    Old 07-17-2018 , 13:33   Re: [ANY] Emotes (v1.01 07/17/2018)
    Reply With Quote #10

    Quote:
    Originally Posted by iskenderkebab33 View Post
    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.
    404UserNotFound is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 02:13.


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