View Single Post
Author Message
Thrawn2
Veteran Member
Join Date: Apr 2009
Old 08-20-2009 , 10:18   [ANY] tEmotes v1.004 (2009.12.30)
Reply With Quote #1

tEmotes shows emoticons above a players head. Triggered by chat messages.
The pluginidea and models are based on this Eventscript by SuperDave.
The models are made by Venjax.
So, thank them, not me - i basically just ported their work to sourcemod.

L4D:
as long as it's not able to upload custom content to clients, l4d is not compatible with this plugin.

Configuration:
You can easily add your own emoticons. Two steps are needed:
a) create the model
Code:
// Each icon requires: 
//    ./materials/models/extras/<name>/speech_info.vmt 
//    ./materials/models/extras/<name>/speech_info.vtf 
//    ./models/extras/<name>/info_speech.dx80.vtx 
//    ./models/extras/<name>/info_speech.dx90.vtx 
//    ./models/extras/<name>/info_speech.mdl 
//    ./models/extras/<name>/info_speech.phy 
//    ./models/extras/<name>/info_speech.sw.vtx 
//    ./models/extras/<name>/info_speech.vvd
b) upload it to you server and edit the tEmotes.cfg to include your emoticon.
to make the model with <name> angry be recognized by the chattrigger "cheater" (or "cHeAtEr") you would have this in your tEmotes.cfg:
Code:
"tEmotes"
{
    "angry"
    {
        "code"      "cheater"
    }
}
CVars:
Code:
// Enable/Disable tEmotes
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_temotes_enable "1"

// Time (in seconds) an emote is visible
// -
// Default: "4.0"
// Minimum: "0.000000"
sm_temotes_duration "4.0"
Important:
Set the proper whitelist entries if you're going to use the emotes on a pure server!

Changelog:
1.004:
- fixed precaching problems (hopefully)

1.003:
- fixed dead and spectating players showing emotes

1.002:
- added version cvar sm_temotes_version

1.001:
- The emoticons now rotate correctly

1.000
- Initial Release (in this thread)
Attached Files
File Type: sp Get Plugin or Get Source (tEmotes.sp - 1326 views - 6.6 KB)
File Type: zip tEmotes.zip (713.1 KB, 781 views)

Last edited by Thrawn2; 12-30-2009 at 12:35. Reason: update
Thrawn2 is offline