![]() |
Position Modification When Updating a Map - 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: Resources (https://mirage-engine.uk/forums/forumdisplay.php?fid=49) +---- Thread: Position Modification When Updating a Map (/showthread.php?tid=1127) |
Position Modification When Updating a Map - William - 22-07-2007 Well, you might know that when you update a map and you walk, you sometimes get booted for position modification. This small addon will add a check: if the map is updating you cant move. Client Side Add this in the top of any module: Code: Public CanMoveNow As Byte In handledata, find "mapdone". In the bottom of that before Exit Sub, add: Code: CanMoveNow = YES Now anywere in Public Sub SendMap(), add: Code: CanMoveNow = NO Now search for: ' Check if player is trying to move Replace: Call CheckMovement with: Code: If CanMoveNow = YES Then Thats it! Re: Position Modification When Updating a Map - Robin - 24-12-2007 DFA Wrote:i was just looking thru these bugfixes...and i had a comment on this one Because that wouldn't work. If you know what you're doing, you could easily re-gain the lost FPS for this very much needed addition. DFA Wrote:and also... Because it can be at the top of any module. People at Mirage are not like the people you find at Elysium and Eclipse. Everyone who uses Mirage knows how to organise their own source. Not everyone uses modGlobals, they may find that it is more useful for them to put all their dynamic variable declares at the top of modGameLogic, or they may have their own module for this kind of thing. Please keep in mind that no-one here requires that kind of 'babying'. Re: Position Modification When Updating a Map - Rezeyu - 24-12-2007 It's still a pointless addition though. I mean, if you get an error while moving while mapping/map sending then... Just, stop, moving. Instead of stopping yourself with code, just.. refrain from pressing the arrow keys. Re: Position Modification When Updating a Map - Robin - 24-12-2007 Rezeyu Wrote:It's still a pointless addition though. It happens to any normal players who are on the map, and it also happens when you warp a moving player to yourself. It's a very much needed addition to stop an annoying bug. Re: Position Modification When Updating a Map - Rezeyu - 24-12-2007 Ah, I've never seen it before, but I would never map with another player near me, and sure as hell never warp them. Re: Position Modification When Updating a Map - Robin - 24-12-2007 I noticed when warping people around my game to show off the engine to sell it to them, that if they were moving they would get kicked for position modification so I fixed it already, but forgot to make a tutorial xD Re: Position Modification When Updating a Map - Robin - 25-12-2007 Well, you know what the Eclipse community was like. Elysium is only marginally better. Re: Position Modification When Updating a Map - Joost - 04-03-2008 If you want to make this check less, post the last part AFTER Code: If IsTryingToMove Then That way, the check'll only occur if someone's trying to move + can move. |