Ducking, shooting vehicle occupants and weapon fixes

This commit is contained in:
eray orçunus
2020-06-20 16:23:32 +03:00
parent e9e533b0cb
commit 0625954bb7
11 changed files with 240 additions and 94 deletions

View File

@@ -2336,6 +2336,14 @@ bool CPad::TargetJustDown(void)
return false;
}
bool CPad::DuckJustDown(void)
{
if (ArePlayerControlsDisabled())
return false;
return !!(NewState.LeftShock && !OldState.LeftShock);
}
bool CPad::JumpJustDown(void)
{
if ( ArePlayerControlsDisabled() )