ExileLootDrop/README.md

39 lines
1.1 KiB
Markdown
Raw Normal View History

2016-09-27 21:57:34 +00:00
# Exile Loot Drop - [Download](https://github.com/maca134/ExileLootDrop/releases)
2016-09-27 21:50:00 +00:00
A server mod/extension to replace the Exile loot drop function with a dll.
Examples:
2016-09-27 21:53:23 +00:00
2016-09-27 21:50:00 +00:00
Get single item (returns string so is backwards compatible with Exile):
2016-09-27 21:53:23 +00:00
```
2016-09-27 21:50:00 +00:00
_item = 'table' call ExileServer_system_lootManager_dropItem;
2016-09-27 21:53:23 +00:00
```
2016-09-27 21:50:00 +00:00
Get multiple items (returns an array of items, this is good for mission stuff):
2016-09-27 21:53:23 +00:00
```
2016-09-27 21:50:00 +00:00
_items = ['table', 10] call ExileServer_system_lootManager_dropItem;
2016-09-27 21:53:23 +00:00
```
2016-09-27 21:50:00 +00:00
To Install:
Run the mod on the server and stick the below into CfgExileCustomCode in you mission files
```
class CfgExileCustomCode
{
...
ExileServer_system_lootManager_dropItem = "\ExileLootDrop\ExileServer_system_lootManager_dropItem.sqf";
...
2016-09-27 21:51:00 +00:00
};
2016-09-27 21:56:30 +00:00
```
### Performance
2016-09-27 21:57:07 +00:00
ExileLootDrop.VR mission contains the original Exile method for loot and the original tables for testing
```
// SQF
'CivillianLowerClass' call ExileServer_system_lootManager_dropItem_sqf
// DLL
'CivillianLowerClass' call ExileServer_system_lootManager_dropItem_ext
```
2016-09-27 21:56:30 +00:00
![Performance](https://dl.dropboxusercontent.com/s/wpk6m54pivmk04g/9964d7ad-7f4f-46bf-b5c5-5c64b696f8c3.png)