Initial 4.5 commit

This commit is contained in:
ChocoTaco1 2020-12-06 15:14:57 -05:00
commit 96f73b3aef
1166 changed files with 107707 additions and 0 deletions

View file

@ -0,0 +1,39 @@
// Tells the server what version of the DMP pack the client is using
// This is used primarily for the server logo on the loading screen
// As the server will skip showing the server logo image if a
// Version isnt detected
// Alternatively, this can also be used to debug aspects as the Pack version
// will be known to the server
$DMP::Version = 4.5;
// Client Only
addMessageCallback('MsgDMPVer', DMPReturn);
function DMPReturn()
{
commandToServer('ClientDMPVersion',$DMP::Version);
}
// Server Only
function serverCmdClientDMPVersion(%client, %version)
{
if(!%client.dmpVersion)
%client.dmpVersion = %version;
}
package dmpVersionCheck
{
function GameConnection::onConnect( %client, %name, %raceGender, %skin, %voice, %voicePitch )
{
parent::onConnect( %client, %name, %raceGender, %skin, %voice, %voicePitch );
messageClient(%client, 'MsgDMPVer');
}
};
// Prevent package from being activated if it is already
if (!isActivePackage(dmpVersionCheck))
activatePackage(dmpVersionCheck);