Python:
All of the python code below has been build for a Forgotten Hope 2(Battlefield 2 Modification) tournament. It can be activated by either the FH2 gameplayPlugin
script or can be activated by a config file. Which is usually the easier method for the mappers, since the plugin system requires a little knowledge about programming
where as the config system only requires the name of the plugin to execute it.
Most of the times it is not required to set any variables, therefore this hasnt been implemented. And if it is required it is usually easier to just edit the files themself.
Below is another bit of code, this sorts out the players of both sides and kicks people whom do not where the correct tags. Admins are excluded from this.
click here for the code
This is a experimental script, it allows the towing of objects in the battlefield 2 engine. It has to be limited to a vehicle per side as not to horribly stress the engine.
click here for the code