☆Dying Dawn☆
- Joined
- Jan 30, 2012
- Messages
- 971
- Reaction score
- 727
Snippet to change the aim camera when wasPressed and wasReleased, basically when you're in TPS and you aim, the camera will change to FPS aim automatic and when you release the aim btn you will return to the TPS camera again i made this in a few mins, need more settings maybe when i get more time i will add the rest of the code like disable the switch fps to tps bottom / fix the back to TPS when you're in FPS mode
Lets look for this in AI_Player.cpp
And replace for this simple code
Lets look for this in AI_Player.cpp
bool oldAiming = m_isAiming;
if(g_toggle_aim->GetBool())
{
if(InputMappingMngr->wasPressed(r3dInputMappingMngr::KS_AIM))
m_isAiming = !m_isAiming;
}
else
{
m_isAiming = InputMappingMngr->isPressed(r3dInputMappingMngr::KS_AIM) || gamepadLeftTrigger > 0;
}
And replace for this simple code
bool oldAiming = m_isAiming;
if (InputMappingMngr->wasPressed(r3dInputMappingMngr::KS_AIM))
{
if (g_camera_mode->GetInt() == 0)
{
switchFPS_TPS();
}
m_isAiming = !m_isAiming;
}
else if (InputMappingMngr->wasReleased(r3dInputMappingMngr::KS_AIM))
{
if (g_camera_mode->GetInt()==2)
{
switchFPS_TPS();
}
m_isAiming = InputMappingMngr->isPressed(r3dInputMappingMngr::KS_AIM) || gamepadLeftTrigger > 0;
}
Last edited: