mirror of
https://github.com/rumourA/End-Touch-Fix.git
synced 2025-12-07 18:48:24 +00:00
Removed some redundant stuff and added signatures for csgo
This commit is contained in:
parent
16f2dd7cc6
commit
72e7dc7453
@ -1,23 +1,19 @@
|
|||||||
"Games"
|
"Games"
|
||||||
{
|
{
|
||||||
"#default"
|
"csgo"
|
||||||
{
|
{
|
||||||
"Addresses"
|
"Signatures"
|
||||||
{
|
{
|
||||||
"PhysicsMarkEntityAsTouchedAddress"
|
"PhysicsCheckForEntityUntouch"
|
||||||
{
|
{
|
||||||
"windows"
|
"windows" "\x55\x8B\xEC\x83\xEC\x08\x56\x8B\xF1\x8B\x86\xD0\x00\x00\x00"
|
||||||
{
|
"linux" "\x55\x89\xE5\x57\x56\x53\x83\xEC\x2C\x8B\x5D\x08\xC7\x44\x24\x04\x01\x00\x00\x00\x89\x1C\x24"
|
||||||
"signature" "PhysicsMarkEntityAsTouched"
|
|
||||||
}
|
|
||||||
|
|
||||||
"linux"
|
|
||||||
{
|
|
||||||
"signature" "PhysicsMarkEntityAsTouched"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
"cstrike"
|
||||||
|
{
|
||||||
"Signatures"
|
"Signatures"
|
||||||
{
|
{
|
||||||
"PhysicsCheckForEntityUntouch"
|
"PhysicsCheckForEntityUntouch"
|
||||||
@ -25,27 +21,6 @@
|
|||||||
"windows" "\x55\x8B\xEC\x51\x56\x8B\xF1\x8B\x86\x38\x03\x00\x00"
|
"windows" "\x55\x8B\xEC\x51\x56\x8B\xF1\x8B\x86\x38\x03\x00\x00"
|
||||||
"linux" "@_ZN11CBaseEntity28PhysicsCheckForEntityUntouchEv"
|
"linux" "@_ZN11CBaseEntity28PhysicsCheckForEntityUntouchEv"
|
||||||
}
|
}
|
||||||
|
|
||||||
"PhysicsMarkEntityAsTouched"
|
|
||||||
{
|
|
||||||
"windows" "\x55\x8B\xEC\x53\x8B\x5D\x08\x56\x8B\xF1\x3B\xF3"
|
|
||||||
"linux" "@_ZN11CBaseEntity26PhysicsMarkEntityAsTouchedEPS_"
|
|
||||||
}
|
|
||||||
|
|
||||||
"DisableTouchFuncs"
|
|
||||||
{
|
|
||||||
"windows" "\x80\x3D\x00\x00\x00\x00\x00\x75\x14\x53\x8B\xCE\xE8\x00\x00\x00\x00\x8B\xC7"
|
|
||||||
"linux" "@_ZN11CBaseEntity21sm_bDisableTouchFuncsE"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
"Offsets"
|
|
||||||
{
|
|
||||||
"OS"
|
|
||||||
{
|
|
||||||
"windows" "1"
|
|
||||||
"linux" "2"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -14,7 +14,7 @@ public Plugin myinfo =
|
|||||||
{
|
{
|
||||||
name = "Barebones Timer",
|
name = "Barebones Timer",
|
||||||
author = "rumour",
|
author = "rumour",
|
||||||
description = "This is just a very simple example to use with the EndTouchFix and does not account for tick fraction",
|
description = "This is just a very simple example and does not account for tick fraction",
|
||||||
version = "",
|
version = "",
|
||||||
url = ""
|
url = ""
|
||||||
};
|
};
|
||||||
|
|||||||
@ -7,11 +7,8 @@
|
|||||||
#pragma newdecls required
|
#pragma newdecls required
|
||||||
|
|
||||||
#define EFL_CHECK_UNTOUCH (1<<24)
|
#define EFL_CHECK_UNTOUCH (1<<24)
|
||||||
#define WINDOWS 1
|
|
||||||
|
|
||||||
Handle PhysicsCheckForEntityUntouch;
|
Handle PhysicsCheckForEntityUntouch;
|
||||||
Address PhysicsMarkEntityAsTouched;
|
|
||||||
int OS;
|
|
||||||
bool LateLoad;
|
bool LateLoad;
|
||||||
|
|
||||||
public Plugin myinfo =
|
public Plugin myinfo =
|
||||||
@ -32,10 +29,6 @@ public void OnPluginStart()
|
|||||||
SetFailState("Failed to load game_data");
|
SetFailState("Failed to load game_data");
|
||||||
}
|
}
|
||||||
|
|
||||||
OS = game_data.GetOffset("OS");
|
|
||||||
|
|
||||||
PhysicsMarkEntityAsTouched = game_data.GetAddress("PhysicsMarkEntityAsTouchedAddress");
|
|
||||||
|
|
||||||
StartPrepSDKCall(SDKCall_Entity);
|
StartPrepSDKCall(SDKCall_Entity);
|
||||||
if(!PrepSDKCall_SetFromConf(game_data, SDKConf_Signature, "PhysicsCheckForEntityUntouch"))
|
if(!PrepSDKCall_SetFromConf(game_data, SDKConf_Signature, "PhysicsCheckForEntityUntouch"))
|
||||||
{
|
{
|
||||||
@ -76,24 +69,10 @@ bool GetCheckUntouch(int client)
|
|||||||
|
|
||||||
public Action PostThink(int client)
|
public Action PostThink(int client)
|
||||||
{
|
{
|
||||||
int disable_touch_funcs;
|
|
||||||
|
|
||||||
if(OS == WINDOWS)
|
|
||||||
{
|
|
||||||
disable_touch_funcs = LoadFromAddress(PhysicsMarkEntityAsTouched + view_as<Address>(0x3430B2), NumberType_Int8);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
disable_touch_funcs = LoadFromAddress(PhysicsMarkEntityAsTouched + view_as<Address>(0x7E4064), NumberType_Int8);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!disable_touch_funcs)
|
|
||||||
{
|
|
||||||
if(GetCheckUntouch(client))
|
if(GetCheckUntouch(client))
|
||||||
{
|
{
|
||||||
SDKCall(PhysicsCheckForEntityUntouch, client);
|
SDKCall(PhysicsCheckForEntityUntouch, client);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return Plugin_Continue;
|
return Plugin_Continue;
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user