Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conveyors can only have their movedir set to 2 in away missions. #833

Open
WJohn opened this issue Jul 14, 2014 · 2 comments
Open

Conveyors can only have their movedir set to 2 in away missions. #833

WJohn opened this issue Jul 14, 2014 · 2 comments

Comments

@WJohn
Copy link
Contributor

WJohn commented Jul 14, 2014

Fairly self-explanatory. Normally on the station, creating a conveyor and setting its direction (dir) will cause items to start moving in the direction (movedir). In away missions this is not the case, as conveyors that I have set to 4 (east) instead have a movedir of 2, even if they are literally copy pasted from the station and only have an ID change.

Movedir is not a variable normally set in the map maker as no conveyor piece uses it. It's generated when the game starts. It will be reset from whatever you edit it to if the lever is flipped.

Station:
http://i.imgur.com/9ezZMUR.png
Away mission:
http://i.imgur.com/cYA2zMh.png

@WJohn WJohn changed the title Treadmills can only have their movedir set to 2 in away missions. Conveyers can only have their movedir set to 2 in away missions. Jul 14, 2014
@WJohn WJohn changed the title Conveyers can only have their movedir set to 2 in away missions. Conveyors can only have their movedir set to 2 in away missions. Jul 14, 2014
@RemieRichards
Copy link
Contributor

I don't even see how this is possible:

/obj/machinery/conveyor/New(loc, newdir)
    ..(loc)
    if(newdir)
        dir = newdir
    switch(dir)
        if(NORTH)
            forwards = NORTH
            backwards = SOUTH
        if(SOUTH)
            forwards = SOUTH
            backwards = NORTH
        if(EAST)
            forwards = EAST
            backwards = WEST
        if(WEST)
            forwards = WEST
            backwards = EAST
        if(NORTHEAST)
            forwards = EAST
            backwards = SOUTH
        if(NORTHWEST)
            forwards = SOUTH
            backwards = WEST
        if(SOUTHEAST)
            forwards = NORTH
            backwards = EAST
        if(SOUTHWEST)
            forwards = WEST
            backwards = NORTH

/obj/machinery/conveyor/proc/setmove()
    if(operating == 1)
        movedir = forwards
    else
        movedir = backwards
    update()

@RemieRichards
Copy link
Contributor

if you want to map edit it, map edit it using the proper vars

eg:

dir = NORTH
forward = NORTH
backwards = SOUTH

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants