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

[TF2] No Thriller Taunt


Post New Thread Reply   
 
Thread Tools Display Modes
Theon32
Member
Join Date: Sep 2018
Location: mvm_isolation_rc3
Old 04-02-2019 , 15:38   Re: [TF2] No Thriller Taunt
Reply With Quote #141

Quote:
Originally Posted by nosoop View Post
Decided to test my skill in disassembly. Have some updated gamedata.

For anyone that wants to follow along or update it for next time, assuming Valve didn't completely overhaul the halloween taunt logic since then:
  1. Load up the server binary in IDA.
  2. Open up the Strings subview and look up the IsHalloweenTaunt string.
  3. Find cross-references to the string, then head over to one of those subroutines. Switch to graph view so you have a sense of what you're looking at.
  4. In the Linux binary, since you have signatures, you'll be in CTFPlayer::ModifyOrAppendCriteria(). There's a call to rand right before to decide if the Halloween taunt is applied. I ended up patching the near JA instruction with a near JO (from 0F 87 to 0F 80). Add one to the instruction offset and set the payload in the gamedata file to 128 (0x80). Use the symbol for the signature.
  5. Same thing in the Windows binary, except no symbols. Structure is about the same, though; find those floating point operations right before. I patched the short JBE with a short JNO. Grab the offset. Use makesig for the signature.

Here's an image for reference. The forum image proxy doesn't seem too fond of it, so it's linked.

There's probably a more resilient signature that doesn't involve offsets deep into the function (since this will absolutely break if ModifyOrAppendCriteria changes), but that's an exercise for the next person.
Still works in 2019! Thanks man!
Theon32 is offline
sapphonie
Junior Member
Join Date: Aug 2020
Location: ohio
Old 01-27-2022 , 19:24   Re: [TF2] No Thriller Taunt
Reply With Quote #142

Updated for 2022 afaik
Code:
"Offset_ThrillerTaunt"
{
    "linux"         "2605"    // A2D
    "windows"       "3101"    // C1D
}
__________________
she/her

Last edited by sapphonie; 01-27-2022 at 19:25.
sapphonie is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 10-23-2022 , 00:18   Re: [TF2] No Thriller Taunt
Reply With Quote #143

Does anyone have a working version of this plugin? Current version crashes my server. Also, tf_forced_holiday 8 doesn't prevent the thriller taunt.
PC Gamer is offline
Sreaper
髪を用心
Join Date: Nov 2009
Old 10-23-2022 , 01:28   Re: [TF2] No Thriller Taunt
Reply With Quote #144

Quote:
Originally Posted by PC Gamer View Post
Does anyone have a working version of this plugin? Current version crashes my server. Also, tf_forced_holiday 8 doesn't prevent the thriller taunt.
Might be your gamedata. The one on my server seems to be different than what's in the OP.

Quote:
Metamod:Source version 1.12.0-dev+1147
SourceMod Version: 1.11.0.6826
Code:
"Games"
{
	"tf"
	{
		"Signatures"
		{
			"ThrillerTaunt"
			{
				"library"		"server"
				"linux"		"@_ZN9CTFPlayer22ModifyOrAppendCriteriaER14AI_CriteriaSet"
				"windows"		"\x53\x8B\xDC\x83\xEC\x08\x83\xE4\xF0\x83\xC4\x04\x55\x8B\x6B\x04\x89\x6C\x24\x04\x8B\xEC\x81\xEC\x28\x01\x00\x00\x56\x57\x8B\x7B\x08"
			}
		}
		"Addresses"
		{
			"ThrillerTaunt"
			{
				"signature"	"ThrillerTaunt"
			}
		}
		"Offsets"
		{
			"Offset_ThrillerTaunt"
			{
				"linux"		"2605"
				"windows"		"3092"
			}
			"Payload_ThrillerTaunt"
			{
				"linux"		"128"		// NEAR JO
				"windows"		"113"		// SHORT JNO
			}
		}
	}
}

Last edited by Sreaper; 10-23-2022 at 02:09.
Sreaper is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 10-23-2022 , 16:40   Re: [TF2] No Thriller Taunt
Reply With Quote #145

Quote:
Originally Posted by Sreaper View Post
Might be your gamedata. The one on my server seems to be different than what's in the OP.
Odd.. Server crashes to desktop on startup when I use this gamedata. I still appreciate the response.
PC Gamer is offline
Br0k3nPh1LL1p
Junior Member
Join Date: Apr 2013
Location: Serbia, Belgrade
Old 12-03-2022 , 16:02   Re: [TF2] No Thriller Taunt
Reply With Quote #146

new offset for linux is 2621 (A3D) as of the 01-Dec-22 update
Br0k3nPh1LL1p is offline
nosoop
Veteran Member
Join Date: Aug 2014
Old 12-04-2022 , 02:51   Re: [TF2] No Thriller Taunt
Reply With Quote #147

I'll be submitting gamedata updates on the TF2Sanitizer repository; in the future keep an eye out for pull requests there.
It hasn't been merged at this time, but the current gamedata is available in this PR.
__________________
I do TF2, TF2 servers, and TF2 plugins.
I don't do DMs over Discord -- PM me on the forums regarding inquiries.
AlliedModders Releases / Github / TF2 Server / Donate (BTC / BCH / coffee)

Last edited by nosoop; 05-07-2023 at 05:35.
nosoop is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 12-04-2022 , 05:27   Re: [TF2] No Thriller Taunt
Reply With Quote #148

Thanks nosoop!
PC Gamer is offline
Mikusch
AlliedModders Donor
Join Date: Oct 2019
Location: Germany
Old 04-23-2024 , 16:55   Re: [TF2] No Thriller Taunt
Reply With Quote #149

I have made a SourceScramble manager config that mirrors this plugin's functionality: https://github.com/Mikusch/SourceScramble-Patches

If you're only looking to block the thriller taunt, I recommend switching to this.
__________________
Mikusch is offline
Reply



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 17:00.


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