ihelios Posted December 29, 2009 Author Share Posted December 29, 2009 Hey everyone,Would it be possible for me, to edit the source code, so players can go through each other? I don't want people blocking the entrance to some bridge. Or people blocking the door way to a room or something.. But I don't want people going through NPCs, can any tell me how to source code edit this?Thanks;-d Link to comment Share on other sites More sharing options...
SHADERS Posted December 29, 2009 Share Posted December 29, 2009 walk through attribute Link to comment Share on other sites More sharing options...
Ruins of Hell Posted December 29, 2009 Share Posted December 29, 2009 Just have a walkthrough attribute where you don't want people to block each other. Or, you could go into the source and find (client-side):```Function CanMove() As Boolean```And remove``` If Map(GetPlayerMap(MyIndex)).Tile(X, y).Type = TILE_TYPE_WALKTHRU Then Exit Function Else For I = 1 To MAX_PLAYERS If IsPlaying(I) Then If GetPlayerMap(I) = GetPlayerMap(MyIndex) Then If GetPlayerX(I) = X Then If GetPlayerY(I) = y Then CanMove = False Exit Function End If End If End If End If Next I End If```NOT TESTED, MAKE A BACKUP.Warning - while you were typing a new reply has been posted. You may wish to review your post.This is more win though. Link to comment Share on other sites More sharing options...
MasterBit13 Posted January 10, 2010 Share Posted January 10, 2010 @Soul:> Just have a walkthrough attribute where you don't want people to block each other. Or, you could go into the source and find (client-side):> > ```> Function CanMove() As Boolean> > ```> And remove> > ```> If Map(GetPlayerMap(MyIndex)).Tile(X, y).Type = TILE_TYPE_WALKTHRU Then> Exit Function> Else> For I = 1 To MAX_PLAYERS> If IsPlaying(I) Then> If GetPlayerMap(I) = GetPlayerMap(MyIndex) Then> If GetPlayerX(I) = X Then> If GetPlayerY(I) = y Then> CanMove = False> Exit Function> End If> End If> End If> End If> Next I> End If> > ```> NOT TESTED, MAKE A BACKUP.> > Warning - while you were typing a new reply has been posted. You may wish to review your post.> > This is more win though.There's a WalkThrough? Wow I feel like a noob! XD Link to comment Share on other sites More sharing options...
Squiddle Posted January 29, 2010 Share Posted January 29, 2010 Soul, not remove but, why not just change the false to true?``` If Map(GetPlayerMap(MyIndex)).Tile(X, y).Type = TILE_TYPE_WALKTHRU Then Exit Function Else For I = 1 To MAX_PLAYERS If IsPlaying(I) Then If GetPlayerMap(I) = GetPlayerMap(MyIndex) Then If GetPlayerX(I) = X Then If GetPlayerY(I) = y Then CanMove = True Exit Function End If End If End If End If Next I End If``` Link to comment Share on other sites More sharing options...
Ruins of Hell Posted January 29, 2010 Share Posted January 29, 2010 @Huntsman:> link=topic=55999.msg603926#msg603926 date=1264803106]> Soul, not remove but, why not just change the false to true?> > ```> If Map(GetPlayerMap(MyIndex)).Tile(X, y).Type = TILE_TYPE_WALKTHRU Then Exit Function Else For I = 1 To MAX_PLAYERS If IsPlaying(I) Then If GetPlayerMap(I) = GetPlayerMap(MyIndex) Then If GetPlayerX(I) = X Then If GetPlayerY(I) = y Then CanMove = True Exit Function End If End If End If End If Next I End If> > ```Because then you would waste unnecessary space and lose speed. Link to comment Share on other sites More sharing options...
deathtaker26 Posted February 15, 2010 Share Posted February 15, 2010 @Soul:> @Huntsman:> > > link=topic=55999.msg603926#msg603926 date=1264803106]> > Soul, not remove but, why not just change the false to true?> > > > ```> > If Map(GetPlayerMap(MyIndex)).Tile(X, y).Type = TILE_TYPE_WALKTHRU Then Exit Function Else For I = 1 To MAX_PLAYERS If IsPlaying(I) Then If GetPlayerMap(I) = GetPlayerMap(MyIndex) Then If GetPlayerX(I) = X Then If GetPlayerY(I) = y Then CanMove = True Exit Function End If End If End If End If Next I End If> > > > ```> > i could use this actualy so we don't have to keep setting down atributes where is this in that you guys are editing is it in modgamelogic?> Because then you would waste unnecessary space and lose speed. Link to comment Share on other sites More sharing options...
demon xxx x Posted February 21, 2010 Share Posted February 21, 2010 Why not try simply adding a timer and after 5 or 6 seconds the player would ghost through the other? It would be pretty nice to have. Link to comment Share on other sites More sharing options...
Mellico Posted March 26, 2010 Share Posted March 26, 2010 Why not try and make a push function instead? have it for like if he doesnt move in a few seconds the player image moves back x amount of twips in the direction your moving. Link to comment Share on other sites More sharing options...
Freakuser Posted March 26, 2010 Share Posted March 26, 2010 @Mellico:> Why not try and make a push function instead? have it for like if he doesnt move in a few seconds the player image moves back x amount of twips in the direction your moving.yEAH IT WOULD BE NICE. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now