Improve freecam (renamed airbeak) mode
This commit is contained in:
parent
079ddb7d34
commit
b64f07ffc4
@ -202,7 +202,7 @@ void SetPlayerMission(std::string& rootkey, std::string& name, std::string& id)
|
|||||||
|
|
||||||
void Game::FreeCam()
|
void Game::FreeCam()
|
||||||
{
|
{
|
||||||
uint delta_speed = freecam::speed * (CTimer::m_snTimeInMillisecondsNonClipped - CTimer::m_snPreviousTimeInMillisecondsNonClipped);
|
int delta_speed = freecam::speed * (CTimer::m_snTimeInMillisecondsNonClipped - CTimer::m_snPreviousTimeInMillisecondsNonClipped);
|
||||||
|
|
||||||
if (!freecam::init_done)
|
if (!freecam::init_done)
|
||||||
{
|
{
|
||||||
@ -262,7 +262,6 @@ void Game::FreeCam()
|
|||||||
|
|
||||||
float angle;
|
float angle;
|
||||||
Command<Commands::GET_CHAR_HEADING>(freecam::hped,&angle);
|
Command<Commands::GET_CHAR_HEADING>(freecam::hped,&angle);
|
||||||
|
|
||||||
pos.x += delta_speed * cos(angle * 3.14159f/180.0f);
|
pos.x += delta_speed * cos(angle * 3.14159f/180.0f);
|
||||||
pos.y += delta_speed * sin(angle * 3.14159f/180.0f);
|
pos.y += delta_speed * sin(angle * 3.14159f/180.0f);
|
||||||
pos.z += delta_speed* 2 * sin(freecam::tmouseY/3* 3.14159f/180.0f);
|
pos.z += delta_speed* 2 * sin(freecam::tmouseY/3* 3.14159f/180.0f);
|
||||||
@ -275,7 +274,7 @@ void Game::FreeCam()
|
|||||||
|
|
||||||
float angle;
|
float angle;
|
||||||
Command<Commands::GET_CHAR_HEADING>(freecam::hped,&angle);
|
Command<Commands::GET_CHAR_HEADING>(freecam::hped,&angle);
|
||||||
angle -= 90.0f;
|
angle -= 90;
|
||||||
|
|
||||||
pos.x += delta_speed * cos(angle * 3.14159f/180.0f);
|
pos.x += delta_speed * cos(angle * 3.14159f/180.0f);
|
||||||
pos.y += delta_speed * sin(angle * 3.14159f/180.0f);
|
pos.y += delta_speed * sin(angle * 3.14159f/180.0f);
|
||||||
|
@ -255,7 +255,7 @@ void Visual::Main()
|
|||||||
|
|
||||||
patch::SetPointer(0x589331, &health_bar);
|
patch::SetPointer(0x589331, &health_bar);
|
||||||
//patch::SetPointer(0x5890FC,&armour_bar);
|
//patch::SetPointer(0x5890FC,&armour_bar);
|
||||||
init = true;
|
init_patches = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
Ui::ColorPickerAddress("Armour bar", *(int*)0x5890FC, ImVec4(180,25,29,255));
|
Ui::ColorPickerAddress("Armour bar", *(int*)0x5890FC, ImVec4(180,25,29,255));
|
||||||
|
Loading…
Reference in New Issue
Block a user