This addon for
SourceMod on a CS:S server provides a lot of bug fixes and great enhancements for the mg_piratewars map. It's a must-have for any serious Piratewars server, because it finally gets rid of all those annoying bugs and provides a much more elegant interface. The cannon- and boat-controls no longer enable upon stepping up to them, but upon press of the players USE button. This prevents them from activating accidentally, should a player run through the trigger zone. Also, if a player somehow moves or falls out of the cannon's or boat's control area, the controls immediately disable so that the player can move again.
The bug where players who die while driving a boat or controlling a cannon are stuck in spectator mode with their knife displayed (and still able to control the cannon/boat while dead), is also fixed. If a player dies like this, or even disconnects, there is no issue at all, and the same boat/cannon can immediately be used by another player again. The cannons also disable the moment the ship they are on starts to sink.
Furthermore, the plugin makes the rescue boats indestructible, and adds reverse-driving capability. It also makes the boats stop driving if a player leaves without having released his move buttons - previously, this caused the boats to simply keep on driving. Disabling the controls is just as easy as activating them - the player simply has to press his USE button once (and really, just once) again. No need to hammer it and the jump key anymore, hoping to get off.
Due to the buggy implementation of the game_ui entity, the setup this plugin provides is impossible to be created by mapping alone (Thanks to the famous game_ui deactivation crash). Thats why this plugin takes over a lot of the original game_ui functionality like freezing the player and taking his weapon, and executes these tasks much more reliably.
This whole principle may also be adapted for other maps that make use of the game_ui. All that is required is a trigger_multiple which the player has to touch in order to be able to activate the interface.
Forlix pure! #2 (funmaps) (92.51.140.185:27075) has been running this plugin for months - check it out if you want. The server is running piratewars almost 24/7.
Detailed features:
- Players start using cannons/boats only by pressing their USE button
- Interfaces disable reliably by pressing USE once again or moving/falling out of the control area
- Players dying or disconnecting while using an interface will no longer leave it behind unusuable
- No more accidental activations when running through a trigger
- No more stuck spectators "remote-controlling" their cannon/boat
- No more broken boats driving on and on without a driver
- No more stuck spectators unable to move if they died at the controls
- Cannons disable the moment the ship they're on starts to sink
- Rescue boats are made indestructible and can also drive backwards
- Hot-loading the plugin is possible, but it will only work after the next round-start
- Hint messages on how to use the controls are displayed upon first entering the control zone
- Multilanguage support for those messages - English and German phrase files are included
Changes in v1.29: (2009/12)
Configuration ConVars:
The plugin does not have any configuration options.
If there is anything you wish to change, please take a look at the - very well commented - source code, and make the modifications yourself.
forlix_piratewars_version
- Version tracking (don't modify this)
The plugin file (.smx) goes into "cstrike/addons/sourcemod/plugins" and the phrase-files go into "cstrike/addons/sourcemod/translations" with their corresponding sub-folders.
Get the most recent version at:
http://forlix.org/gameaddons/piratewars.shtml