Use keyvalue to get weapon price, change void * to appropriate class names.

This commit is contained in:
Ruben Gonzalez
2017-08-28 10:17:12 -04:00
parent 22033c21f2
commit 0e7a3b0173
5 changed files with 76 additions and 106 deletions
+4 -8
View File
@@ -13,6 +13,10 @@
{
"#default"
{
"Keys"
{
"PriceKey" "in game price"
}
"Offsets"
{
// Offset of szClassName in CCSWeaponData, szDefaultName is @ 140 which returns the default weapon class for the loadoutslot ignoring the users inventory.
@@ -150,14 +154,6 @@
"windows" "\x85\xC9\x75\x2A\x33\xC0\xC3\xE8\x2A\x2A\x2A\x2A\x8B"
"linux" "\x55\x89\xE5\x83\xEC\x18\x8B\x45\x08\x85\xC0\x74\x2A\x89\x04\x24"
}
//In windows this is to inlined code.
//It is within GetCCSWeaponData
"GetCCSWeaponDataFromDef"
{
"library" "server"
"windows" "\x8B\x01\x56\x8B\x35\x2A\x2A\x2A\x2A\xFF\x10\x0F\xB7\xC0\xB9\x2A\x2A\x2A\x2A\x50\xFF\x56\x08\x5E\xC3"
"linux" "\x55\x31\xC0\x89\xE5\x53\x83\xEC\x14\x8B\x55\x08\x85\xD2"
}
}
}