Advertisement

Handling movement in MMORPG's

Started by August 20, 2002 06:34 PM
30 comments, last by black_mage_s 22 years, 4 months ago
quote: Original post by CGameProgrammer
Well, Kinslayer, it sounds like you''re sending the server the world position of the mouseclick, which isn''t a very good idea because then it necessitates verification, as you mentioned.

I would just send the server the 2D screen coordinates of the mouse click, and let it figure out where in the world the click corresponds to.


If you make a 3D game like Morrowind with mouse look (like all good games, eg the quake 3 based game), 2D coordinates are useless. Just make the client send a move packed with direction to the server, and make the client start moving. Then the server will update his position and send it back once every second to synchronize. A teleport hack won''t work, the server will just put the player back if he walked through an unpenetrable wall.
quote: Original post by CGameProgrammer
Eternal: The point is that the hacked client can send a world coordinate that''s way off-screen that the player couldn''t possibly see. But by sending only the screen coordinate of the mouseclick, no real hacking can be done.

Kinslayer says: ...if the client is hacked to teleport the player into an area where the player then tries to pick up an item from that area, the server on recieving a ''picking up item'' packet goes - ''wait a minute, there is no such item where the player is'' and takes appropriate action.

But the server wouldn''t need to do that if, instead of saying "pick up this item" you say "right-click at (340,156)" and if an item is there on the screen, the player picks it up. That way, no hacking can be done.


Impossible, only with isometric games without zoom.

In a real 3D world you can either send the direction vector or the desired destination. It doesn''t matter as direction is (new pos - current pos). The server would then walk the player. A teleport hack is then not possible.

The 3D to 2D conversion is a tiresome one done by 3D hardware. If you have 30 players can you do what a Geforce does in hardware, in software and then 30x as fast ? I don''t think so ...

This topic is closed to new replies.

Advertisement