AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   How to SetParent (https://forums.alliedmods.net/showthread.php?t=261708)

Chdata 02-17-2017 17:52

Re: How to SetParent
 
Quote:

Originally Posted by Mitchell (Post 2495898)
I have a work example in my WeaponAttachementAPI:
https://github.com/MitchDizzle/Weapo...I.sp#L102-L111
I use it to find the end of a player's barrel by parenting the same weapon model as a prop_dynamic to their player model and using setparentattachment on a info_target to get the abs position from.

https://github.com/Pelipoika/The-unf...tGaveMeAids.sp

Mitchell 02-17-2017 18:35

Re: How to SetParent
 
Quote:

Originally Posted by Chdata (Post 2496241)

Interesting, however what about csgo? If i recall they hid everything, at least the offsets, never messed with signatures before.

Pelipoika 02-17-2017 19:11

Re: How to SetParent
 
Quote:

Originally Posted by Mitchell (Post 2496246)
Interesting, however what about csgo? If i recall they hid everything, at least the offsets, never messed with signatures before.

Yeah you're fucked, i don't know how you would find those functions unless there's like some source code leak hidden somewhere

Mitchell 02-17-2017 19:17

Re: How to SetParent
 
Quote:

Originally Posted by Pelipoika (Post 2496251)
Yeah you're fucked, i don't know how you would find those functions unless there's like some source code leak hidden somewhere

pray that it doesn't happen to tf2 :o

Pelipoika 02-17-2017 19:19

Re: How to SetParent
 
Quote:

Originally Posted by Mitchell (Post 2496253)
pray that it doesn't happen to tf2 :o

It's ok https://github.com/LestaD/SourceEngine2007

EDIT: Actaully i've got the most recent CS:GO server.so with the symbols still there i think i can do this.

EDIT: !

Code:

Signature for CBaseAnimating__GetBonePosition:
55 8B EC 83 E4 F8 83 EC 30 56 57 8B F9 83 BF 9C 04 00 00 00 75 ? A1 ? ? ? ? 8B 30 8B 07 FF 50 18 8B 0D ? ? ? ? 50 FF 56 04 85 C0 74 ? 8B CF E8 ? ? ? ? 8B 87 9C 04 00 00
\x55\x8B\xEC\x83\xE4\xF8\x83\xEC\x30\x56\x57\x8B\xF9\x83\xBF\x9C\x04\x00\x00\x00\x75\x2A\xA1\x2A\x2A\x2A\x2A\x8B\x30\x8B\x07\xFF\x50\x18\x8B\x0D\x2A\x2A\x2A\x2A\x50\xFF\x56\x04\x85\xC0\x74\x2A\x8B\xCF\xE8\x2A\x2A\x2A\x2A\x8B\x87\x9C\x04\x00\x00

Signature for CBaseAnimating__LookupBone:
55 8B EC 56 57 8B F9 83 BF 9C 04 00 00 00 75 ? A1 ? ? ? ? 8B 30 8B 07 FF 50 18 8B 0D ? ? ? ? 50 FF 56 04 85 C0 74 ? 8B CF E8 ? ? ? ? 8B 8F 9C 04 00 00 85 C9 0F 84 ? ? ? ?
\x55\x8B\xEC\x56\x57\x8B\xF9\x83\xBF\x9C\x04\x00\x00\x00\x75\x2A\xA1\x2A\x2A\x2A\x2A\x8B\x30\x8B\x07\xFF\x50\x18\x8B\x0D\x2A\x2A\x2A\x2A\x50\xFF\x56\x04\x85\xC0\x74\x2A\x8B\xCF\xE8\x2A\x2A\x2A\x2A\x8B\x8F\x9C\x04\x00\x00\x85\xC9\x0F\x84\x2A\x2A\x2A\x2A


Neuro Toxin 02-21-2017 17:44

Re: How to SetParent
 
Windows had the symbols removed.

friagram 02-21-2017 19:24

Re: How to SetParent
 
Quote:

Originally Posted by Pelipoika (Post 2496254)
It's ok https://github.com/LestaD/SourceEngine2007

EDIT: Actaully i've got the most recent CS:GO server.so with the symbols still there i think i can do this.

EDIT: OWNED

Code:

Signature for CBaseAnimating__GetBonePosition:
55 8B EC 83 E4 F8 83 EC 30 56 57 8B F9 83 BF 9C 04 00 00 00 75 ? A1 ? ? ? ? 8B 30 8B 07 FF 50 18 8B 0D ? ? ? ? 50 FF 56 04 85 C0 74 ? 8B CF E8 ? ? ? ? 8B 87 9C 04 00 00
\x55\x8B\xEC\x83\xE4\xF8\x83\xEC\x30\x56\x57\x8B\xF9\x83\xBF\x9C\x04\x00\x00\x00\x75\x2A\xA1\x2A\x2A\x2A\x2A\x8B\x30\x8B\x07\xFF\x50\x18\x8B\x0D\x2A\x2A\x2A\x2A\x50\xFF\x56\x04\x85\xC0\x74\x2A\x8B\xCF\xE8\x2A\x2A\x2A\x2A\x8B\x87\x9C\x04\x00\x00

Signature for CBaseAnimating__LookupBone:
55 8B EC 56 57 8B F9 83 BF 9C 04 00 00 00 75 ? A1 ? ? ? ? 8B 30 8B 07 FF 50 18 8B 0D ? ? ? ? 50 FF 56 04 85 C0 74 ? 8B CF E8 ? ? ? ? 8B 8F 9C 04 00 00 85 C9 0F 84 ? ? ? ?
\x55\x8B\xEC\x56\x57\x8B\xF9\x83\xBF\x9C\x04\x00\x00\x00\x75\x2A\xA1\x2A\x2A\x2A\x2A\x8B\x30\x8B\x07\xFF\x50\x18\x8B\x0D\x2A\x2A\x2A\x2A\x50\xFF\x56\x04\x85\xC0\x74\x2A\x8B\xCF\xE8\x2A\x2A\x2A\x2A\x8B\x8F\x9C\x04\x00\x00\x85\xC9\x0F\x84\x2A\x2A\x2A\x2A


I asked for these sigs to be added to sm a few times, but paychonic said it is not useful.
Just like equipwearable.

404UserNotFound 02-21-2017 20:18

Re: How to SetParent
 
Quote:

Originally Posted by friagram (Post 2497337)
I asked for these sigs to be added to sm a few times, but paychonic said it is not useful.
Just like equipwearable.

How and why are bone-related things "not useful"? They'd be useful for someone recreating Gmod sandbox things who may or may not want to make some form of bone manipulation for TF2 (if that's even possible). A bone lookup would be great...but I guess you could just use HLMV to find the bone names. So I guess it makes sense as to why it wouldn't be useful.

Still, I want to mess with bones in a way similar to this:



yknow, like setting the bone position of the scouts arms so he's got like a 20 foot wingspan.

psychonic 02-21-2017 20:51

Re: How to SetParent
 
Quote:

Originally Posted by friagram (Post 2497337)
I asked for these sigs to be added to sm a few times, but paychonic said it is not useful.
Just like equipwearable.

I don't recall "paychonic" saying that, but it's very possible that it happened. If you want to submit a PR to add those to SDKTools with gamedata for the top few games, I'll be happy to review.

404UserNotFound 02-21-2017 22:31

Re: How to SetParent
 
Is paychonic your evil twin?

http://i.imgur.com/0yN3EiA.png


All times are GMT -4. The time now is 15:34.

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