CoolDayZ Standalone SQF Tutorials and Resources: ClassNames - Objects and Bases

Posts 115 of 17 · Page 1 of 2
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-----//
Quote Originally Posted by Mizzle420420 View Post
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-----//
Thanks for guide buddy.
Is DayZ Stand alone still populated?
Quote Originally Posted by -Panda- View Post
Is DayZ Stand alone still populated?
Yeah, there are a lot of full 50 player servers, supposedly they are going to launch 75 player servers in 1 of the next 2 patches.
Quote Originally Posted by Mizzle420420 View Post


Yeah, there are a lot of full 50 player servers, supposedly they are going to launch 75 player servers in 1 of the next 2 patches.
They work on 75 player slots. Vehicles aren't even added yet i don't think?
Quote Originally Posted by Mizzle420420 View Post


Yeah, there are a lot of full 50 player servers, supposedly they are going to launch 75 player servers in 1 of the next 2 patches.
I believe it's in the patch after the next one as they wouldn't release it so soon unless it's a beta test.
Quote Originally Posted by -Panda- View Post
They work on 75 player slots. Vehicles aren't even added yet i don't think?
There are 2 Types of V3S Truck, Sedan Car coming next patch, First Helicopter coming by Christmas.
Quote Originally Posted by Mizzle420420 View Post


There are 2 Types of V3S Truck, Sedan Car coming next patch, First Helicopter coming by Christmas.
Oh Really? That's awesome. Now they just need to optimize the game!
Quote Originally Posted by -Panda- View Post
Oh Really? That's awesome. Now they just need to optimize the game!
True dat, Hicks claims they are working on a new renderer and optimization internally, but we shall see.
Quote Originally Posted by Mizzle420420 View Post


True dat, Hicks claims they are working on a new renderer and optimization internally, but we shall see.
Sounds great. Maybe my $30 wont be a waste after all! Cheers for this info! ^_^
they Said that they optimized the game already
Thanks for this

I Added some Enfusion Script and Other stuff Here if you could add @normanjaydatNigha



Code:
AttachmentBase
{
	Att_Optic_M4CarryHandle
	Att_Optic_BUIS
	OpticBase
	{
		Att_Optic_PUScope
		Att_Optic_ACOG
		Att_Optic_Kashtan
		PoweredOpticBase
		{
			Att_Optic_M68
			Att_Optic_M4T3NRDS
			Att_Optic_FNP45_MRD
			Att_Optic_Redpoint		
		}
		Optic2dBase
		{
			Att_Optic_Longrange
			Att_Optic_Hunting
			Att_Optic_Pistol
			Att_Optic_PSO1
			{
				Att_Optic_PSO11
			};
		};
	}; 
};

 InventoryBase
 {
	GrenadeBase
	{
		FlashGrenade
		GrenadeRGD5
		Grenade
		SmokeGrenadeBase
		{
			SmokeGrenadeBase
			SmokeGrenade_Red
			SmokeGrenade_Green
			SmokeGrenade_Yellow
			SmokeGrenade_White
			SmokeGrenade_RDG2Base
		};
		SmokeGrenade_RDG2Base
		{
		SmokeGrenade_RDG2_Black
		SmokeGrenade_RDG2_White
		};
	};
 };

 Strategic
 {
	 GrenadeExplosion
	 ImproGrenadeExplosion
	 FlashGrenadeExplosion
 };
 
 DefaultAmmo
 {
	LaserBombCore
	FuelExplosion
	MineCore	 
	TimeBombCore 
	BulletCore
	{
		BulletBase
	};
 };

//Enfusion Script Base:

 EN5C_Inventory_Base
 {	
	EN5C_Att_Optic_PSO11
	EN5C_Att_Optic_PSO1
	EN5C_Att_Optic_Pistol
	EN5C_Att_Optic_Hunting
	EN5C_Att_Optic_Longrange
	EN5C_Att_Optic_Kashtan
	EN5C_Att_Optic_PUScope
	EN5C_Att_Optic_ACOG
	EN5C_Att_Optic_M4CarryHandle
 	EN5C_Att_Optic_BUIS
	EN5C_Powered_Base
	{
		EN5C_Att_Optic_M4T3NRDS
		EN5C_Att_Optic_M68
		EN5C_Att_Optic_FNP45MRD
		EN5C_Att_Optic_Redpoint
	};

 EN5C_Inventory_Base
 {
	EN5C_Grenade_Base
	{
		EN5C_FlashGrenade
		EN5C_GrenadeRGD5
		EN5C_Grenade
		EN5C_SmokeGrenade_ColorBase
		{
			EN5C_SmokeGrenade_Red
			EN5C_SmokeGrenade_Yellow
			EN5C_SmokeGrenade_Green
			EN5C_SmokeGrenade_Purple
			EN5C_SmokeGrenade_White
		};
		EN5C_SmokeGrenadeRDG2_ColorBase
		{
			EN5C_SmokeGrenadeRDG2_Black
			EN5C_SmokeGrenadeRDG2_White
		};
	};
 };
Posts 115 of 17 · Page 1 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

Need help?