1

Topic: Question about code: m_Vel.y

I want to create a flybot.

How to access to the m_Vel.y of my tee in /src/game/clients/components/controls.cpp ?

2

Re: Question about code: m_Vel.y

as you don't clarify your question i try to guess it...

try to doubleclick the .cpp file to open it and then search for it.

et voilà access... eZ isn't it?

#yemDX is a known troll

3 (edited by leandrowin 2015-05-19 03:29:32)

Re: Question about code: m_Vel.y

Pikotee wrote:

as you don't clarify your question i try to guess it...

try to doubleclick the .cpp file to open it and then search for it.

et voilà access... eZ isn't it?

How do i get the position of my tee?

Edit: maybe this is what i need XD m_pClient->m_LocalCharacterPos ? i am noob sorry i will try with that.

4

Re: Question about code: m_Vel.y

i opened a random controls.cpp file and saw this:

vec2 Velocity = m_pClient->m_PredictedChar.m_Vel;

and


m_pClient->m_aClients[LocalID].m_Predicted.m_Vel


you can try it wink

#yemDX is a known troll

5 (edited by leandrowin 2015-05-19 15:24:10)

Re: Question about code: m_Vel.y

Pikotee wrote:

i opened a random controls.cpp file and saw this:

vec2 Velocity = m_pClient->m_PredictedChar.m_Vel;

and


m_pClient->m_aClients[LocalID].m_Predicted.m_Vel


you can try it wink

Thanks you so much, it works big_smile

m_pClient->m_aClients[m_pClient->m_Snap.m_LocalClientID].m_Predicted.m_Vel.y