mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
* Move dze_supplyCrate and vein wrecks to CfgLoot Moves both the supply crates and vein wrecks to the CfgLoot tables so admins can customize. Also modifies the main add item statement to allow support for weapons, magazines and backpack refunding/spawning instead of hard coded magazines. Should be backwards compatible with the old style (I did test). * Remove unused _activatingPlayer variable * Rework
118 lines
2.7 KiB
C++
118 lines
2.7 KiB
C++
#include "LootDefines.hpp"
|
|
|
|
class CfgLoot
|
|
{
|
|
class Groups
|
|
{
|
|
//Not renamed yet
|
|
#define DZ_BP_VestPouch DZ_Czech_Vest_Pouch
|
|
#define DZ_BP_Patrol DZ_Patrol_Pack_EP1
|
|
#define DZ_BP_Assault DZ_Assault_Pack_EP1
|
|
#define DZ_BP_Survival DZ_TK_Assault_Pack_EP1
|
|
#define DZ_BP_Alice DZ_ALICE_Pack_EP1
|
|
#define DZ_BP_British DZ_British_ACU
|
|
#define DZ_BP_Czech DZ_CivilBackpack_EP1
|
|
#define DZ_BP_Coyote DZ_Backpack_EP1
|
|
|
|
#define ItemBloodbagAPos bloodBagAPOS
|
|
#define ItemBloodbagANeg bloodBagANEG
|
|
#define ItemBloodbagBPos bloodBagBPOS
|
|
#define ItemBloodbagBNeg bloodBagBNEG
|
|
#define ItemBloodbagABPos bloodBagABPOS
|
|
#define ItemBloodbagABNeg bloodBagABNEG
|
|
#define ItemBloodbagOPos bloodBagOPOS
|
|
#define ItemBloodbagONeg bloodBagONEG
|
|
|
|
#define ItemBloodTester bloodTester
|
|
#define ItemTransfusionKit transfusionKit
|
|
#define ItemBloodbagEmpty emptyBloodBag
|
|
|
|
// General groups
|
|
#include "Groups\Ammo.hpp"
|
|
#include "Groups\AmmoBox.hpp"
|
|
#include "Groups\Attachments.hpp"
|
|
#include "Groups\Medical.hpp"
|
|
#include "Groups\Generic.hpp"
|
|
#include "Groups\Trash.hpp"
|
|
#include "Groups\Consumable.hpp"
|
|
#include "Groups\ConsumableItems.hpp"
|
|
#include "Groups\Parts.hpp"
|
|
//DZE
|
|
#include "Groups\Weapons.hpp"
|
|
#include "Groups\Clothes.hpp"
|
|
#include "Groups\Backpacks.hpp"
|
|
#include "Groups\Wrecks.hpp"
|
|
|
|
// Points of interest
|
|
#include "Groups\CrashSite.hpp"
|
|
#include "Groups\CarePackage.hpp"
|
|
#include "Groups\InfectedCamp.hpp"
|
|
|
|
// Buildings
|
|
#include "CfgBuildingLoot.hpp"
|
|
|
|
// Zombies
|
|
#include "Groups\Zombies\Civilian.hpp"
|
|
#include "Groups\Zombies\Hunter.hpp"
|
|
#include "Groups\Zombies\Police.hpp"
|
|
#include "Groups\Zombies\Military.hpp"
|
|
#include "Groups\Zombies\Worker.hpp" //DZE
|
|
#include "Groups\Zombies\Suit.hpp" //DZE
|
|
#include "Groups\Zombies\Doctor.hpp" //DZE
|
|
#include "Groups\Zombies\Pilot.hpp" //DZE
|
|
|
|
#undef DZ_BP_VestPouch
|
|
#undef DZ_BP_Patrol
|
|
#undef DZ_BP_Assault
|
|
#undef DZ_BP_Survival
|
|
#undef DZ_BP_Alice
|
|
#undef DZ_BP_British
|
|
#undef DZ_BP_Czech
|
|
#undef DZ_BP_Coyote
|
|
|
|
#undef ItemBloodbagAPos
|
|
#undef ItemBloodbagANeg
|
|
#undef ItemBloodbagBPos
|
|
#undef ItemBloodbagBNeg
|
|
#undef ItemBloodbagABPos
|
|
#undef ItemBloodbagABNeg
|
|
#undef ItemBloodbagOPos
|
|
#undef ItemBloodbagONeg
|
|
|
|
#undef ItemBloodTester
|
|
#undef ItemTransfusionKit
|
|
#undef ItemBloodbagEmpty
|
|
};
|
|
|
|
class Buildings
|
|
{
|
|
class Default
|
|
{
|
|
zombieChance = 0.2;
|
|
minRoaming = 0;
|
|
maxRoaming = 2;
|
|
zombieClass[] =
|
|
{
|
|
// "zZombie_Base",
|
|
"z_hunter",
|
|
"z_teacher",
|
|
"z_suit1",
|
|
"z_suit2",
|
|
"z_worker1",
|
|
"z_worker2",
|
|
"z_worker3",
|
|
"z_villager1",
|
|
"z_villager2",
|
|
"z_villager3"
|
|
};
|
|
|
|
lootChance = 0;
|
|
lootGroup = "";
|
|
lootPos[] = {};
|
|
};
|
|
|
|
// Buildings
|
|
#include "CfgBuildingPos.hpp"
|
|
};
|
|
};
|