mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
This fixes the issues I was having with APFL, Basically when downgrading a locked door the ownerPUID was not getting transferred across so it was getting a 0 PUID set on it once downgraded so you would then lose access if there was no plot pole. Now it correctly gets set and instead of doing 2 PVDZE_Obj_Swaps I am using an if and else statement. player_upgrade was also not sending the ownerID into the worldspace field, this seems to differ from the original APFL script. I also added in code so that if APFL was enabled and uid is 0 we claim the item with players UID. This fixes a typo @ebaydayz introduced to spam the .RPT on startup also for the shotgun and a typo in the credits.
50 lines
1.4 KiB
C++
50 lines
1.4 KiB
C++
class MR43_DZ : Rifle
|
|
{
|
|
scope = public;
|
|
|
|
model = "\dayz_weapons\models\mr43.p3d";
|
|
picture = "\dayz_weapons\textures\equip_mr43_CA.paa";
|
|
displayname = $STR_DZ_WPN_MR43_NAME;
|
|
descriptionShort = $STR_DZ_WPN_MR43_DESC;
|
|
|
|
magazines[] =
|
|
{
|
|
2Rnd_12Gauge_Buck,
|
|
2Rnd_12Gauge_Slug
|
|
};
|
|
|
|
handAnim[] = {"OFP2_ManSkeleton", "\Ca\weapons_E\Data\Anim\LeeEnfield.rtm"};
|
|
|
|
distanceZoomMin = 100;
|
|
distanceZoomMax = 100;
|
|
|
|
modes[] = {"Single","Double"};
|
|
|
|
class Single : Mode_SemiAuto
|
|
{
|
|
dispersion = 0.003;
|
|
soundContinuous = 0;
|
|
reloadTime = 0.01;
|
|
reloadMagazineSound[] = {"\ca\sounds\weapons\rifles\M1014-reload", 0.316228, 1, 20};
|
|
DB_shotgun_1[] = {"dayz_weapons\sounds\DB_shotgun_1", 1.77828, 1, 1000};
|
|
soundBegin[] = {"DB_shotgun_1", 1};
|
|
drySound[] = {"ca\sounds\weapons\rifles\dry", 0.01, 1, 10};
|
|
recoil = "recoil_single_primary_9outof10";
|
|
recoilProne = "recoil_single_primary_prone_8outof10";
|
|
};
|
|
class Double : Mode_Burst
|
|
{
|
|
displayName = $STR_DZ_WPN_MR43_DSMODE_NAME;
|
|
dispersion = 0.003;
|
|
soundContinuous = 0;
|
|
reloadTime = 0.001;
|
|
ffCount = 2;
|
|
reloadMagazineSound[] = {"\ca\sounds\weapons\rifles\M1014-reload", 0.316228, 1, 20};
|
|
DB_shotgun_1[] = {"dayz_weapons\sounds\DB_shotgun_1", 1.77828, 1, 1000};
|
|
soundBegin[] = {"DB_shotgun_1", 1};
|
|
drySound[] = {"ca\sounds\weapons\rifles\dry", 0.01, 1, 10};
|
|
recoil = "recoil_single_primary_9outof10";
|
|
recoilProne = "recoil_single_primary_prone_8outof10";
|
|
};
|
|
};
|