
05-21-2006, 10:08 PM
|
|
Graal Administration
|
Join Date: Jan 2000
Location: Admins
Posts: 11,693
|
|
|
The good thing with projectiles is that they are starting immediately on clientside, without worrying about lag. We could expand that so that projectile movement would be controlled via (gani-)script. That could cause some slowdown though when there are many projectiles at the same time, although syncing all those projectiles from serverside to clientside would cause lag/speed problems too.
The perfect solution would probably be:
- creation on clientside
- make it possible to delete the projectile on serverside, e.g. when the serverside detects that the player is cheating and is shooting without having bullets (in onPlayerShoots)
- make it optional to let the projectile be moved automatically, via gani script or controlled by serverside script only
- eventually synchronize those objects quicker, via UDP between server and client like in Graal3D, so that other people see the bullets earlier and there is less difference/lag between the serverside view and the clientside view |
|
|
|