Esempio n. 1
0
        private void OnSpawnPlayer(Entity player)
        {
            DisableSelectClass(player);
            GSCFunctions.DisableWeaponPickup(player);
            player.SpawnedPlayer += new Action(() =>
            {
                GSCFunctions.DisableWeaponPickup(player);
                player.ClearPerks();
                player.TakeAllWeapons();
                AfterDelay(500, () =>
                {
                    player.GiveWeapon(os_primarywep);
                    player.SwitchToWeaponImmediate(os_primarywep);
                    player.GiveWeapon(os_secondarywep);
                });

                player.SetField("perkslot", new Vector3(-1, -1, -1));
            });
        }