Mirage Source
erm walking throu players ? - Printable Version

+- Mirage Source (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: Source Code Development (https://mirage-engine.uk/forums/forumdisplay.php?fid=51)
+----- Forum: Mirage Source 4 (Visual Basic 6) (https://mirage-engine.uk/forums/forumdisplay.php?fid=44)
+----- Thread: erm walking throu players ? (/showthread.php?tid=2725)



erm walking throu players ? - phelpsy - 10-04-2009

ok title says it all i would like to be able to let players walk throu other players and look in the source and couldnt figure out where the code is so
basicly anyone kno how i do it ?


Re: erm walking throu players ? - Labmonkey - 10-04-2009

look in the (i belive it is) canmove sub of the client. Take out where it checks if there is a player there. Do the same in the server playermove sub.


Re: erm walking throu players ? - Nean - 10-04-2009

It's because of the And optimization. Someone split up a statement that needed to be in an and statement, and instead split it into two if statements. I do believe it's in the CanMove Sub.


Re: erm walking throu players ? - KruSuPhy - 10-04-2009

I would make it where they can on a safe map, but not PK Map Tongue
Removing that would take the fun out of trapping and killing.


Re: erm walking throu players ? - phelpsy - 11-04-2009

it would seem i only had to take out:
Code:
' Check to see if a player is already on that tile
    For i = 1 To PlayersOnMapHighIndex
        If GetPlayerX(PlayersOnMap(i)) = X Then
            If GetPlayerY(PlayersOnMap(i)) = Y Then
                CheckDirection = True
                Exit Function
            End If
        End If
    Next
from CheckDirection function in the client.
server doesn't seem to have anything there to stop players walking through other players on the server.