Mirage Source

Free ORPG making software.
It is currently Wed May 22, 2024 5:45 am

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Fri Apr 10, 2009 7:39 pm 
Offline
Newbie
User avatar

Joined: Thu Mar 19, 2009 8:30 pm
Posts: 19
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 ?


Top
 Profile  
 
PostPosted: Fri Apr 10, 2009 7:53 pm 
Offline
Pro
User avatar

Joined: Sun Aug 05, 2007 2:26 pm
Posts: 547
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.

_________________
GIAKEN wrote:
I think what I see is this happening:

Labmonkey gets mod, everybody loves him, people find out his code sucks, he gets demoted, then banned, then he makes an engine called Chaos Engine.


Top
 Profile  
 
PostPosted: Fri Apr 10, 2009 8:11 pm 
Offline
Persistant Poster
User avatar

Joined: Thu Jul 24, 2008 6:42 am
Posts: 703
Google Talk: infectiousbyte@gmail.com
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.

_________________
Image
GIAKEN wrote:
Since I'm into men, not women

GIAKEN wrote:
I can't take these huge penises anymore! All that's left is shame! And blood


Top
 Profile  
 
PostPosted: Fri Apr 10, 2009 9:54 pm 
Offline
Knowledgeable

Joined: Sun Jan 13, 2008 5:59 pm
Posts: 107
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.


Top
 Profile  
 
PostPosted: Sat Apr 11, 2009 12:40 pm 
Offline
Newbie
User avatar

Joined: Thu Mar 19, 2009 8:30 pm
Posts: 19
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group