Browse Source

Add Windows gamedata

nosoop 4 years ago
parent
commit
51fd854dde
2 changed files with 9 additions and 2 deletions
  1. 1 1
      README.md
  2. 8 1
      gamedata/csrd.bot_taunt_randomizer.txt

+ 1 - 1
README.md

@@ -18,7 +18,7 @@ passed in then the plugin will create a taunt item and set the argument to that
 ## Dependencies
 
 * [stocksoup](https://github.com/nosoop/stocksoup)
-* [TF2 Item DB](https://github.com/nosoop/tf2idb) (personal fork)
+* [TF2 Econ Data](https://github.com/nosoop/SM-TFEconData)
 * [DynHooks](https://forums.alliedmods.net/showpost.php?p=2588686&postcount=589)
 
 ## A "CSRD Internal" Plugin

+ 8 - 1
gamedata/csrd.bot_taunt_randomizer.txt

@@ -14,7 +14,7 @@
 				{
 					"item_view"
 					{
-						// this is actually a pointer, but dhooks doesn't support setting pointers
+						// this is actually a pointer, but dynhooks doesn't support setting pointers
 						"type"	"int"
 					}
 				}
@@ -39,18 +39,25 @@
 		{
 			"CTFPlayer::PlayTauntSceneFromItem()"
 			{
+				// xref string "taunt is press and hold"
 				"library"		"server"
 				"linux"			"@_ZN9CTFPlayer22PlayTauntSceneFromItemEPK13CEconItemView"
+				"windows"		"\x55\x8B\xEC\x81\xEC\x0C\x01\x00\x00\x53\x8B\x5D\x08\x57"
 			}
 			"CTFPlayer::FindPartnerTauntInitiator()"
 			{
+				// xref string "%s looking for a partner taunt initiator."
 				"library"		"server"
 				"linux"			"@_ZN9CTFPlayer25FindPartnerTauntInitiatorEv"
+				"windows"		"\x55\x8B\xEC\xA1\x2A\x2A\x2A\x2A\x81\xEC\x20\x01\x00\x00"
 			}
 			"CTFPlayer::HandleTauntCommand()"
 			{
+				// find ::AcceptTauntWithPartner() via xref string "%s doing %s with initiator %s.\n"
+				// ::HandleTauntCommand() is single xref of function
 				"library"		"server"
 				"linux"			"@_ZN9CTFPlayer18HandleTauntCommandEi"
+				"windows"		"\x55\x8B\xEC\x83\xEC\x18\x57\x8B\xF9\xE8\x2A\x2A\x2A\x2A\x84\xC0\x0F\x84\x2A\x2A\x2A\x2A\x8B\x87\x8C\x1E\x00\x00"
 			}
 		}
 	}