Save as parachute.py
This script disables fall damage for one team only for the first fall, which is to be used with parachuting spawns. This means that after parachuting in, you can still die from falling. There is also a random chance of being slightly injured when landing to simulate landing incorrectly. I have other ideas for things to add, I just need to figure out how to do it, or indeed if it is possible.
This script is enabled in the map metadata using the following extensions;
- Code: Select all
extensions = {
'parachute': True,
'parateam': 'GREEN_TEAM'/'BLUE_TEAM'
}
The spawns for players, bases and intel need to be set up manually, though, which may not be easy for someone unfamiliar with doing such a thing. I have set up my Normandie map for use with this script, so you might want to check out the map metadata found in the download in this post for an example;
viewtopic.php?f=67&t=531#p190473
Again, since I'm not a coder, I expect there are much easier and simpler ways to code what I have, and I've not tested it with more than 1 player so I don't know if it works properly. From what I've tested, though, it has seemed to do what I want it to do.