ebaydayz
2016-07-18 21:43:08 -04:00
parent 2f4815cb39
commit 2911bffced
3 changed files with 97 additions and 68 deletions
+85 -57
View File
@@ -1,37 +1,67 @@
class Throw : GrenadeLauncher
{
autoReload = true;
backgroundReload = true;
/*
scope = public;
autoAimEnabled = false;
cursor = "Vehicle_Grenade_W";
cursoraim = "\ca\Weapons\Data\clear_empty";
cursorSize = 1;
value = 0;
type = VSoft;
displayName = $STR_MAG_ACTION2_4;
canDrop = false;
//autoReload = true;
//backgroundReload = true;
*/
muzzles[] =
{
HandGrenadeMuzzle,
SmokeShellMuzzle,
RoadFlareMuzzle,
ChemLightMuzzle,
TrashMuzzle
"HandGrenadeMuzzle",
"SmokeShellMuzzle",
"RoadFlareMuzzle",
"ChemLightMuzzle",
"TrashMuzzle"
};
class ThrowMuzzle : GrenadeLauncher
{
/*
cursoraim = "Vehicle_Grenade_W";
cursorSize = 1;
sound[] = {"", 0.000316228, 1};
reloadSound[] = {"", 0.000316228, 1};
aiDispersionCoefX = 6;
aiDispersionCoefY = 6;
reloadTime = 0;
magazineReloadTime = 0;
enableAttack = false;
showEmpty = 0;
autoReload = true;
modelOptics = "";
minRange = 30;
minRangeProbab = 0.5;
midRange = 45;
midRangeProbab = 0.2;
maxRange = 60;
maxRangeProbab = 0.03;
*/
cursor = "\ca\Weapons\Data\clear_empty";
backgroundReload = true;
//backgroundReload = true;
};
class RoadFlareMuzzle : ThrowMuzzle
{
displayName = $STR_MAG_ACTION_4;
magazines[] = {HandRoadFlare};
magazines[] = {"HandRoadFlare"};
begin1[] = {"dayz_weapons\sounds\roadflare_start", 1.77828, 1, 1000};
soundBegin[] = {begin1, 1};
soundBegin[] = {"begin1", 1};
};
class ChemLightMuzzle : ThrowMuzzle
{
displayName = $STR_MAG_ACTION_5;
magazines[] = {HandChemGreen, HandChemRed, HandChemBlue};
magazines[] = {"HandChemGreen", "HandChemRed", "HandChemBlue"};
};
class TrashMuzzle : ThrowMuzzle
@@ -39,51 +69,49 @@ class Throw : GrenadeLauncher
displayName = $STR_ACTION_THROW;
magazines[] =
{
TrashJackDaniels,
TrashTinCan,
FoodCanGriffEmpty,
FoodCanBadguyEmpty,
FoodCanBoneboyEmpty,
FoodCanCornEmpty,
FoodCanCurgonEmpty,
FoodCanDemonEmpty,
FoodCanFraggleosEmpty,
FoodCanHerpyEmpty,
FoodCanDerpyEmpty,
FoodCanOrlokEmpty,
FoodCanPowellEmpty,
FoodCanTylersEmpty,
FoodCanUnlabeledEmpty,
FoodCanRusUnlabeledEmpty,
FoodCanRusPorkEmpty,
FoodCanRusPeasEmpty,
FoodCanRusMilkEmpty,
FoodCanRusCornEmpty,
FoodCanRusStewEmpty,
FoodCanBeefEmpty,
FoodCanPotatoesEmpty,
ItemSodaEmpty,
ItemSodaClaysEmpty,
ItemSodaCokeEmpty,
ItemSodaDrwasteEmpty,
ItemSodaFrankaEmpty,
ItemSodaGrapeDrinkEmpty,
ItemSodaLemonadeEmpty,
ItemSodaLirikEmpty,
ItemSodaLvgEmpty,
ItemSodaMdewEmpty,
ItemSodaMtngreenEmpty,
ItemSodaMzlyEmpty,
ItemSodaPeppsyEmpty,
ItemSodaPepsiEmpty,
ItemSodaR4z0rEmpty,
ItemSodaRabbitEmpty,
ItemSodaRocketFuelEmpty,
ItemSodaSacriteEmpty,
ItemSodaSherbetEmpty,
ItemSodaSmashtEmpty
"TrashJackDaniels",
"TrashTinCan",
"FoodCanGriffEmpty",
"FoodCanBadguyEmpty",
"FoodCanBoneboyEmpty",
"FoodCanCornEmpty",
"FoodCanCurgonEmpty",
"FoodCanDemonEmpty",
"FoodCanFraggleosEmpty",
"FoodCanHerpyEmpty",
"FoodCanDerpyEmpty",
"FoodCanOrlokEmpty",
"FoodCanPowellEmpty",
"FoodCanTylersEmpty",
"FoodCanUnlabeledEmpty",
"FoodCanRusUnlabeledEmpty",
"FoodCanRusPorkEmpty",
"FoodCanRusPeasEmpty",
"FoodCanRusMilkEmpty",
"FoodCanRusCornEmpty",
"FoodCanRusStewEmpty",
"FoodCanBeefEmpty",
"FoodCanPotatoesEmpty",
"ItemSodaEmpty",
"ItemSodaClaysEmpty",
"ItemSodaCokeEmpty",
"ItemSodaDrwasteEmpty",
"ItemSodaFrankaEmpty",
"ItemSodaGrapeDrinkEmpty",
"ItemSodaLemonadeEmpty",
"ItemSodaLirikEmpty",
"ItemSodaLvgEmpty",
"ItemSodaMdewEmpty",
"ItemSodaMtngreenEmpty",
"ItemSodaMzlyEmpty",
"ItemSodaPeppsyEmpty",
"ItemSodaPepsiEmpty",
"ItemSodaR4z0rEmpty",
"ItemSodaRabbitEmpty",
"ItemSodaRocketFuelEmpty",
"ItemSodaSacriteEmpty",
"ItemSodaSherbetEmpty",
"ItemSodaSmashtEmpty"
};
};
};
+11 -10
View File
@@ -1,4 +1,4 @@
class CfgAmmo
class CfgAmmo
{
class Default;
class BulletBase;
@@ -6,7 +6,7 @@ class CfgAmmo
class GrenadeCore;
/* MELEE */
class Melee : Default
{
//Simulation
@@ -306,7 +306,7 @@ class CfgAmmo
/* BULLET */
//.44 Henry Winchester 1866
class B_1866_Slug : BulletBase
{
@@ -321,9 +321,9 @@ class CfgAmmo
airFriction = -0.005;
caliber = 0.5;
};
//makarov
class B_9x18_Ball : BulletBase
class B_9x18_Ball : BulletBase
{
airfriction = -0.002751;
audiblefire = 15;
@@ -334,9 +334,9 @@ class CfgAmmo
typicalspeed = 350;
visiblefire = 15;
};
//makarov sd
class B_9x18_SD : B_9x18_Ball
class B_9x18_SD : B_9x18_Ball
{
airfriction = -0.001893;
audiblefire = 0.035;
@@ -346,9 +346,9 @@ class CfgAmmo
visiblefire = 0.035;
visiblefiretime = 2;
};
//M1911
class B_45ACP_Ball : BulletBase
class B_45ACP_Ball : BulletBase
{
airfriction = -0.0013522;
audiblefire = 16;
@@ -438,6 +438,7 @@ class CfgAmmo
simulationStep = 1;
soundFly[] = {"dayz_weapons\sounds\roadflare", 0.316228, 1, 60};
cost = 100;
explosive = false;
deflecting = 60;
explosionTime = 0;
timeToLive = 300;
@@ -483,7 +484,7 @@ class CfgAmmo
// used for grenade traps
class GrenadeHandTimedWest;
class GrenadeHandTimedWest_DZ : GrenadeHandTimedWest