DayZ Standalone SQF Tutorials and Resources: ClassNames - Objects and Bases
I'm going to start releasing some DayZ Standalone related resources that I've gathered and used for Scripting as well as a few tutorials. There really are not enough tutorials and resources online for this game related to SQF Scripting so I figured I might as well put some stuff together to help out DayZ Scripters.
Credits:
Reverse, Research, and Composition - Mizzle420420
Source - Bohemia Interactive Studios
What we have here is a list of 'ClassNames' (a name defined by the developers for a game item, object, or array).
These particular ClassNames are used in DayZ Standalone to identify objects, players, and items.
There are ClassNames called a 'Base' which are arrays that contain multiple other ClassNames of a given type.
I'm going to give you an example of how Bases work using the given Bases in the Resource Code below:
If I did a Search for 'FoodCanned' i would get only food cans.
If I searched for 'FoodItemBase' I would not only get 'FoodCanned' but every other Food inside 'FoodItemBase'.
To do a Search for ClassNames in SQF you do something like this generally:
_MiZ_obj = (allMissionObjects "FoodItemBase");
Here we are calling 'AllMissionObjects' (Which is an Engine Function that returns all objects in the mission) and then specifying only 'FoodItemBase'.
you can then go up the chain from there in this order:
allMissionObjects > InventoryBase > FoodItemBase > FoodCanned
Such as:
_MiZ_obj = (allMissionObjects "InventoryBase");
If you just wanted 'allMissionObjects' you would do:
_MiZ_obj = (allMissionObjects "");
You can also do this with indiviual item classnames for items like:
_MiZ_obj = (allMissionObjects "food_canpeaches");
I did not list every single Item ClassName (I focused on prominent Bases and frequently used ClassNames) because it would be a very large list, but they can easily be found Individually at DayZDB.com by going to DataBase and searching an item name.
Code:
//------Mizzle420420 DayZ Resources-----//
//------Start Objects and Bases-----//
allMissionObjects =
{
entities =
{
SurvivorBase
ZombieBase
TentMedium_Pitched
TentLarge_Pitched
TentCar_Pitched
};
LandVehicle =
{
V3S_Cargo
V3S_Chassis
land_mh_60wreck
Land_Mi8_Crashed
Land_UH1Y_Wreck
Land_Volha_police_DayZ
};
InventoryBase =
{
TentMedium_packed
TentLarge_backpack
TentCar_packed
ContainerBase
FixedContainer
AttachmentBase
BottleBase
EyeWearBase
BayonetBase
AxeBase
KnifeBase
BayonetBase
SeedItemBase
riflecore
pistolcore
MeleeItemBase
MagazineBase
AmmunitionItemBase
AmmunitionBoxItemBase
CraftingItemBase
ItemBook
MedicalItemBase
DrinksItemBase
FoodItemBase =
{
FoodCanned
FoodCanned_Closed
FruitBase
MeatBase
berrybase
};
ClothingBase =
{
BagBase
HeadgearBase
MaskBase
TopWearBase
BottomWearBase
FootwearBase
VestBase
GlovesBase
};
};
};
//------End Objects and Bases-----//
Is DayZ Stand alone still populated?
Great guide for the masses!
they Said that they optimized the game already