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:
parent
53b541ca60
commit
1e24f55e94
@ -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)
|
||||
|
@ -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.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user