Raised This Month: $ Target: $400
 0% 

[PData] Vector


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 05-25-2011 , 13:27   [PData] Vector
Reply With Quote #1

How to get pdata vector?
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-25-2011 , 13:56   Re: [PData] Vector
Reply With Quote #2

Which pdata ?
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 05-25-2011 , 14:03   Re: [PData] Vector
Reply With Quote #3

offsets
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-25-2011 , 14:13   Re: [PData] Vector
Reply With Quote #4

I mean for which entity class and which offset/pdata ?
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 05-25-2011 , 14:15   Re: [PData] Vector
Reply With Quote #5

I want to get offset m_vecEnemyLKP (CBaseMonster)
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-25-2011 , 14:21   Re: [PData] Vector
Reply With Quote #6

Well, you gonna catch m_vecEnemyLKP.x, m_vecEnemyLKP.y, m_vecEnemyLKP.z, consider they are 3 different offsets, if you find m_vecEnemyLKP.x offset, just add 1 et 2 for the 2 other ones, then use get_pdata_float.

You can use this stock :

PHP Code:
get_pdata_vector(iEntityiOffsetFloat:flVector[], iLinuxDiff 5)
{
    for(new 
ii<3i++)
    {
        
flVector[i] = get_pdata_float(iEntityiOffset+iiLinuxDiff)
    }

__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 05-25-2011 at 14:23.
ConnorMcLeod is offline
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 05-25-2011 , 14:38   Re: [PData] Vector
Reply With Quote #7

Thanks
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
Reply



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

Forum Jump


All times are GMT -4. The time now is 07:25.


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