Перейти к содержимому
View in the app

A better way to browse. Learn more.

Zloplay community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Опубликовано:
Um... it might be... I'll ask Apadayo about it. But it should be able to, just need to figure out how to save the position

Ehhh you mean like print the viewpos/player origin?

Yeah but instead of printing it, save it and then call the load off the save point.

Опубликовано:
-ThePlayer":3q9i5yna]
Um... it might be... I'll ask Apadayo about it. But it should be able to, just need to figure out how to save the position

createspawn? isn't it ? in mapedit.cs

That changes the spawnpoints so that if one is inside of a bunker you can remove the selected one and add it back again... Hasn't been implemented yet.

Опубликовано:
I don't know if it's possible, ask DUKIP :P

If you don't know it, why do you post this?

 

Just get the player's position from the entity's field origin and save in a dictionary.

Опубликовано:

do you need help {is this like the mw2 mod where you saved a position and spawned by not using tkins}

Опубликовано:
  • Автор
do you need help {is this like the IW4 mod where you saved a position and spawned by not using tkins}

Yea, its like you save the position by doing a certain thing (like pressing the knife button twice), then load that exact position by doing something (like pressing the use key twice).

Опубликовано:

this isn't possible. but you can do elevator just little difference that it won't load and save position it will just shift you to another elevator.

if you don't know to do it wait for mine TuTorial Making Mapedits,Elevators

i post it soon as possible because atm i don't get time to do it.

Опубликовано:
Basically \setviewpos.

But that just views your pos...

No, it sets it!

 

Edit: Anyways, I coded one.

Download: Position.auto.dll

Source:

//momo5502 is still learning C# 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using InfinityScript;

namespace Position
{

   public class Position : BaseScript
   {
       public Position()
           : base()
       {
           Log.Write(LogLevel.Info, "Momo5502's Save/Load Position Plugin loaded!");

           PlayerConnected += new Action(entity =>
           {
               var elem = HudElem.CreateFontString(entity, "objective", 1.5f);
               elem.SetPoint("BOTTOMCENTER", "BOTTOMCENTER");
               elem.SetText("Save position: ^3[{+actionslot 6}]^7 | Load position: ^3[{+actionslot 3}]^7");

               entity.Call("notifyonplayercommand", "save", "+actionslot 6");
               entity.Call("notifyonplayercommand", "load", "+actionslot 3");

               float X = 0;
               float Y = 0;
               float Z = 0;

               entity.OnNotify("save", (player) =>
               {

                   X = (player.Origin.X);
                   Y = (player.Origin.Y);
                   Z = (player.Origin.Z);

                   entity.Call("playlocalsound", "ui_mp_nukebomb_timer");
                   entity.Call("iprintlnbold", "Position saved to: " + player.Origin);

               });

               entity.OnNotify("load", (player) =>
               {
                   if (X != 0 && Y != 0 && Z != 0)
                   {
                       entity.Call("setorigin", new Vector3(X, Y, Z));
                       entity.Call("playlocalsound", "copycat_steal_class");
                       entity.Call("iprintlnbold", "Position loaded to: " + player.Origin);
                   }
                   else
                   {
                       entity.Call("iprintlnbold", "Save a position first!");
                   }
               });

           });
       }
   }
}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Гость
Ответить в тему...

Сейчас на странице 0

  • Нет пользователей, просматривающих эту страницу

Важная информация

Используя этот сайт, вы соглашаетесь Условия использования.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.