/tauntspeed

Changes the taunt animation/kill speed

Primary LanguageSourcePawnGNU General Public License v3.0GPL-3.0

TF2 Taunt Speed Modifier

IMAGE ALT TEXT HERE

Description

This plugin will change the taunt animation/kill speed

Requirements

Plugin for Team Fortress 2
Requires Sourcemod 1.8+ and Metamod 1.10+

Convar settings

sm_tauntspeed_enabled - Enables/Disables Taunt Speed Modifier
sm_tauntspeed_flag - Enable taunt speed on players with the given flag [0 - OFF, 1 - PUBLIC, FLAG (https://wiki.alliedmods.net/Adding_Admins_(SourceMod)#Levels)]
sm_tauntspeed_speed - The speed of taunt if player has the flag given in sm_tauntspeed_flag
sm_tauntspeed_attack - Allow taunt attack timing to be changed with the taunt speed
sm_tauntspeed_voice - Allow voice pitch to be changed with taunt speed

Commands

sm_tauntspeed <client> <float:value> - Enables Taunt Speed on players (ADMIN GENERIC)
sm_tauntspeedme - Enable Taunt Speed on yourself (ADMIN GENERIC)

Installation

1. Place tauntspeed.smx to addons/sourcemod/plugins/
2. Place tauntspeed_menu.cfg to addons/sourcemod/configs/
3. Place tauntspeed_exclude.cfg to addons/sourcemod/configs/
4. Place tf2.tauntspeed to addons/sourcemod/gamedata
5. Place taunt.cfg to cfg/sourcemod/

Configuration Setup

  • Open addons/sourcemod/configs/tauntspeed_menu.cfg
"Taunt Speed"
{
	//1.0 is normal speed
    "Very Slow"
    {
		"Speed"			"0.2"
    }
	"Slow"
    {
		"Speed"			"0.5"
    }
	"Regular"
    {
		"Speed"			"1.0"
    }
	"Fast"
    {
		"Speed"			"1.5"
    }
	"Very Fast"
    {
		"Speed"			"2.0"
    }
	"WTF"
	{
		"Speed"			"5.0"
	}
}

Here you can change the menu that is displayed to clients

  • Open addons/sourcemod/configs/tauntspeed_exclude.cfg
"Taunt Speed Exclude"
{
	//Weapon Index can be found here: https://wiki.alliedmods.net/Team_Fortress_2_Item_Definition_Indexes
	//Each index must be seperated by a ;
	//For example: "5;7;867;342;64"
	"Weapon Index"  ""
	
	//Taunt Index can be found in the original post thread of this plugin
	//Each index must be seperated by a ;
	//For example: "5;7;867;342;64"
	"Taunt Index" ""
}

Here you can exclude certain weapon taunts or action taunts

Natives

/**
 * Sets the taunt gesture speed on client
 *
 * @param client	An integer.
 * @param value		A float.
 * @return
 */
native void SetGestureSpeed(int client, float value);

/**
 * Sets the voice pitch on client
 *
 * @param client 	An integer.
 * @return
 */
native void SetVoicePitch(int client, float value);

/**
 * Sets the taunt attack speed on client
 * Should be used on the TF2_OnConditionAdded forward
 *
 * @param client 	An integer.
 * @return
 */
native void SetTauntAttackSpeed(int client, float value);

/**
 * Removes the taunt gesture speed on client
 *
 * @param client 	An integer.
 * @return
 */
native void RemoveGestureSpeed(int client);

/**
 * Removes the voice pitch on client
 *
 * @param client 	An integer.
 * @return
 */
native void RemoveVoicePitch(int client);

These natives can be used to set/remove taunt speeds on client

Taunt Index List

High Five Taunt - 167
Replay Taunt - 438
Laugh Taunt - 463
Meet the Medic Heroic Taunt - 477
Shred Alert Taunt - 1015
Square Dance Taunt - 1106
Flippin' Awesome Taunt - 1107
Buy A Life Taunt - 1108
Results Are In Taunt 1109
RPS Taunt - 1110
Skullcracker Taunt - 1111
Party Trick Taunt - 1112
Fresh Brewed Victory Taunt - 1113
Spent Well Spirits Taunt - 1114
Rancho Relaxo Taunt - 1115
I See You Taunt - 1116
Battin' a Thousand Taunt - 1117
Conga Taunt - 1118
Deep Fried Desire Taunt - 1119
Oblooterated Taunt - 1120
The Kazotsky Kick - 1157
Pool Party Taunt - 30570
The Boston Breakdance Taunt - 30572
The Killer Solo Taunt - 30609
Most Wanted Taunt - 30614
The Proletariat Posedown Taunt - 30616
The Box Trot Taunt - 30615
The Kazotsky Kick Taunt - 1157
The Burstchester Taunt - 30621
Requiem Taunt - 30673
Zooming Broom Taunt - 30672
Mannrobics Taunt - 1162
Bad Pipes Taunt - 30671
Bucking Bronco Taunt - 30618
Disco Fever Taunt - 30762
Balloonibouncer Taunt - 30763
The Fubar Fanfare Taunt - 30761
The Carlton Taunt - 1168
The Victory Lap Taunt - 1172
The Second Rate Sorcery Taunt - 30816
The Table Tantrum taunt - 1174
The Scotsmann's Stagger Taunt - 30840
The Didgeridrongo Taunt - 30839