[TF2] Assister Domination Quotes (1.3, 2013-08-02)
4 Attachment(s)
Description
Are you tired of getting a domination on an assist and not hearing the sweet domination quotes? Or getting a revenge on an assist and not getting to tell off the person who had been dominating you? Well, no more! See Also: Force Domination Quotes, Spy Fake Dominations Feature List
Changelog
Copy the plugin into your addons/sourcemod/plugins/ directory. Dependencies SourceMod 1.4 and its SDKTools extension Plans I've considered making a command to let admins force other players to play their domination/revenge lines, but decided not to do that. Perhaps another plugin could be written for that... |
Re: [TF2] Assister Domination Quotes (1.0, 2013-05-07)
Technical information on manipulating the TF2 Response System.
This plugin uses TF2's own Response system to work. Inside tf2_misc_dir.vpk is the directory scripts/talker/ with has a number of .txt files. These text files control the Valve response system. To get characters to say their in-game lines, you can look up the response concept you want it to play and figure out what contexts have to be in place before it will work. This plugin uses the SpeakResponseConcept input instead of DispatchResponse. This is because DispatchResponse does not appear to work correctly in TF2. Here's an example of how to get a specific response working: For this, I chose to play the Medic's Melee Dare. The first step is to open up scripts/talker/medic.txt and search for the word Dare. Ignore the first one you find, as it's the Duel version. Eventually, you'll find this: Code:
Response MeleeDareCombatMedic So, open up scripts/talker/response_rules.txt and look for ConceptPlayerBattleCry Code:
criterion "ConceptPlayerBattleCry" "Concept" "TLK_PLAYER_BATTLECRY" required Now, unfortunately IsMedic isn't really overridable, as the game resets it too quickly for us to override it. UPDATE: The above may not be true. However, when you define two contexts of the same type, only the first one applies. However, you can remove a context like this: Code:
SetVariantString("playerclass"); Code:
AcceptEntityInput(client, "ClearContext"); Lets take a look at it anyway. Here's the definitions for this context: Code:
criterion "IsMedic" "playerclass" "Medic" "required" Lets look at the last two contexts: IsWeaponMelee and IsCrosshairEnemy Code:
criterion "IsWeaponMelee" "weaponmode" "melee" required Code:
#include <sdktools> Code:
SetVariantString("TLK_PLAYER_BATTLECRY"); Edit: My tf2-data respository contains the talker files, which did not change in the Gun Mettle Update. |
Re: [TF2] Assister Domination Quotes (1.0, 2013-05-07)
Good to see this ended up working.
|
Re: [TF2] Assister Domination Quotes (1.0, 2013-05-07)
Quote:
It also occurred to me that I may be able to change which class's quotes are played if I removecontext on the one that sets the player class and then add a new one of my choice... |
Re: [TF2] Assister Domination Quotes (1.0, 2013-05-07)
Got a lot of error and uninstalled it. Will reinstall to report the exact errors.
EDIT: Quote:
|
Re: [TF2] Assister Domination Quotes (1.0, 2013-05-07)
1 Attachment(s)
Quote:
Anyway, try this version. |
Re: [TF2] Assister Domination Quotes (1.1, 2013-05-11)
Hmm, this plugin may not be working at the moment. Either that or it got disabled on my primary server when I wasn't looking.
Thought it was weird when I got an assist domination last night and didn't hear my Medic say anything. |
Re: [TF2] Assister Domination Quotes (1.2, 2013-08-02)
OK, thanks to psychonic for pointing out a typo (deathflags should be death_flags). Now, hopefully this plugin will actually work.
Released version 1.2, changelog is in first post. |
Re: [TF2] Assister Domination Quotes (1.3, 2013-08-02)
Another release already... this time some code improvements, plus there's a new cvar that allows you to disable the plugin.
This version is also compatible with Spy Fake Domination Quotes v1.0. |
Re: [TF2] Assister Domination Quotes (1.3, 2013-08-02)
1 Attachment(s)
Updated to new syntax.
|
All times are GMT -4. The time now is 15:28. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.