- How long you been coding/hacking?
- 10+ years
- Coding Language
- C#
Hello!
I am not very familiar with the source engine, but I wrote my first external cheat and have been using it with great success for over a year now. It's written in C#. I have had no issues at all so far implementing all the features I want, except for one, which is the spectator list.
My understanding is, when a entity is dead and spectating another entity, (entityPtr + NetVars.hObserverTarget) should be a pointer to the entity being spectated. So I started a bot game with two accounts on where one is spectating the other. Below is a print of my findings:
Here, Client A is spectating BOT Shawn
As you can see, from my understanding of the hObserverTarget, it should be set to 1805786384, but it's not. Then I switched Client A to spectating Client B. Here is the result:
Here I am expecting the Target to be 1065779360, but it's not.
What am I doing wrong? What exactly is the hObserverTarget pointer pointing at?
Thanks in advance!
I am not very familiar with the source engine, but I wrote my first external cheat and have been using it with great success for over a year now. It's written in C#. I have had no issues at all so far implementing all the features I want, except for one, which is the spectator list.
My understanding is, when a entity is dead and spectating another entity, (entityPtr + NetVars.hObserverTarget) should be a pointer to the entity being spectated. So I started a bot game with two accounts on where one is spectating the other. Below is a print of my findings:
Here, Client A is spectating BOT Shawn
Code:
ClientHandle: 696320000
EntityList: 81394644
Index: 0 Pointer: 338344400 Name: N/A Target: 2
Index: 1 Pointer: 1065779360 Name: ClientB Target: -1
Index: 2 Pointer: 1791324288 Name: ClientA Target: 10551307
Index: 3 Pointer: 1397221184 Name: Mark Target: -1
Index: 5 Pointer: 1719517520 Name: Nick Target: -1
Index: 6 Pointer: 1530143856 Name: Dean Target: -1
Index: 7 Pointer: 985699936 Name: Henry Target: -1
Index: 8 Pointer: 1512817888 Name: Doug Target: -1
Index: 9 Pointer: 1811396560 Name: Scott Target: -1
Index: 10 Pointer: 1424954528 Name: Dustin Target: -1
Index: 11 Pointer: 1805786384 Name: Shawn Target: -1
Code:
ClientHandle: 696320000
EntityList: 81394644
Index: 0 Pointer: 338344400 Name: N/A Target: 2
Index: 1 Pointer: 1065779360 Name: ClientB Target: -1
Index: 2 Pointer: 1791324288 Name: ClientA Target: 50069505
Index: 3 Pointer: 1397221184 Name: Mark Target: -1
Index: 5 Pointer: 1719517520 Name: Nick Target: -1
Index: 6 Pointer: 1530143856 Name: Dean Target: -1
Index: 7 Pointer: 985699936 Name: Henry Target: -1
Index: 8 Pointer: 1512817888 Name: Doug Target: -1
Index: 9 Pointer: 1811396560 Name: Scott Target: -1
Index: 10 Pointer: 1424954528 Name: Dustin Target: -1
Index: 11 Pointer: 1805786384 Name: Shawn Target: -1
What am I doing wrong? What exactly is the hObserverTarget pointer pointing at?
Thanks in advance!