Mirage Source
http://miragesource.net/forums/

erm walking throu players ?
http://miragesource.net/forums/viewtopic.php?f=193&t=5457
Page 1 of 1

Author:  phelpsy [ Fri Apr 10, 2009 7:39 pm ]
Post subject:  erm walking throu players ?

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 ?

Author:  Labmonkey [ Fri Apr 10, 2009 7:53 pm ]
Post subject:  Re: erm walking throu players ?

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.

Author:  Nean [ Fri Apr 10, 2009 8:11 pm ]
Post subject:  Re: erm walking throu players ?

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.

Author:  KruSuPhy [ Fri Apr 10, 2009 9:54 pm ]
Post subject:  Re: erm walking throu players ?

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

Author:  phelpsy [ Sat Apr 11, 2009 12:40 pm ]
Post subject:  Re: erm walking throu players ?

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.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/