Skip to content

Conversation

Neproify
Copy link
Contributor

https://bugs.mtasa.com/view.php?id=9664

Usage: isPedReloadingWeapon()
Returns: bool

@qaisjp qaisjp added the enhancement New feature or request label Jul 2, 2017
return true;

return false;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be shortened down to the below code?

bool CClientPed::IsReloadingWeapon(void)
{
    return GetWeapon()->GetState() == WEAPONSTATE_RELOADING
}

lua_classfunction ( luaVM, "isReloadingWeapon", "isPedReloadingWeapon" );

lua_classvariable ( luaVM, "vehicle", OOP_WarpPedIntoVehicle, GetPedOccupiedVehicle );
lua_classvariable ( luaVM, "vehicleSeat", NULL, "getPedOccupiedVehicleSeat" );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing classvariable reloadingWeapon

@qaisjp
Copy link
Contributor

qaisjp commented Jul 4, 2017

Thanks for the pull request :)

Please consider the above suggestions.

@Necktrox Necktrox merged commit aad1089 into multitheftauto:master Feb 18, 2018
@patrikjuvonen patrikjuvonen added this to the 1.5.6 milestone Aug 7, 2018
@patrikjuvonen patrikjuvonen changed the title IsPedReloadingWeapon - new function (mantis 9664) 0009664: IsPedReloadingWeapon - new function Sep 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants