Exemple #1
0
 public void ServerCmdSetEditorCameraPlayerThird(coGameConnection client)
 {
     ((coPlayer)client["player"]).setVelocity(new Point3F("0 0 0"));
     client.setControlObject(client["player"]);
     client.setFirstPerson(false);
     bGlobal["$isFirstPersonVar"] = false;
     console.Call("clientCmdSyncEditorGui");
 }
Exemple #2
0
 public void toggleFirstPerson(bool val)
 {
     if (val)
     {
         coGameConnection ServerConnection = "ServerConnection";
         ServerConnection.setFirstPerson(ServerConnection.isFirstPerson());
         //((coGameConnection) "ServerConnection").setFirstPerson(!((coGameConnection) "ServerConnection").isFirstPerson());
     }
 }
Exemple #3
0
        public void ArmorOnUnmount(coPlayerData datablock, coPlayer player, coVehicle vehicle, int node)
        {
            if (node != 0)
            {
                return;
            }

            player.mountImage(player["lastWeapon"], WeaponSlot, true, "");
            player.setControlObject("");

            if (!player["lastperson"].AsBool())
            {
                return;
            }

            coGameConnection client = player["client"];

            if (client.isObject())
            {
                client.setFirstPerson(player["lastperson"].AsBool());
            }
        }