![]() |
Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
|
Static Private Member Functions | |
| static void | ApplyAttributes (ItemBase item, PlayerSpawnAttributesData attributes) |
| static EntityAI | CreateChildItem (EntityAI parent, string type) |
| static PlayerSpawnPreset | GetCharacterPresetByName (string presetName) |
| static PlayerSpawnPreset | GetRandomCharacterPreset () |
| static void | HandleNewItem (notnull ItemBase item, PlayerSpawnPresetItemSetBase data) |
| static bool | IsInitialized () |
| static bool | IsWeaponAndMagazineType (EntityAI parent, string type) |
| Used for exceptions in the system. | |
| static bool | LoadData () |
| static void | ProcessCargoEquipment (PlayerBase player, PlayerSpawnPreset data) |
| chooses one object from the array | |
| static bool | ProcessEquipmentData (PlayerBase player, PlayerSpawnPreset data) |
| equips character with the chosen preset | |
| static void | ProcessSlotsEquipment (PlayerBase player, PlayerSpawnPreset data) |
| iterates over each object and spawns alternatives | |
| static bool | SelectAndSpawnCargoSet (PlayerBase player, PlayerSpawnPreset data) |
| static bool | SelectAndSpawnSlotEquipment (PlayerBase player, PlayerSpawnPresetSlotData slotData) |
| selects weighted slot equipment variant | |
| static bool | SpawnComplexChildrenItems (EntityAI parent, notnull PlayerSpawnPresetItemSetBase data) |
| could spawn other items recursively. Parent item is guaranteed here. | |
| static bool | SpawnDiscreteCargoItemSet (PlayerBase player, PlayerSpawnPresetDiscreteCargoSetData csd) |
| static bool | SpawnDiscreteSlotItemSet (PlayerBase player, PlayerSpawnPresetDiscreteItemSetSlotData dis, int slotID) |
| static bool | SpawnSimpleChildrenItems (EntityAI parent, PlayerSpawnPresetItemSetBase data) |
Static Private Attributes | |
| static ref PlayerSpawnJsonData | m_Data = new PlayerSpawnJsonData() |
| static bool | m_Initialized |
Definition at line 1 of file cfgplayerspawnhandler.c.
|
inlinestaticprivate |
Definition at line 316 of file cfgplayerspawnhandler.c.
References Math::Lerp(), Math::RandomFloatInclusive(), Math::Round(), and ItemBase::SetQuantity().
Referenced by HandleNewItem(), and SpawnSimpleChildrenItems().
Definition at line 282 of file cfgplayerspawnhandler.c.
References Class::CastTo(), CFG_MAGAZINESPATH, g_Game, and Debug::Log().
Referenced by SpawnComplexChildrenItems(), and SpawnSimpleChildrenItems().
|
inlinestaticprivate |
Definition at line 60 of file cfgplayerspawnhandler.c.
References PlayerSpawnPreset::IsValid(), m_Data, and PlayerSpawnPreset::name.
|
inlinestaticprivate |
Definition at line 40 of file cfgplayerspawnhandler.c.
References PlayerSpawnPreset::IsValid(), m_Data, and PlayerSpawnPreset::spawnWeight.
Referenced by MissionBase::OnClientNewEvent().
|
inlinestaticprivate |
Definition at line 270 of file cfgplayerspawnhandler.c.
References ApplyAttributes(), PlayerSpawnPresetItemSetBase::attributes, Class::CastTo(), PlayerSpawnPresetItemSetBase::GetQuickbarIdx(), SpawnComplexChildrenItems(), and SpawnSimpleChildrenItems().
Referenced by SpawnComplexChildrenItems(), and SpawnDiscreteSlotItemSet().
|
inlinestaticprivate |
Definition at line 35 of file cfgplayerspawnhandler.c.
References m_Initialized.
Referenced by MissionBase::OnClientNewEvent().
Used for exceptions in the system.
Definition at line 354 of file cfgplayerspawnhandler.c.
References CFG_MAGAZINESPATH, and g_Game.
Referenced by SpawnComplexChildrenItems(), and SpawnSimpleChildrenItems().
|
inlinestaticprivate |
Definition at line 6 of file cfgplayerspawnhandler.c.
References ErrorEx, CfgGameplayHandler::GetPlayerSpawnGearPresetFiles(), m_Data, m_Initialized, and path.
Referenced by MissionBase::OnInit().
|
inlinestaticprivate |
chooses one object from the array
Definition at line 131 of file cfgplayerspawnhandler.c.
References PlayerSpawnPreset::HasDiscreteUnsortedItemSetsDefined(), Debug::Log(), and SelectAndSpawnCargoSet().
Referenced by ProcessEquipmentData().
|
inlinestaticprivate |
equips character with the chosen preset
Definition at line 72 of file cfgplayerspawnhandler.c.
References PlayerSpawnPreset::IsValid(), ProcessCargoEquipment(), and ProcessSlotsEquipment().
Referenced by MissionBase::OnClientNewEvent().
|
inlinestaticprivate |
iterates over each object and spawns alternatives
Definition at line 84 of file cfgplayerspawnhandler.c.
References PlayerSpawnPreset::attachmentSlotItemSets, PlayerSpawnPreset::HasAttachmentSlotSetsDefined(), Debug::Log(), and SelectAndSpawnSlotEquipment().
Referenced by ProcessEquipmentData().
|
inlinestaticprivate |
Definition at line 142 of file cfgplayerspawnhandler.c.
References PlayerSpawnPreset::discreteUnsortedItemSets, and SpawnDiscreteCargoItemSet().
Referenced by ProcessCargoEquipment().
|
inlinestaticprivate |
selects weighted slot equipment variant
Definition at line 99 of file cfgplayerspawnhandler.c.
References PlayerSpawnPresetDiscreteItemSetSlotData::IsValid(), and SpawnDiscreteSlotItemSet().
Referenced by ProcessSlotsEquipment().
|
inlinestaticprivate |
could spawn other items recursively. Parent item is guaranteed here.
Definition at line 201 of file cfgplayerspawnhandler.c.
References Class::CastTo(), PlayerSpawnPresetItemSetBase::complexChildrenTypes, CreateChildItem(), string::Empty, HandleNewItem(), IsWeaponAndMagazineType(), PlayerSpawnPresetComplexChildrenType::itemType, and Debug::Log().
Referenced by HandleNewItem(), and SpawnDiscreteCargoItemSet().
|
inlinestaticprivate |
Definition at line 166 of file cfgplayerspawnhandler.c.
References SpawnComplexChildrenItems(), and SpawnSimpleChildrenItems().
Referenced by SelectAndSpawnCargoSet().
|
inlinestaticprivate |
Definition at line 173 of file cfgplayerspawnhandler.c.
References string::Empty, InventorySlots::GetSlotName(), HandleNewItem(), PlayerSpawnPresetDiscreteItemSetSlotData::itemType, and Debug::Log().
Referenced by SelectAndSpawnSlotEquipment().
|
inlinestaticprivate |
Definition at line 234 of file cfgplayerspawnhandler.c.
References ApplyAttributes(), PlayerSpawnPresetItemSetBase::attributes, Class::CastTo(), CreateChildItem(), Empty, IsWeaponAndMagazineType(), Debug::Log(), PlayerSpawnPresetItemSetBase::simpleChildrenTypes, and PlayerSpawnPresetItemSetBase::simpleChildrenUseDefaultAttributes.
Referenced by HandleNewItem(), and SpawnDiscreteCargoItemSet().
|
staticprivate |
Definition at line 4 of file cfgplayerspawnhandler.c.
Referenced by GetCharacterPresetByName(), GetRandomCharacterPreset(), and LoadData().
|
staticprivate |
Definition at line 3 of file cfgplayerspawnhandler.c.
Referenced by IsInitialized(), and LoadData().