sdktools: Add EntityCollisionRulesChanged & SetEntityOwner natives (#1620)

* Add EntityCollisionRulesChanged & SetEntityOwner natives

* fix win build, and unpushed changes

* Fixed bad world loop

* Requested changes + csgo offsets

* small copy paste mistake

* Strip the debug log lines

* Tiny clean up in comments

* line

* <dvander> try again

* sdktools: add default Param for owner.

Co-authored-by: Kenzzer <[email protected]>
Co-authored-by: Kyle Sanderson <[email protected]>
This commit is contained in:
Benoist
2021-11-21 23:03:35 -08:00
committed by GitHub
co-authored by Kenzzer Kyle Sanderson
parent 4e4c2a7bb0
commit b38c9824fe
10 changed files with 196 additions and 54 deletions
+7 -6
View File
@@ -181,12 +181,6 @@
"linux64" "\x55\x48\x89\xE5\x41\x57\x41\x56\x49\x89\xF6\x41\x55\x41\x54\x49\x89\xCC\x53"
"mac64" "\x55\x48\x89\xE5\x41\x57\x41\x56\x41\x55\x41\x54\x53\x48\x81\xEC\x88\x01\x00\x00\xF3\x0F\x11\x85\x8C\xFE\xFF\xFF"
}
"SetCollisionGroup"
{
"library" "server"
"windows" "\x55\x8B\xEC\x53\x8B\xD9\x56\x57\x8B\x7D\x08\x39\xBB\x54\x01\x00\x00\x74\x40\x80\x79\x58\x00\x74"
"linux" "\x55\x89\xE5\x83\xEC\x18\x89\x5D\xF8\x8B\x5D\x08\x89\x75\xFC\x8B\x75\x0C\x39\xB3\x5C\x01\x00\x00"
}
}
}
@@ -248,6 +242,13 @@
}
"Offsets"
{
"SetOwnerEntity"
{
"windows" "19"
"linux" "20"
"linux64" "20"
"mac64" "20"
}
"GiveNamedItem"
{
"windows" "458"
-6
View File
@@ -86,12 +86,6 @@
"linux" "@_ZN17CBaseEntityOutput10FireOutputE9variant_tP11CBaseEntityS2_f"
"mac" "@_ZN17CBaseEntityOutput10FireOutputE9variant_tP11CBaseEntityS2_f"
}
"SetCollisionGroup"
{
"library" "server"
"windows" "\x55\x8b\xec\x53\x8b\x5d\x08\x56\x57\x8b\xf9\x39\x9f\xe0\x01\x00\x00\x74\x4f\x8b"
"linux" "@_ZN11CBaseEntity17SetCollisionGroupEi"
}
}
}
-15
View File
@@ -37,21 +37,6 @@
}
}
/* CBaseEntity::SetCollisionGroup */
"#default"
{
"Signatures"
{
"SetCollisionGroup"
{
"library" "server"
"windows" "\x55\x8B\xEC\x56\x57\x8B\x7D\x08\x8B\xF1\x39\xBE\x2A\x2A\x00\x00\x74\x33"
"linux" "@_ZN11CBaseEntity17SetCollisionGroupEi"
/* Windows found by string "Warning, funcladder with blocked bottom point" in CFuncLadder::Spawn, this function has XRef to */
}
}
}
/* SetUserInfo data */
"#default"
{
+6
View File
@@ -27,6 +27,12 @@
"Offsets"
{
"SetOwnerEntity"
{
"windows" "17"
"linux" "18"
"mac" "18"
}
"GiveNamedItem"
{
"windows" "401"
@@ -120,6 +120,12 @@
{
"Offsets"
{
"SetOwnerEntity"
{
"windows" "19"
"linux" "20"
"mac" "20"
}
/* CTerrorPlayer::GiveNamedItem(char const*, int, bool, CBaseEntity*) */
"GiveNamedItem"
{
+6 -6
View File
@@ -16,6 +16,12 @@
{
"Offsets"
{
"SetOwnerEntity"
{
"windows" "17"
"linux" "18"
"mac" "18"
}
"GiveNamedItem"
{
"windows" "408"
@@ -127,12 +133,6 @@
"linux" "@_ZN17CBaseEntityOutput10FireOutputE9variant_tP11CBaseEntityS2_f"
"mac" "@_ZN17CBaseEntityOutput10FireOutputE9variant_tP11CBaseEntityS2_f"
}
"SetCollisionGroup"
{
"library" "server"
"windows" "\x55\x8B\xEC\x53\x8B\x5D\x08\x56\x57\x8B\xF9\x39\x9F\xF0\x01\x00\x00"
"linux" "@_ZN11CBaseEntity17SetCollisionGroupEi"
}
}
}
}