Exemplo n.º 1
0
        public void ServerCmdToggleCamera(coGameConnection client)
            {
            string control;
            if (client.getControlObject() == client["player"])
                {
                ((coCamera)client["camera"]).setVelocity(new Point3F("0 0 0"));
                control = client["camera"];
                }
            else
                {
                ((coCamera)client["player"]).setVelocity(new Point3F("0 0 0"));
                control = client["player"];
                }
            client.setControlObject(control);

            console.Call("clientCmdSyncEditorGui");
            }
Exemplo n.º 2
0
 public void ServerCmdCycleWeapon(coGameConnection client, string direction)
     {
     ShapeBaseCycleWeapon(client.getControlObject(), direction);
     }
Exemplo n.º 3
0
        public void ServerCmdReloadWeapon(coGameConnection client)
            {
            coPlayer player = client.getControlObject();

            coItemData image = player.getMountedImage(iGlobal["$WeaponSlot"]);

            if (ShapeBaseShapeBaseGetInventory(player, image["ammo"]) == image["ammo.maxInventory"].AsInt())
                {
                return;
                }

            if (image > 0)
                WeaponImageClearAmmoClip(image, player, sGlobal["$WeaponSlot"].AsInt());
            }
Exemplo n.º 4
0
        public void ServerCmdUse(coGameConnection client, coItem data)
            {
            if (((coPlayer)client.getControlObject()).isObject())
                ((coPlayer)client.getControlObject()).call("use", data);

            }