vblx import of custom objects

This commit is contained in:
Aaron Clark
2012-11-05 18:34:38 -06:00
parent 5a5ac0f867
commit f8681b1b5a
50 changed files with 549 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ _itemChance = [] + getArray (_config >> "itemChance");
{
private["_iPos2"];
_iPos2 = _obj modelToWorld _x;
_rnd = random 1;
_rnd = random 3;
//Place something at each position
if (player distance _iPos2 > 5) then {
if (_rnd < _lootChance) then {

View File

@@ -610,7 +610,7 @@ class cfgWeapons
displayName = "Use";
canDrop = 0;
muzzles[] = {"this"};
magazines[] = {"FoodBioMeat","ItemBandage","ItemHeatPack","PartWoodPile","PartFueltank","PartWheel","PartGeneric","PartEngine","PartVRotor","PartGlass","ItemWaterbottle","ItemWaterbottleUnfilled","ItemEpinephrine","ItemMorphine","ItemBloodbag","ItemAntibiotic","ItemPainkiller","ItemJerrycan","ItemGenerator","ItemTent","ItemSandbag","ItemTankTrap","ItemWire","FoodSteakRaw","TrashTinCan","ItemSodaCoke","ItemSodaPepsi","ItemSodaMdew","FoodEdible","FoodSteakCooked","FoodCanBakedBeans","FoodCanSardines","FoodCanFrankBeans","FoodCanPasta"};
magazines[] = {"FoodBioMeat","ItemZombieParts","ItemBandage","ItemHeatPack","PartWoodPile","PartFueltank","PartWheel","PartGeneric","PartEngine","PartVRotor","PartGlass","ItemWaterbottle","ItemWaterbottleUnfilled","ItemEpinephrine","ItemCocaineKilo","ItemGoldBar","ItemSilverBar","ItemCopperBar","ItemMorphine","ItemBloodbag","ItemAntibiotic","ItemPainkiller","ItemJerrycan","ItemOilBarrel","ItemGenerator","ItemTent","ItemSandbag","ItemTankTrap","ItemWire","FoodSteakRaw","TrashTinCan","ItemSodaCoke","ItemSodaPepsi","ItemSodaMdew","ItemSodaMdew","FoodEdible","FoodSteakCooked","FoodCanBakedBeans","FoodCanSardines","FoodCanFrankBeans","FoodCanPasta"};
modes[] = {"this"};
useAction = 0;
useActionTitle = "";
@@ -1227,6 +1227,101 @@ class CfgMagazines
picture = "\dayz_equip\textures\equip_soda_mdew_ca.paa";
descriptionShort = "$STR_EQUIP_NAME_37";
};
class ItemSodaRbull: ItemSodaCoke
{
displayName = "Soda Can (Red Bull)";
model = "\dayz_equip\models\soda_rbull.p3d";
picture = "\dayz_equip\textures\equip_soda_rbull_ca.paa";
descriptionShort = "$STR_EQUIP_NAME_37";
};
class ItemCocaineKilo: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = "Kilo of Cocaine";
model = "\ibr_drugs\ibr_cocaine-wpn.p3d";
picture = "\ibr_drugs\UI\gear_picture_coca_ca.paa";
descriptionShort = "Cocaine";
};
class ItemGoldBar: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = "Gold Bar";
model = "\dayz_equip\models\gold_bar.p3d";
picture = "\dayz_equip\textures\equip_bar_gold_CA.paa";
descriptionShort = "Gold Bar";
class ItemActions
{
class SplitBar
{
text = "1 Gold to 6 Silver";
script = "spawn player_SplitBars;";
use[] = {"ItemGoldBar"};
output[] = {"ItemSilverBar","ItemSilverBar","ItemSilverBar","ItemSilverBar","ItemSilverBar","ItemSilverBar"};
};
};
};
class ItemSilverBar: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = "Silver Bar";
model = "\dayz_equip\models\silver_bar.p3d";
picture = "\dayz_equip\textures\equip_bar_silver_CA.paa";
descriptionShort = "Silver Bar";
class ItemActions
{
class ReloadMag
{
text = "6 Silver to 1 Gold";
script = "spawn player_convertBars;";
use[] = {"ItemSilverBar","ItemSilverBar","ItemSilverBar","ItemSilverBar","ItemSilverBar","ItemSilverBar"};
output[] = {"ItemGoldBar"};
};
class SplitBar
{
text = "1 Silver to 6 Copper";
script = "spawn player_SplitBars;";
use[] = {"ItemSilverBar"};
output[] = {"ItemCopperBar","ItemCopperBar","ItemCopperBar","ItemCopperBar","ItemCopperBar","ItemCopperBar"};
};
};
};
class ItemCopperBar: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = "Copper Bar";
model = "\dayz_equip\models\copper_bar.p3d";
picture = "\dayz_equip\textures\equip_bar_copper_CA.paa";
descriptionShort = "Copper Bar";
class ItemActions
{
class ReloadMag
{
text = "6 Copper to 1 Silver";
script = "spawn player_convertBars;";
use[] = {"ItemCopperBar","ItemCopperBar","ItemCopperBar","ItemCopperBar","ItemCopperBar","ItemCopperBar"};
output[] = {"ItemSilverBar"};
};
};
};
class ItemZombieParts: CA_Magazine
{
scope = 2;
count = 1;
type = "(256 * 2)";
displayName = "Zombie Parts";
model = "\dayz_equip\models\zombie_parts_bag_v2.p3d";
picture = "\dayz_equip\textures\parts_bag_texture3c_CA.paa";
descriptionShort = "Zombie Parts in a Bag";
};
class ItemEpinephrine: CA_Magazine
{
scope = 2;
@@ -1319,6 +1414,17 @@ class CfgMagazines
};
};
};
class ItemOilBarrel: CA_Magazine
{
scope = 2;
count = 1;
// fuelQuantity = 20;
type = "(256 * 6)";
displayName = "Oil Barrel";
model = "\dayz_equip\models\oil_drum_model.p3d";
picture = "\dayz_equip\textures\equip_oil_drum_model_ca.paa";
descriptionShort = "210 litres of Oil in a Barrel";
};
class ItemJerrycan: CA_Magazine
{
scope = 2;
@@ -1504,6 +1610,15 @@ class CfgMagazines
};
class CfgVehicles
{
class Strategic;
class Vault: Strategic
{
scope = 2;
model = "\dayz_equip\models\safe1.p3d";
mapSize = 2;
displayName = "Vault";
vehicleClass = "Survival";
};
class NonStrategic;
class BuiltItems: NonStrategic{};
class TrapItems: NonStrategic{};
@@ -1792,6 +1907,16 @@ class CfgVehicles
init = "[(_this select 0),'cfgMagazines','PartGlass'] execVM '\z\addons\dayz_code\init\object_pickupAction.sqf';";
};
};
class WeaponHolder_ItemOilBarrel: WeaponHolderBase
{
scope = 2;
displayName = "Oil Barrel";
model = "\dayz_equip\proxy\oil_drum_model.p3d";
class eventHandlers
{
init = "[(_this select 0),'cfgMagazines','ItemOilBarrel'] execVM '\z\addons\dayz_code\init\object_pickupAction.sqf';";
};
};
class WeaponHolder_ItemJerrycan: WeaponHolderBase
{
scope = 2;

BIN
dayz_equip/models/banko.p3d Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
dayz_equip/models/safe1.p3d Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,78 @@
ambient[]={1,1,1,1};
diffuse[]={1,1,1,1};
forcedDiffuse[]={0,0,0,0};
emmisive[]={0,0,0,1};
specular[]={0.99995941,0.99996018,0.99996024,0.99999982};
specularPower=20;
PixelShaderID="Super";
VertexShaderID="Super";
class Stage1
{
texture="dayz_equip\textures\copperbar_NOHQ.paa";
uvSource="tex";
class uvTransform
{
aside[]={1,0,0};
up[]={0,1,0};
dir[]={0,0,0};
pos[]={0,0,0};
};
};
class Stage2
{
texture="#(argb,8,8,3)color(0.5,0.5,0.5,1,DT)";
uvSource="tex";
class uvTransform
{
aside[]={10,0,0};
up[]={0,10,0};
dir[]={0,0,0};
pos[]={0,0,0};
};
};
class Stage3
{
texture="#(argb,8,8,3)color(0,0,0,0,MC)";
uvSource="tex";
class uvTransform
{
aside[]={1,0,0};
up[]={0,1,0};
dir[]={0,0,0};
pos[]={0,0,0};
};
};
class Stage4
{
texture="dayz_equip\textures\copperbar_AS.paa";
uvSource="tex";
class uvTransform
{
aside[]={1,0,0};
up[]={0,1,0};
dir[]={0,0,0};
pos[]={0,0,0};
};
};
class Stage5
{
texture="dayz_equip\textures\copperbar_SMDI.paa";
uvSource="tex";
class uvTransform
{
aside[]={1,0,0};
up[]={0,1,0};
dir[]={0,0,0};
pos[]={0,0,0};
};
};
class Stage6
{
texture="#(ai,64,64,1)fresnel(1,0.7)";
uvSource="none";
};
class Stage7
{
texture="ca\data\env_land_co.paa";
uvSource="none";
};

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,78 @@
ambient[]={1,1,1,1};
diffuse[]={1,1,1,0.99999994};
forcedDiffuse[]={0,1.7881394e-008,6.3747166e-008,1};
emmisive[]={1,1,1,1};
specular[]={0.99995941,0.50496119,0.24699999,1};
specularPower=37.900002;
PixelShaderID="NormalMapSpecularThrough";
VertexShaderID="Super";
class Stage1
{
texture="dayz_equip\textures\goldbartexture1_NOHQ.paa";
uvSource="tex";
class uvTransform
{
aside[]={1,0,0};
up[]={0,1,0};
dir[]={0,0,0};
pos[]={0,0,0};
};
};
class Stage2
{
texture="#(argb,8,8,3)color(0.5,0.5,0.5,1,DT)";
uvSource="tex";
class uvTransform
{
aside[]={10,0,0};
up[]={0,10,0};
dir[]={0,0,0};
pos[]={0,0,0};
};
};
class Stage3
{
texture="#(argb,8,8,3)color(0,0,0,0,MC)";
uvSource="tex";
class uvTransform
{
aside[]={1,0,0};
up[]={0,1,0};
dir[]={0,0,0};
pos[]={0,0,0};
};
};
class Stage4
{
texture="dayz_equip\textures\goldbartexture1_AS.paa";
uvSource="tex";
class uvTransform
{
aside[]={1,0,0};
up[]={0,1,0};
dir[]={0,0,0};
pos[]={0,0,0};
};
};
class Stage5
{
texture="dayz_equip\textures\goldbartexture1_SMDI.paa";
uvSource="tex";
class uvTransform
{
aside[]={1,0,0};
up[]={0,1,0};
dir[]={0,0,0};
pos[]={0,0,0};
};
};
class Stage6
{
texture="fresnel(0.87,10)";
uvSource="none";
};
class Stage7
{
texture="ca\data\env_land_co.paa";
uvSource="none";
};

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,78 @@
ambient[]={1,1,1,1};
diffuse[]={0.50196099,0.50196099,0.50196099,1};
forcedDiffuse[]={0,0,0,0};
emmisive[]={0,0,0,1};
specular[]={0.101961,0.101961,0.101961,0.88};
specularPower=450;
PixelShaderID="Super";
VertexShaderID="Super";
class Stage1
{
texture="dayz_equip\textures\oil_drum_texture_NOHQ.paa";
uvSource="tex";
class uvTransform
{
aside[]={1,0,0};
up[]={0,1,0};
dir[]={0,0,0};
pos[]={0,0,0};
};
};
class Stage2
{
texture="#(argb,8,8,3)color(0.5,0.5,0.5,1,DT)";
uvSource="tex";
class uvTransform
{
aside[]={10,0,0};
up[]={0,10,0};
dir[]={0,0,0};
pos[]={0,0,0};
};
};
class Stage3
{
texture="#(argb,8,8,3)color(0,0,0,0,MC)";
uvSource="tex";
class uvTransform
{
aside[]={1,0,0};
up[]={0,1,0};
dir[]={0,0,0};
pos[]={0,0,0};
};
};
class Stage4
{
texture="dayz_equip\textures\oil_drum_texture_AS.paa";
uvSource="tex";
class uvTransform
{
aside[]={1,0,0};
up[]={0,1,0};
dir[]={0,0,0};
pos[]={0,0,0};
};
};
class Stage5
{
texture="dayz_equip\textures\oil_drum_texture_SMDI.paa";
uvSource="tex";
class uvTransform
{
aside[]={1,0,0};
up[]={0,1,0};
dir[]={0,0,0};
pos[]={0,0,0};
};
};
class Stage6
{
texture="#(ai,64,128,1)fresnel(4.01,2.86)";
uvSource="none";
};
class Stage7
{
texture="ca\data\env_land_co.paa";
uvSource="none";
};

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,78 @@
ambient[]={1,1,1,1};
diffuse[]={0.50196099,0.50196099,0.50196099,1};
forcedDiffuse[]={0,0,0,0};
emmisive[]={0,0,0,1};
specular[]={0.101961,0.101961,0.101961,0.88};
specularPower=450;
PixelShaderID="Super";
VertexShaderID="NormalMapAS";
class Stage1
{
texture="dayz_equip\textures\parts_bag_texture3c_NOHQ.paa";
uvSource="tex";
class uvTransform
{
aside[]={1,0,0};
up[]={0,1,0};
dir[]={0,0,0};
pos[]={0,0,0};
};
};
class Stage2
{
texture="#(argb,8,8,3)color(0.5,0.5,0.5,1,DT)";
uvSource="tex";
class uvTransform
{
aside[]={10,0,0};
up[]={0,10,0};
dir[]={0,0,0};
pos[]={0,0,0};
};
};
class Stage3
{
texture="#(argb,8,8,3)color(0,0,0,0,MC)";
uvSource="tex";
class uvTransform
{
aside[]={1,0,0};
up[]={0,1,0};
dir[]={0,0,0};
pos[]={0,0,0};
};
};
class Stage4
{
texture="dayz_equip\textures\parts_bag_texture3c_AS.paa";
uvSource="tex";
class uvTransform
{
aside[]={1,0,0};
up[]={0,1,0};
dir[]={0,0,0};
pos[]={0,0,0};
};
};
class Stage5
{
texture="dayz_equip\textures\parts_bag_texture3c_SMDI.paa";
uvSource="tex";
class uvTransform
{
aside[]={1,0,0};
up[]={0,1,0};
dir[]={0,0,0};
pos[]={0,0,0};
};
};
class Stage6
{
texture="#(ai,64,128,1)fresnel(4.01,2.86)";
uvSource="none";
};
class Stage7
{
texture="ca\data\env_land_co.paa";
uvSource="none";
};

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,32 @@
ambient[]={1,1,1,1};
diffuse[]={1,1,1,1};
forcedDiffuse[]={0,0,0,0};
emmisive[]={0,0,0,1};
specular[]={1,1,1,0.88};
specularPower=23.799999;
PixelShaderID="NormalMapSpecularMap";
VertexShaderID="NormalMap";
class Stage1
{
texture="dayz_equip\textures\safe1_NOHQ.paa";
uvSource="tex";
class uvTransform
{
aside[]={1,0,0};
up[]={0,1,0};
dir[]={0,0,1};
pos[]={0,0,0};
};
};
class Stage2
{
texture="dayz_equip\textures\safe1_SMDI.paa";
uvSource="tex";
class uvTransform
{
aside[]={1,0,0};
up[]={0,1,0};
dir[]={0,0,1};
pos[]={0,0,0};
};
};

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,78 @@
ambient[]={1,1,1,1};
diffuse[]={1,1,1,1};
forcedDiffuse[]={0,0,0,0};
emmisive[]={0,0,0,1};
specular[]={0.99995941,0.99996018,0.99996024,0.99999982};
specularPower=20;
PixelShaderID="Super";
VertexShaderID="Super";
class Stage1
{
texture="dayz_equip\textures\silverbar_NOHQ.paa";
uvSource="tex";
class uvTransform
{
aside[]={1,0,0};
up[]={0,1,0};
dir[]={0,0,0};
pos[]={0,0,0};
};
};
class Stage2
{
texture="#(argb,8,8,3)color(0.5,0.5,0.5,1,DT)";
uvSource="tex";
class uvTransform
{
aside[]={10,0,0};
up[]={0,10,0};
dir[]={0,0,0};
pos[]={0,0,0};
};
};
class Stage3
{
texture="#(argb,8,8,3)color(0,0,0,0,MC)";
uvSource="tex";
class uvTransform
{
aside[]={1,0,0};
up[]={0,1,0};
dir[]={0,0,0};
pos[]={0,0,0};
};
};
class Stage4
{
texture="dayz_equip\textures\silverbar_AS.paa";
uvSource="tex";
class uvTransform
{
aside[]={1,0,0};
up[]={0,1,0};
dir[]={0,0,0};
pos[]={0,0,0};
};
};
class Stage5
{
texture="dayz_equip\textures\silverbar_SMDI.paa";
uvSource="tex";
class uvTransform
{
aside[]={1,0,0};
up[]={0,1,0};
dir[]={0,0,0};
pos[]={0,0,0};
};
};
class Stage6
{
texture="#(ai,64,64,1)fresnel(1,0.7)";
uvSource="none";
};
class Stage7
{
texture="ca\data\env_land_co.paa";
uvSource="none";
};

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.