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 ?
You are not logged in. Please login or register.
Teeworlds Forum → Development → 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 ?
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?
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.
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
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
Thanks you so much, it works
m_pClient->m_aClients[m_pClient->m_Snap.m_LocalClientID].m_Predicted.m_Vel.y
Teeworlds Forum → Development → Question about code: m_Vel.y
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 3 official extensions. Copyright © 2003–2009 PunBB.