andrew269 (10-28-2015),denis200191 (10-28-2015),Kosmo (10-28-2015),Smoke (10-28-2015)
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-----//
Last edited by Mizzle420420; 10-28-2015 at 02:24 AM.
andrew269 (10-28-2015),denis200191 (10-28-2015),Kosmo (10-28-2015),Smoke (10-28-2015)
Is DayZ Stand alone still populated?
-Panda- (10-29-2015)
Thanks for this
Last edited by andrew269; 10-28-2015 at 06:15 PM.
Nice tutorial. @denis200191 will love this
-Panda- (10-29-2015)
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 }; }; };
Last edited by Mizzle420420; 11-01-2015 at 05:02 AM.
they Said that they optimized the game already