Go Back   UnKnoWnCheaTs - Multiplayer Game Hacks and Cheats > First-Person Shooters > Battlefield Series > Battlefield 2

- Sponsored Advertisement -
http://www.myfpscheats.com/

Welcome to the UnKnoWnCheaTs - Multiplayer Game Hacks and Cheats.
You have to register before you can post and see and access any of the advanced forum features, please click the register link to proceed to the registration form. To start viewing threads or posts, select a forum that you want to visit from the selection below.
Battlefield 2
hacks cheats tutorials source code
You are Unregistered, please register to gain Full access.    
Reply
 
Thread Tools

Player displacement
Old 03-25-2010, 01:28 PM   #1
Level 3

kath's Avatar

Join Date: Jan 2006
Posts: 106
Reputation: 1447
Rep Power: 90
kath -- if your rep is this high please leave the forum.kath -- if your rep is this high please leave the forum.kath -- if your rep is this high please leave the forum.kath -- if your rep is this high please leave the forum.kath -- if your rep is this high please leave the forum.kath -- if your rep is this high please leave the forum.kath -- if your rep is this high please leave the forum.kath -- if your rep is this high please leave the forum.kath -- if your rep is this high please leave the forum.kath -- if your rep is this high please leave the forum.
Points: 5,081, Level: 7
Points: 5,081, Level: 7 Points: 5,081, Level: 7 Points: 5,081, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Last Achievements
Player displacement

what is the best way to get where a players hitbox actually is when they are on a ground placed gun or anti air ..as the game displaces the body and the bones are in or on the actual gun or anti air weapon , what is the best way to get a hit spot of the person manning that gun or weapon?
kath is offline

Reply With Quote


Old 03-25-2010, 01:54 PM   #2


Roverturbo's Avatar

Join Date: Feb 2005
Posts: 5,035
Reputation: 92245
Rep Power: 1108
Roverturbo has a huge epeen!Roverturbo has a huge epeen!Roverturbo has a huge epeen!Roverturbo has a huge epeen!Roverturbo has a huge epeen!Roverturbo has a huge epeen!Roverturbo has a huge epeen!Roverturbo has a huge epeen!Roverturbo has a huge epeen!Roverturbo has a huge epeen!Roverturbo has a huge epeen!
Recognitions:
Members who have contributed financial support towards UnKnoWnCheaTs. Donation (?)
I am GOD? Hmm K. God
Points: 69,888, Level: 38
Points: 69,888, Level: 38 Points: 69,888, Level: 38 Points: 69,888, Level: 38
Activity: 19.5%
Activity: 19.5% Activity: 19.5% Activity: 19.5%
Last Achievements
You're trying to say you can not aim at and hit the head bone when they are on them objects? I have no problem aiming at player bones regardless of what they are using.
__________________


I've learned that something constructive comes from every defeat.

Sometimes i say things i shouldn't, and sometimes i say what other people are thinking.

Real programmer's don't document, if it was hard to write, it should be hard to understand.

First learn computer science and all the theory, next develop a programming style, then forget all that and just hack.

Roverturbo is online now

Reply With Quote

Old 03-25-2010, 01:57 PM   #3
UC Contributor

Freaky123's Avatar

Join Date: Sep 2009
Location: Netherlands
Posts: 730
Reputation: 18059
Rep Power: 223
Freaky123 Will always be a legend at UCFreaky123 Will always be a legend at UCFreaky123 Will always be a legend at UCFreaky123 Will always be a legend at UCFreaky123 Will always be a legend at UCFreaky123 Will always be a legend at UCFreaky123 Will always be a legend at UCFreaky123 Will always be a legend at UCFreaky123 Will always be a legend at UCFreaky123 Will always be a legend at UCFreaky123 Will always be a legend at UC
This is because you have 2 player info classes on the CPlayer, one for in a object like vehicle and one for normal walking etc.
The problem is that you need to use the second, in object, CPlayerInfo for getting the matrix to multiply with but not for the bones because that will return car bones...
__________________
Proud to be a hacker!
Programming languages I know: PHP, Javascript, XHTML, Flash Actionscript, c++
Also good at: MYSQL/Oracle databases, ERD, SQL-injection and XSS
Games I hack: Battlefield Heroes, Face of Mankind and Call of Duty MW2
Freaky123 is offline

Reply With Quote

Old 03-25-2010, 08:18 PM   #4
Level 3

kath's Avatar

Threadstarter
Join Date: Jan 2006
Posts: 106
Reputation: 1447
Rep Power: 90
kath -- if your rep is this high please leave the forum.kath -- if your rep is this high please leave the forum.kath -- if your rep is this high please leave the forum.kath -- if your rep is this high please leave the forum.kath -- if your rep is this high please leave the forum.kath -- if your rep is this high please leave the forum.kath -- if your rep is this high please leave the forum.kath -- if your rep is this high please leave the forum.kath -- if your rep is this high please leave the forum.kath -- if your rep is this high please leave the forum.
Points: 5,081, Level: 7
Points: 5,081, Level: 7 Points: 5,081, Level: 7 Points: 5,081, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Last Achievements
nm fixed , i was using the origin instead of the bone if they were in vehicles , silly me.

bone -> 50

Last edited by kath; 03-25-2010 at 08:39 PM.
kath is offline

Reply With Quote

Old 03-25-2010, 08:27 PM   #5
A Legend

Revolty's Avatar

Join Date: Nov 2008
Location: Sweden
Posts: 271
Reputation: 12592
Rep Power: 170
Revolty 's rep takes up 1 gig of server spaceRevolty 's rep takes up 1 gig of server spaceRevolty 's rep takes up 1 gig of server spaceRevolty 's rep takes up 1 gig of server spaceRevolty 's rep takes up 1 gig of server spaceRevolty 's rep takes up 1 gig of server spaceRevolty 's rep takes up 1 gig of server spaceRevolty 's rep takes up 1 gig of server spaceRevolty 's rep takes up 1 gig of server spaceRevolty 's rep takes up 1 gig of server spaceRevolty 's rep takes up 1 gig of server space
Smack-n-Bash Champion
Points: 9,681, Level: 11
Points: 9,681, Level: 11 Points: 9,681, Level: 11 Points: 9,681, Level: 11
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Last Achievements
Quote:
Originally Posted by Freaky123 View Post
This is because you have 2 player info classes on the CPlayer, one for in a object like vehicle and one for normal walking etc.
The problem is that you need to use the second, in object, CPlayerInfo for getting the matrix to multiply with but not for the bones because that will return car bones...
If you cast a PlayerControlObject to Soldier and access the skeleton you'd crash rather then returning a car bone..
Revolty is offline

Reply With Quote

Old 03-25-2010, 09:23 PM   #6


Roverturbo's Avatar

Join Date: Feb 2005
Posts: 5,035
Reputation: 92245
Rep Power: 1108
Roverturbo has a huge epeen!Roverturbo has a huge epeen!Roverturbo has a huge epeen!Roverturbo has a huge epeen!Roverturbo has a huge epeen!Roverturbo has a huge epeen!Roverturbo has a huge epeen!Roverturbo has a huge epeen!Roverturbo has a huge epeen!Roverturbo has a huge epeen!Roverturbo has a huge epeen!
Recognitions:
Members who have contributed financial support towards UnKnoWnCheaTs. Donation (?)
I am GOD? Hmm K. God
Points: 69,888, Level: 38
Points: 69,888, Level: 38 Points: 69,888, Level: 38 Points: 69,888, Level: 38
Activity: 19.5%
Activity: 19.5% Activity: 19.5% Activity: 19.5%
Last Achievements
Quote:
Originally Posted by kath View Post
yes rover and i have no problem aiming at the bones either , the problem is the player is not where the bones are when they sit in a gun etc

freaky do you meen through the view matrix ?

or object matrix 11 12 13 ?

going to try it now i will post results back.
I think he was trying to say you're accessing the player object instead of the player soldier.

Code:
string Player_Name;
BYTE unknown_3[4];
Class* Player_Object;
...   
FLOAT Zoom_1;
FLOAT Zoom_2;
Class* Player_Soldier;
CPlayer->Player_Soldier->Object_Information->Soldier_Skeleton3p->Matrices[#]



__________________


I've learned that something constructive comes from every defeat.

Sometimes i say things i shouldn't, and sometimes i say what other people are thinking.

Real programmer's don't document, if it was hard to write, it should be hard to understand.

First learn computer science and all the theory, next develop a programming style, then forget all that and just hack.

Roverturbo is online now

Reply With Quote

Old 03-25-2010, 11:15 PM   #7
Level 3

kath's Avatar

Threadstarter
Join Date: Jan 2006
Posts: 106
Reputation: 1447
Rep Power: 90
kath -- if your rep is this high please leave the forum.kath -- if your rep is this high please leave the forum.kath -- if your rep is this high please leave the forum.kath -- if your rep is this high please leave the forum.kath -- if your rep is this high please leave the forum.kath -- if your rep is this high please leave the forum.kath -- if your rep is this high please leave the forum.kath -- if your rep is this high please leave the forum.kath -- if your rep is this high please leave the forum.kath -- if your rep is this high please leave the forum.
Points: 5,081, Level: 7
Points: 5,081, Level: 7 Points: 5,081, Level: 7 Points: 5,081, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Last Achievements
thanks rover but it was my mistake i was checking if the player was in a vehicle then if he/she was i was aiming at the origin not the bone.
kath is offline

Reply With Quote
Reply  

  • Submit Thread to Digg
  • Submit Thread to del.icio.us
  • Submit Thread to StumbleUpon
  • Submit Thread to Google
  • Submit Thread to Facebook
  • Submit Thread to My Yahoo!
  • Submit Thread to MySpace
  • Submit Thread to Twitter
  • Submit Thread to Reddit



Tags
displacement, player
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT +1. The time now is 07:03 AM.