instant flag capture idea

Posts 1–15 of 20 · Page 1 of 2
instant flag capture idea
i was browsing through another base for another game because i was bored and found an awesome idea for a possible idea to do something like "Instant Flag Capture" or "Instant Intel Pickup"

basically the code i found looks like this, and i'll explain how it works via //

Code:
if (TeleCapture==1)
{

*(float*)(PTR_PLAYER + OFS_X) = 3631; //X Position of the flag
*(float*)(PTR_PLAYER + OFS_Y) = 4623; //Y Position of the flag
*(float*)(PTR_PLAYER + OFS_Z) = 945; //Z Position of the flag
}
basically the idea is to physically teleport to the flag, and loop it until you have enough captures. Now obviously the method above is Hard coded, but i'm sure with simple views of the classes, you could make it work for any map

as for the intel idea, same idea, just bounce to each one...


now for this to work, obviously Player Pointer wont work due to the large fact its just the Camera moving. If someone were to reverse the Player movement S2S functions, that'd work perfectly. Last i checked player movement ID was 100, because i was running around for awhile animationless when i'd spam it or give it random param's, i'd be doing random animations
This is for WarRock, I used to hack the game.. To get the coordinates of the flag positions,
we had to go ingame, go to the flag location, right next to the flag we needed to log out x - y - z postion, with my simple position logger.
It got saved to a text file, and thats how we teleported the player to the flag sides
Quote Originally Posted by R4v0r View Post
This is for WarRock, I used to hack the game.. To get the coordinates of the flag positions,
we had to go ingame, go to the flag location, right next to the flag we needed to log out x - y - z postion, with my simple position logger.
It got saved to a text file, and thats how we teleported the player to the flag sides
its not a WR base i was lookin at but yeah same idea
Quote Originally Posted by supercarz1991 View Post
its not a WR base i was lookin at but yeah same idea
Oh, my bad. It looks very similair to what we used to do at WarRock
Quote Originally Posted by R4v0r View Post

Oh, my bad. It looks very similair to what we used to do at WarRock
its probably the same idea
Quote Originally Posted by supercarz1991 View Post
its probably the same idea
Yup, I can make another logger of it for CA, if I got time
Quote Originally Posted by R4v0r View Post


Yup, I can make another logger of it for CA, if I got time
proobably wouldn't be hard
As I mentioned million times, you cant teleport the play anymore since the movement is done via velocity and not with direct absolute x,y,z values..
Quote Originally Posted by Ch40zz-C0d3r View Post
As I mentioned million times, you cant teleport the play anymore since the movement is done via velocity and not with direct absolute x,y,z values..
Will that sucks then :S , what about flage teleport to ur location ? it would be like looking on game string to find something related with flags then find pointer then reclass time XD ...

Ill try it
Quote Originally Posted by R3d_L1n3 View Post
Will that sucks then :S , what about flage teleport to ur location ? it would be like looking on game string to find something related with flags then find pointer then reclass time XD ...

Ill try it
Maybe MoveObject ?
I had tried this via CharacterFX class and it would teleport you to the pickup location of the flag, but it wouldn't "pick it up." My guess would be that you must also tell the server to pick up the flag.
Quote Originally Posted by arun823 View Post
I had tried this via CharacterFX class and it would teleport you to the pickup location of the flag, but it wouldn't "pick it up." My guess would be that you must also tell the server to pick up the flag.
I never had a real chance to test it since nobody plays CTF, however one time I tried it and there was no message sent to server
I think you just need to hook the function which traces to the flag and change the return value of the distance.
=> this means if you actually bring the flag to your flag a message will be sent to server.
there's a message in S2S that directly handles picking up your weapon, box cases, and flags which is how we did instant flag capture in CTF and the auto-weapon pickup when you run out of ammo. you'll be hard-pressed trying to guess what you need to send even if u find the right initial ID
Quote Originally Posted by noo4 View Post
there's a message in S2S that directly handles picking up your weapon, box cases, and flags which is how we did instant flag capture in CTF and the auto-weapon pickup when you run out of ammo. you'll be hard-pressed trying to guess what you need to send even if u find the right initial ID
Ive always thought s2s would be the answer for everything, that being said, you could use ObjectFlags to do it too
Quote Originally Posted by noo4 View Post
there's a message in S2S that directly handles picking up your weapon, box cases, and flags which is how we did instant flag capture in CTF and the auto-weapon pickup when you run out of ammo. you'll be hard-pressed trying to guess what you need to send even if u find the right initial ID
I was curious on how that Auto-Pickup worked. I tried a while back to figure it out. Was wondering on a way to sort through pickup items, the way you guys managed to do.
Posts 1–15 of 20 · Page 1 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us