1) Appear 2 blocks higher than needed (it could be only 1 block change necessary but I think thats right)
2) Become stuck in a block if there is blocks above the target player (primary caused by spawning on a crouched player)
This can be fixed very simiply with some modifications to line 245
http://code.google.com/p/pyspades/sourc ... uad.py#245
Something like this will fix the first problem;
- Code: Select all
spawnLoc = self.get_follow_location(random.choice(live_members))
spawnLoc.z+=2 # Move the player down 2 blocks to the proper location
self.set_location(spawnLoc)
(even better would be to wait for the player's position data to be updated from the client and to spawn on that exact location, but that is a lot more work and a bit unnecessary huh)
For the second problem you would need to set the player's animation to crouched.
Don't exactly know how to do that, but I know you need to send an animation packet with firstByte >> 6 == 1.
I'll leave that to the experts ;)
Anyway this fix is quick and I hope you can implement it!