Dartlak
-
Posts
16 -
Joined
-
Last visited
Content Type
Profiles
Forums
Calendar
Tutorials
Downloads
Gallery
Files posted by Dartlak
-
Various new Commands and GUIs
By Dartlak in Alterations and small modifications
A plugin for Emergency 5/2016, providing some new commands. Mostly intended to be used by mod authors or mappers who want to create maps with separate parking spaces and stations. But most functions are also usable for normal maps - just install and activate the testmod.
New Commands
Turn siren, head-, blue-, and warninglights on and off If a vehicle is sent back to HQ, it waits until all crewmembers it came with entered the vehicle (they do automatically). Criminals and victims get handled automatically, too. If someone can't enter for some reason due to injuries or otherwise, they will be ignored. Boats and robots get loaded up automatically. When holding CTRL or STRG when sending vehicles back, crewmembers enter the vehicle, but the vehicle does not return to HQ. When a new vehicle gets ordered from the menu, the following happens: If a vehicle of the same type is already on the map and on the way to HQ, this one will get called. If this is not the case, a new vehicle will appear as usual. To make sure this works as it should, vehicles returning to HQ are not selectable. There's a new button above the minimap, which shows a list of all units on the map. When doubleclicking on a unit, the camera focuses on it, and, if possible, the unit will be selected. Selected units have a darker background. The coloured square shows the state of the unit (only used for vehicles at the moment). Green means it's ready for new orders (i.e. returning to HQ), yellow means it's in use. Red means destroyed, but this is not yet working correctly. It's possible to place parking spaces in the editor. Instead of returning to HQ, vehicles try to find a free parking space and park there. Special parking spaces for hospitals (unload victims) and prisons (unload criminals) are also available. There are a few of these parking spaces on the testmap. To ensure everything works correctly, automatisms were turned off. Sadly this is pretty annoying, but they don't work well the ambulance and the new ReturnToBase command.
The names of all new commands for mod authors:
user::ReturnToBase - Vehicle waits for crewmembers and searches parking space user::VehicleControlCommand - Shows a second row of commands to control lights and siren The names of the following commands should be self explanatory. These commands are available with the one above (user::VehicleControlCommand), and I recommend to only use that one. The following commands need some work to be able to use them normally:
user::BluelightsOffCommand user::BluelightsOnCommand user::HeadlightsOffCommand user::HeadlightsOnCommand user::SirenOffCommand user::SirenOnCommand user::WarninglightsOffCommand user::WarninglightsOnCommand The code for the plugin is available too, and should be documented reasonably well.
Supported Emergency 5/2016 version: 2.1.0
2,123 downloads
Updated