vasyyshakov / zombiereloaded

Automatically exported from code.google.com/p/zombiereloaded
0 stars 0 forks source link

!zstuck feature #244

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Forgive me if a solution has been reached, but I was thinking of this on the 
way home.

a player could type !zstuck when they're stuck and the following could occur:

1.  ZR gets current position of player
2.  ZR slaps player (or nudges them)
    a.  if player's position remains the same, then player is stuck, if players position changes, then freeze them for 5 seconds as a penalty for trying to exploit the next part
3.  Get position of next closest player, wait 2 seconds, ensure that player's 
position has changed, and then teleport stuck player to that players previous 
position

Even if the above won't work, or is the wrong solution, I hope I stir up 
thoughts on making a !zstuck feature that can help players get unstuck

Original issue reported on code.google.com by ssbe...@gmail.com on 12 Jan 2011 at 5:29

GoogleCodeExporter commented 8 years ago
ZR already has the anti-stick feature, though it may trigger the bouncing props 
bug. We also might have a way to avoid that bug by hooking ShouldCollide 
instead of modifying collision settings directly. Wee need to spend some time 
experimenting with this before it's implemented.

Teleporting players to "safe" locations is risky since we can't know which 
places that are safe. I've seen some plugins that use tracing methods for 
finding free space in the map but that's also risky if you're teleported 
outside the map in a scenery area.

Focus on the root cause why players get stuck. There are two cases: stuck in 
props and stuck in other players. Players usually get stuck in eachother 
because of teleports. By default, ZR's anti-stick will fix this. Players stuck 
in props usually happen when turbo physics is on. Teleporting to spawn is the 
only safe fix for this at the moment.

Original comment by richard.helgeby@gmail.com on 16 Jan 2011 at 3:21