This commit is contained in:
Matthew McConnell 2016-09-27 22:56:30 +01:00
parent 001269128f
commit 18f6606559
2 changed files with 5 additions and 39 deletions

View File

@ -31,4 +31,8 @@ class CfgExileCustomCode
ExileServer_system_lootManager_dropItem = "\ExileLootDrop\ExileServer_system_lootManager_dropItem.sqf";
...
};
```
```
### Performance
![Performance](https://dl.dropboxusercontent.com/s/wpk6m54pivmk04g/9964d7ad-7f4f-46bf-b5c5-5c64b696f8c3.png)

View File

@ -1,38 +0,0 @@
# Exile Loot Drop
A server mod/extension to replace the Exile loot drop function with a dll.
Examples:
Get single item (returns string so is backwards compatible with Exile):
```
_item = 'table' call ExileServer_system_lootManager_dropItem;
```
Get multiple items (returns an array of items, this is good for mission stuff):
```
_items = ['table', 10] call ExileServer_system_lootManager_dropItem;
```
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
```
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";
...
};
```
### Performance
![Performance](https://dl.dropboxusercontent.com/s/wpk6m54pivmk04g/9964d7ad-7f4f-46bf-b5c5-5c64b696f8c3.png)