[Script request] Height limiter (for hallway)
Posted: Tue Jun 25, 2013 2:42 am
I thought this would be amusing to add to Iceball and PABH suggested that I make a request for a Pyspades script.
There are 3 ways to play hallway (not counting griefing and all that stupid crap):
1. Charge the middle.
2. Dig through the sides.
3. Climb to the roof, run to the enemy base, and spawncamp.
The purpose of this script is to stop people doing #3 so easily - that is, they actually have to dig a tunnel to spawncamp.
So here's my idea...
Make the top 2 layers (0 and 1) impenetrable and fully solid. The lower one should contain something that looks like a sky. The upper one should have the colour of the highest block that isn't on these two layers.
You will have to modify the spawning "get Z coordinate" code to ignore the top 2 layers when it calculates its blocks.
For bonus points, you could clamp the Z (vertical) coordinate of the player to always be >= 2 + head_bbox_top_offset.
Sound good?
There are 3 ways to play hallway (not counting griefing and all that stupid crap):
1. Charge the middle.
2. Dig through the sides.
3. Climb to the roof, run to the enemy base, and spawncamp.
The purpose of this script is to stop people doing #3 so easily - that is, they actually have to dig a tunnel to spawncamp.
So here's my idea...
Make the top 2 layers (0 and 1) impenetrable and fully solid. The lower one should contain something that looks like a sky. The upper one should have the colour of the highest block that isn't on these two layers.
You will have to modify the spawning "get Z coordinate" code to ignore the top 2 layers when it calculates its blocks.
For bonus points, you could clamp the Z (vertical) coordinate of the player to always be >= 2 + head_bbox_top_offset.
Sound good?