Beispiel #1
0
        private void HandleModel(long uid, string modelName)
        {
            NetPlayer a = (NetPlayer)MainGame.dm.GetPlayerWithUID(uid);

            Console.WriteLine(a.Name);
            Console.WriteLine(modelName);
            switch (modelName)
            {
            case "Character_1_Model":
                a.model = MainGame.Char1Model;
                a.UpdateToCurrentModel();
                break;

            case "Character_2_Model":
                a.model = MainGame.Char2Model;
                a.UpdateToCurrentModel();
                break;
            }
        }
Beispiel #2
0
        internal void HandleNetPlayerWeaponSwitch(long UID, int index)
        {
            NetPlayer np = MainGame.dm.GetPlayerWithUID(UID) as NetPlayer;

            np.weaponIndex = index;
        }