1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 08:47:17 +01:00

Expose the fuction used to request the client loaded modules.

This commit is contained in:
Sandu Liviu Catalin 2018-06-28 21:46:06 +03:00
parent 53b541ca60
commit 1e24f55e94
2 changed files with 15 additions and 0 deletions

View File

@ -1391,6 +1391,15 @@ void CPlayer::Redirect(const StackStrF & ip, Uint32 port, const StackStrF & nick
}
}
// ------------------------------------------------------------------------------------------------
void CPlayer::GetModuleList() const
{
// Validate the managed identifier
Validate();
// Send the request
_Func->GetPlayerModuleList(m_ID);
}
// ------------------------------------------------------------------------------------------------
void CPlayer::PlaySound(Int32 sound_id) const
{
@ -2714,6 +2723,7 @@ void Register_CPlayer(HSQUIRRELVM vm)
.Func(_SC("Unspectate"), &CPlayer::Unspectate)
.Func(_SC("Spectate"), &CPlayer::SetSpectator)
.Func(_SC("Redirect"), &CPlayer::Redirect)
.Func(_SC("GetModuleList"), &CPlayer::GetModuleList)
.Func(_SC("PlaySound"), &CPlayer::PlaySound)
.Func(_SC("AreasCollide"), &CPlayer::SetAreasCollide)
.Func(_SC("GetMsgPrefix"), &CPlayer::GetMessagePrefix)

View File

@ -746,6 +746,11 @@ public:
void Redirect(const StackStrF & ip, Uint32 port, const StackStrF & nick,
const StackStrF & server_pass, const StackStrF & user_pass);
/* --------------------------------------------------------------------------------------------
* Request a list of the modules loaded into the client session.
*/
void GetModuleList() const;
/* --------------------------------------------------------------------------------------------
* Retrieve the authority level of the managed player entity.
*/