mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Compare commits
404 Commits
RC1-1.0.5.
...
beta
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7deb504253 | ||
|
|
f0782d9c89 | ||
|
|
5790d1e129 | ||
|
|
386ce924a2 | ||
|
|
3156e02b3f | ||
|
|
01536b7515 | ||
|
|
c343541bb4 | ||
|
|
8d3239ad93 | ||
|
|
444fd125d0 | ||
|
|
31c9f589af | ||
|
|
d2bacf367e | ||
|
|
94601f3139 | ||
|
|
16639d9741 | ||
|
|
6e5beb409d | ||
|
|
e1d6f38ab5 | ||
|
|
04c933b318 | ||
|
|
db97941418 | ||
|
|
86b83a1843 | ||
|
|
26407165ac | ||
|
|
f734cb078f | ||
|
|
011c88d076 | ||
|
|
492caf6390 | ||
|
|
fa4bbc9f00 | ||
|
|
c398a419db | ||
|
|
be260bf4ea | ||
|
|
93f8b61f58 | ||
|
|
2938f08723 | ||
|
|
69ffe8f31c | ||
|
|
d41ee6b5de | ||
|
|
33b9fcffdb | ||
|
|
ff77466cbf | ||
|
|
342072177c | ||
|
|
ccd98e3a4c | ||
|
|
10003f4ebf | ||
|
|
5d36d84cb2 | ||
|
|
c8ded9b38d | ||
|
|
8e5ad427b8 | ||
|
|
ade7d3f36d | ||
|
|
b165cade29 | ||
|
|
fea1013a1c | ||
|
|
4814c4fd04 | ||
|
|
3451892dab | ||
|
|
420df74924 | ||
|
|
96c3471d11 | ||
|
|
e8430a49c5 | ||
|
|
70f232e0ff | ||
|
|
49d702b6b8 | ||
|
|
2e8fb3bd17 | ||
|
|
3e62064a06 | ||
|
|
4d141b17b1 | ||
|
|
ede660d09b | ||
|
|
4ed8769e93 | ||
|
|
5850efb0c6 | ||
|
|
192f255257 | ||
|
|
1dd9e0cb91 | ||
|
|
700ab86781 | ||
|
|
4c4b7133be | ||
|
|
9dc196d8bd | ||
|
|
86551302de | ||
|
|
9623809d5b | ||
|
|
7fcb7ff657 | ||
|
|
d472450062 | ||
|
|
1c87cac11a | ||
|
|
0efa8ea37b | ||
|
|
cdb0399f19 | ||
|
|
a664da7b3e | ||
|
|
172b9e21c7 | ||
|
|
23791fc1d8 | ||
|
|
5b2949c33d | ||
|
|
7151f6859f | ||
|
|
3623b68112 | ||
|
|
de4f50dad0 | ||
|
|
13578d07ad | ||
|
|
fd2eaaaa56 | ||
|
|
e3d57adbae | ||
|
|
720f50f443 | ||
|
|
ed575c818b | ||
|
|
dfb99cc867 | ||
|
|
737fd45f26 | ||
|
|
a1ae300b92 | ||
|
|
909ca991cd | ||
|
|
5d0b141b60 | ||
|
|
9ac6611ceb | ||
|
|
362fa9bbed | ||
|
|
d183859167 | ||
|
|
b204a23af6 | ||
|
|
282348c189 | ||
|
|
479cd0354a | ||
|
|
c13deff6aa | ||
|
|
3f04dbd243 | ||
|
|
4853b8db65 | ||
|
|
19a2e98d01 | ||
|
|
3683b72527 | ||
|
|
2df849403e | ||
|
|
a69bae2126 | ||
|
|
009a6c1c25 | ||
|
|
32096ce3a8 | ||
|
|
260c22af71 | ||
|
|
fc62f1076b | ||
|
|
5c88e790f4 | ||
|
|
547ba0018f | ||
|
|
26f51ad9f9 | ||
|
|
8ccc1e723b | ||
|
|
9f17fe3f18 | ||
|
|
e0294796bc | ||
|
|
ed0234139e | ||
|
|
9c70f0f2d4 | ||
|
|
dc772e7384 | ||
|
|
b21afc8d0a | ||
|
|
196a8b2e94 | ||
|
|
32bcb8515b | ||
|
|
010c164d22 | ||
|
|
665de9d917 | ||
|
|
4c62c1a55e | ||
|
|
54f4cc5024 | ||
|
|
21098f9b73 | ||
|
|
211a74a645 | ||
|
|
a5e8aae13b | ||
|
|
1187207dcf | ||
|
|
4ad1a72db2 | ||
|
|
d0a1463425 | ||
|
|
d8105936e5 | ||
|
|
92a14789ae | ||
|
|
6af912a200 | ||
|
|
2f196bb146 | ||
|
|
aedaf4a558 | ||
|
|
f5e80520bb | ||
|
|
62b711ecd8 | ||
|
|
666b0fd7b2 | ||
|
|
348e102ef0 | ||
|
|
af8382a5e6 | ||
|
|
6902efa63a | ||
|
|
7345f46fed | ||
|
|
e8c0f6da6a | ||
|
|
4bac499c74 | ||
|
|
03e0087f54 | ||
|
|
4976e7965f | ||
|
|
d8dd028c5f | ||
|
|
76000d59f9 | ||
|
|
8f37e9c106 | ||
|
|
d4028afa65 | ||
|
|
b0ae579875 | ||
|
|
77d9951f23 | ||
|
|
0c3173826e | ||
|
|
f7144334ea | ||
|
|
1c2511bc55 | ||
|
|
5a54f26c4d | ||
|
|
d59c5b8278 | ||
|
|
6bddf7513e | ||
|
|
064d50778a | ||
|
|
b7e2462188 | ||
|
|
1e8f146860 | ||
|
|
420f832210 | ||
|
|
5c1833fc99 | ||
|
|
37234e5209 | ||
|
|
d52eb620e6 | ||
|
|
9762dad8ee | ||
|
|
1c839f47fd | ||
|
|
6f58a882aa | ||
|
|
727a2d211a | ||
|
|
b3246ec80d | ||
|
|
f3c0b582b4 | ||
|
|
efca644b46 | ||
|
|
9984923462 | ||
|
|
e35e5e326b | ||
|
|
9cdae44069 | ||
|
|
903f5d8572 | ||
|
|
5b4d53d3b9 | ||
|
|
e4982dc313 | ||
|
|
740f4144f1 | ||
|
|
1c4be9a043 | ||
|
|
34a2d03163 | ||
|
|
2542d94c21 | ||
|
|
a8a0e0ca5c | ||
|
|
fe5af9425a | ||
|
|
ac07359c80 | ||
|
|
dccbb19131 | ||
|
|
1bdd96cd88 | ||
|
|
5bb15f0c66 | ||
|
|
a6f55498b7 | ||
|
|
c66b229a96 | ||
|
|
49fe5f4846 | ||
|
|
5ae7f920dd | ||
|
|
59124e6eef | ||
|
|
8192dd7b50 | ||
|
|
8bd438f4c6 | ||
|
|
ba6a5c7dc1 | ||
|
|
c7b400f36a | ||
|
|
d8841474c6 | ||
|
|
ef0a157eb2 | ||
|
|
a0372bc88d | ||
|
|
3e42af0bb4 | ||
|
|
688c1f15b6 | ||
|
|
d1b40385a9 | ||
|
|
ca37210345 | ||
|
|
29adecc2e9 | ||
|
|
db15170622 | ||
|
|
95676f0db7 | ||
|
|
04ee8578ff | ||
|
|
06b7eca2c8 | ||
|
|
a79a86889d | ||
|
|
18d283428b | ||
|
|
14ebc32bd4 | ||
|
|
64d9be9169 | ||
|
|
f2145b6b8d | ||
|
|
29c9f979df | ||
|
|
7dd6aac669 | ||
|
|
589bf3eaa1 | ||
|
|
2573bd184c | ||
|
|
b1764bff8e | ||
|
|
504503a46e | ||
|
|
2bd68a04f6 | ||
|
|
176c0372b4 | ||
|
|
ff706fde43 | ||
|
|
73470f1e90 | ||
|
|
361ab3a3e5 | ||
|
|
676bb91122 | ||
|
|
d4f978e461 | ||
|
|
dd582d28ec | ||
|
|
12400b1a2b | ||
|
|
e52790d8fb | ||
|
|
a5e0f665e9 | ||
|
|
1fb0e07ebd | ||
|
|
b8e07f3cc2 | ||
|
|
29c2b09175 | ||
|
|
923b2833c9 | ||
|
|
743ddf5b6b | ||
|
|
5603413f6e | ||
|
|
1548ee19a6 | ||
|
|
15f12c4861 | ||
|
|
13bd5c554a | ||
|
|
ee0a6b8bca | ||
|
|
c0c8e0ecc0 | ||
|
|
6ca0550a2a | ||
|
|
9628b8845f | ||
|
|
c63a7d5cb4 | ||
|
|
25e461df99 | ||
|
|
6eff337579 | ||
|
|
6b4935669d | ||
|
|
8250dcbec2 | ||
|
|
ee179e1fc4 | ||
|
|
a6d51c7e63 | ||
|
|
0b2436fbb5 | ||
|
|
1ab7f14a87 | ||
|
|
1592885121 | ||
|
|
6d1d4c998a | ||
|
|
ceae17af98 | ||
|
|
d19001d87b | ||
|
|
445556ff12 | ||
|
|
81729c26f4 | ||
|
|
573bacdfc3 | ||
|
|
0111a8f580 | ||
|
|
d4028a8b88 | ||
|
|
18d76b13c6 | ||
|
|
e302195c43 | ||
|
|
b77d959572 | ||
|
|
5ca6aab0c8 | ||
|
|
a624c81653 | ||
|
|
b6d8a8b686 | ||
|
|
f0d041a8b3 | ||
|
|
47ec14e9fa | ||
|
|
329147da65 | ||
|
|
c8ec9f545b | ||
|
|
a340b10084 | ||
|
|
427b9efd0f | ||
|
|
ed42233c92 | ||
|
|
383ec9a70d | ||
|
|
640a496316 | ||
|
|
05bfcd9299 | ||
|
|
de538db0a4 | ||
|
|
0ff822200a | ||
|
|
c464d17c76 | ||
|
|
3bc4909c6f | ||
|
|
94aaf929f2 | ||
|
|
f63ad88dbd | ||
|
|
0d5d0b9b8e | ||
|
|
ec1308afd6 | ||
|
|
3ec0b2be60 | ||
|
|
a8389ba2bc | ||
|
|
a4ade23086 | ||
|
|
1f2bc80070 | ||
|
|
cb633715fa | ||
|
|
abc4c2f6ce | ||
|
|
fc1ce8421e | ||
|
|
29fe8ced1a | ||
|
|
f284fc1b92 | ||
|
|
411055260f | ||
|
|
cb6ed37846 | ||
|
|
1693b33d42 | ||
|
|
c479fe45f3 | ||
|
|
327e7677e7 | ||
|
|
b436c1a66f | ||
|
|
edf7c23af0 | ||
|
|
b26aa51e32 | ||
|
|
e6e5da011e | ||
|
|
9bc4a9a4ec | ||
|
|
f1950b0b99 | ||
|
|
f1aa986a08 | ||
|
|
4059c7ceaa | ||
|
|
377e5207ac | ||
|
|
3369d064e1 | ||
|
|
f1b3104e1e | ||
|
|
e330fe17aa | ||
|
|
613a08c770 | ||
|
|
e497ae4a65 | ||
|
|
3214eda74a | ||
|
|
dd968044d3 | ||
|
|
8e640ef5b3 | ||
|
|
bbfd03dbf7 | ||
|
|
bca5acf2e6 | ||
|
|
5193787b5f | ||
|
|
092223e2c3 | ||
|
|
273c8b8954 | ||
|
|
0529324a4b | ||
|
|
14918b9892 | ||
|
|
3e388880d4 | ||
|
|
1ef1277254 | ||
|
|
4099115959 | ||
|
|
565b9240cf | ||
|
|
2c1d0825d1 | ||
|
|
ed879fbef5 | ||
|
|
bf86886835 | ||
|
|
37e83700a5 | ||
|
|
4496e16e68 | ||
|
|
6e1be89442 | ||
|
|
38bb95f12f | ||
|
|
95077f35f8 | ||
|
|
8a2dcfcf10 | ||
|
|
33e9c7669b | ||
|
|
f288fcf35a | ||
|
|
077da12271 | ||
|
|
a297cfea63 | ||
|
|
cd3bc37202 | ||
|
|
8294226d86 | ||
|
|
87ee176d7d | ||
|
|
652160a080 | ||
|
|
fb151b961d | ||
|
|
60644c98b7 | ||
|
|
26b296b9b9 | ||
|
|
da15f60224 | ||
|
|
0eb5f76c64 | ||
|
|
a487fd4f78 | ||
|
|
2355d6b18e | ||
|
|
07b3f14c1b | ||
|
|
83ec44e402 | ||
|
|
ef43ee707c | ||
|
|
572b646107 | ||
|
|
2e8b9b6de8 | ||
|
|
5c8da27d4d | ||
|
|
7285b9e113 | ||
|
|
8191c849f4 | ||
|
|
14d866f2c6 | ||
|
|
5507513336 | ||
|
|
08f28045f4 | ||
|
|
5b61ce34b7 | ||
|
|
151a6b7478 | ||
|
|
03e229bee5 | ||
|
|
845d4c81c9 | ||
|
|
ff47fe5817 | ||
|
|
97414d881c | ||
|
|
81b147d3e2 | ||
|
|
72168cb103 | ||
|
|
796490d955 | ||
|
|
a6bcaad182 | ||
|
|
26b3bd046f | ||
|
|
fdf563e378 | ||
|
|
01cb6100ca | ||
|
|
eb4b68fc33 | ||
|
|
723a2ca713 | ||
|
|
0a5e13a1d8 | ||
|
|
ab874fe609 | ||
|
|
0233923ba9 | ||
|
|
35a84cd4a7 | ||
|
|
3e47d3e3eb | ||
|
|
4666bd9f5c | ||
|
|
ec02c8aa2e | ||
|
|
5776a4adee | ||
|
|
3bbbae71bf | ||
|
|
3716d302ce | ||
|
|
32f18496a8 | ||
|
|
7265978585 | ||
|
|
800c2ebb08 | ||
|
|
c3522eb700 | ||
|
|
d93efe10b8 | ||
|
|
f5791616c2 | ||
|
|
2aee27be43 | ||
|
|
cd794ba2b7 | ||
|
|
7a52bd67a4 | ||
|
|
5585633c5f | ||
|
|
3036b31bbb | ||
|
|
be3e492405 | ||
|
|
d396babd30 | ||
|
|
47d7055fff | ||
|
|
aa8dac7b50 | ||
|
|
fdc4a0aeff | ||
|
|
dbedcfa51c | ||
|
|
b603fdfe58 | ||
|
|
fdcc7e458f | ||
|
|
27ad510457 | ||
|
|
c2f86fa6fe | ||
|
|
1528b1f1fd | ||
|
|
d914620a4c | ||
|
|
291dc60454 | ||
|
|
3183bf95af |
@@ -1,15 +1,40 @@
|
||||
[NEW] RedRyder BB Gun by @arma2WillRobinson
|
||||
[NEW] DB Backup script. @RimBlock
|
||||
[NEW] Use DayZ_UseSteamID = false; in your init.sqf to use the old PlayerUID, instead of SteamID @icomrade
|
||||
[NEW] UI Update - Graphical and code changes, enable using Dayz_Dark_UI = true; in init.sqf. @hogscraper http://epochmod.com/forum/index.php?/topic/13654-proposed-ui-change/
|
||||
[NOTE] It's recommend to convert to the new SteamID system if possible, new servers should not use DayZ_UseSteamID = false;
|
||||
[NEW] Snap building (disabled by default), use DZE_modularBuild = true; in your init.sqf to enable. @raymix
|
||||
[NEW] Modular/Function based player_build for addon makers and modders. @raymix (more info and concepts - http://epochmod.com/forum/index.php?/topic/14628-modular-function-based-player-buildsqf/ )
|
||||
[NEW] Added "RedRyder" and "350Rnd_BB_Magazine" to loot pile. #1456 #1457 @Namindu
|
||||
|
||||
[CHANGED] An infection chance of -1 disables self-transfusion infection. 0 is always infected. (DZE_selfTransfuse_Values) @icomrade
|
||||
[CHANGED] Removed weapons from Traders hands and made them stand with arms by their side. @SilvDev
|
||||
[CHANGED] Tweaked fuel capacity variables for vehicles. @RimBlock
|
||||
[CHANGED] Tweaked rotate_logs.bat to incorporate the day of the week for better organization @Raziel23x
|
||||
|
||||
[FIXED] Backpack wipes when changing clothes. #1361 @icomrade
|
||||
[FIXED] CH53 gear when locked #1364 @icomrade
|
||||
[FIXED] Infinite loop when crafting ore into bars #1351 @icomrade
|
||||
[FIXED] Only first kill showing on death boards #1362 #1124 @vbawol @icomrade
|
||||
[FIXED] Crossbow quivers not working #1355 @icomrade
|
||||
[FIXED] Crash_spawner & Supply_drop modules spawning inaccessible loot piles #1408 #1390 @Uro1
|
||||
[FIXED] Undefined variable "_weapon" in fnc_plyrHit.sqf when killer is driving a vehicle #1420 @ebaydayz
|
||||
[FIXED] Fire cleanup diag_log error in server_functions.sqf #1421 @ebaydayz
|
||||
[FIXED] NearestObjects position error in server_playerSync.sqf #1425 @ebaydayz
|
||||
[FIXED] Corrected ClassName type for CH53_DZE and BAF_Merlin_DZE. @Cinjun
|
||||
[FIXED] Some counts reverted to forEach - count loops can not be nested inside other count loops #1491-#1495 @ebaydayz
|
||||
[FIXED] Safes empty when opening after restart #1467 @ebaydayz
|
||||
[FIXED] Dynamic_vehicle spawning non-upgradable classes of hilux1 & datsun1. @Uro1
|
||||
[FIXED] Eating while inside a vehicle did not drop empty can @deadeye2
|
||||
[FIXED] Zombie loot error when using loot tables in mission file @deadeye2
|
||||
[FIXED] Trader menu expected array error #1618-1620 @ebaydayz
|
||||
[FIXED] Loading screen issue where you can walk around and see a black screen #1610 @deanreid
|
||||
|
||||
[UPDATED] .hpp files updated in dayz_epoch_b CfgLootPos > CfgBuildingPos. @Uro1
|
||||
[UPDATED] .bat files updated in Config-Examples @Raziel23x
|
||||
[UPDATED] Updated all config.cfg in Config-Examples, Added Default Steam Ports and Updated Layout. @Namindu
|
||||
[UPDATED] Epoch.sql, 1.0.5_Updates.sql & CfgServerTraders with correct classnames for upgradable hilux1 & datsun1 versions. @Uro1
|
||||
[UPDATED] mission.sqm to compact format from DayZ Mod 1.8.3 @ebaydayz
|
||||
|
||||
[INFO] (EXTREMELY IMPORTANT) Server owners MUST update their required build and beta to 125548
|
||||
[INFO] Server admins should add requiredSecureId = 2; to their server.cfg to prevent uid spoofing.
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
**DayZ Epoch**
|
||||
================
|
||||
|
||||
## This is the experimental beta branch
|
||||
|
||||
Experimental DayZ mod
|
||||
|
||||
http://dayzepoch.com
|
||||
@@ -95,6 +97,8 @@ GitHub Contributors (In order of most commits)
|
||||
* Schmoopiie - https://github.com/Schmoopiie
|
||||
* nahkiss - https://github.com/nahkiss
|
||||
* BlackLA - https://github.com/BlackLA
|
||||
* Hogscraper - https://github.com/hogscraper
|
||||
* Raziel23x - https://github.com/Raziel23x
|
||||
|
||||
--------------------------
|
||||
Special thanks
|
||||
|
||||
406
SQF/dayz_code/Configs/CfgExtra/snappoints.hpp
Normal file
406
SQF/dayz_code/Configs/CfgExtra/snappoints.hpp
Normal file
@@ -0,0 +1,406 @@
|
||||
/*
|
||||
Created by Raymix
|
||||
*/
|
||||
|
||||
|
||||
class SnapBuilding {
|
||||
//Barriers whitelist
|
||||
class Barrier {
|
||||
snapTo[] = {
|
||||
"Land_HBarrier5_DZ",
|
||||
"Land_HBarrier3_DZ",
|
||||
"Land_HBarrier1_DZ",
|
||||
"Sandbag1_DZ",
|
||||
"BagFenceRound_DZ",
|
||||
"Fort_RazorWire"
|
||||
};
|
||||
radius = 5;
|
||||
};
|
||||
//snap points
|
||||
class Land_HBarrier5Preview: Barrier{ //fix for broken offsets in ghost
|
||||
points[] = {
|
||||
{0,0,0,"Pivot"},
|
||||
{0,-0.75,0.1,"Back"},
|
||||
{0,0.75,0.1,"Front"},
|
||||
{-2.85,0,0.1,"Left"},
|
||||
{2.85,0,0.1,"Right"},
|
||||
{0,0,0.9,"Top"}
|
||||
};
|
||||
};
|
||||
class Land_HBarrier5_DZ: Land_HBarrier5Preview {
|
||||
points[] = {
|
||||
{0,0,0,"Pivot"},
|
||||
{0,-0.75,0,"Back"},
|
||||
{0,0.75,0,"Front"},
|
||||
{-2.85,0,0,"Left"},
|
||||
{2.85,0,0,"Right"},
|
||||
{0,0,0.9,"Top"}
|
||||
};
|
||||
};
|
||||
|
||||
class Land_HBarrier3ePreview: Barrier { //whitelist inheritance
|
||||
points[] = {
|
||||
{0,0,0,"Pivot"},
|
||||
{0,-0.75,0,"Back"},
|
||||
{0,0.75,0,"Front"},
|
||||
{-1.7,0,0,"Left"},
|
||||
{1.7,0,0,"Right"},
|
||||
{0,0,0.9,"Top"}
|
||||
};
|
||||
};
|
||||
class Land_HBarrier3_DZ: Land_HBarrier3ePreview{}; //point inheritance
|
||||
|
||||
class Land_HBarrier1Preview: Barrier {
|
||||
points[] = {
|
||||
{0,0,0,"Pivot"},
|
||||
{0,-0.75,0,"Back"},
|
||||
{0,0.75,0,"Front"},
|
||||
{-0.6,0,0,"Left"},
|
||||
{0.6,0,0,"Right"},
|
||||
{0,0,0.9,"Top"}
|
||||
};
|
||||
};
|
||||
class Land_HBarrier1_DZ: Land_HBarrier1Preview{};
|
||||
|
||||
class Fort_RazorWirePreview: Barrier {
|
||||
points[] = {
|
||||
{0,0,0,"Pivot"},
|
||||
{0,-0.95,-0.3,"Back"},
|
||||
{0,0.95,-0.3,"Front"},
|
||||
{-4.1,0,-0.3,"Left"},
|
||||
{4.1,0,-0.3,"Right"},
|
||||
{0,0,1,"Top"}
|
||||
};
|
||||
};
|
||||
class Fort_RazorWire: Fort_RazorWirePreview {};
|
||||
|
||||
class Sandbag1_DZ: Barrier {
|
||||
points[] = {
|
||||
{0,0,0,"Pivot"},
|
||||
{-1.5,0,0,"Left"},
|
||||
{1.5,0,0,"Right"},
|
||||
{0,0,0.4,"Top"}
|
||||
};
|
||||
};
|
||||
|
||||
class BagFenceRound_DZ: Barrier {
|
||||
points[] = {
|
||||
{0,0,0,"Pivot"},
|
||||
{-1.295,0.38,0,"Left"},
|
||||
{1.295,0.38,0,"Right"},
|
||||
{0,0,0.4,"Top"}
|
||||
};
|
||||
};
|
||||
|
||||
//Snapping whitelists for Floors, walls and stairs
|
||||
class FloorsWallsStairs {
|
||||
snapTo[] = {
|
||||
"WoodFloorQuarter_DZ",
|
||||
"WoodFloorHalf_DZ",
|
||||
"WoodFloor_DZ",
|
||||
"WoodStairs_DZ",
|
||||
"WoodStairsSans_DZ",
|
||||
"WoodSmallWallDoor_DZ",
|
||||
"WoodSmallWall_DZ",
|
||||
"WoodSmallWallWin_DZ",
|
||||
"Land_DZE_WoodDoor",
|
||||
"Land_DZE_WoodDoorLocked",
|
||||
"WoodLargeWall_DZ",
|
||||
"Land_DZE_LargeWoodDoor",
|
||||
"WoodLargeWallWin_DZ",
|
||||
"WoodLargeWallDoor_DZ",
|
||||
"Land_DZE_GarageWoodDoor",
|
||||
"Land_DZE_GarageWoodDoorLocked",
|
||||
"Land_DZE_LargeWoodDoorLocked",
|
||||
"WoodSmallWallThird_DZ",
|
||||
"CinderWall_DZ",
|
||||
"CinderWallDoorway_DZ",
|
||||
"CinderWallDoorLocked_DZ",
|
||||
"CinderWallDoor_DZ",
|
||||
"CinderWallSmallDoorway_DZ",
|
||||
"CinderWallDoorSmallLocked_DZ",
|
||||
"CinderWallHalf_DZ",
|
||||
"CinderWallDoorSmall_DZ",
|
||||
"MetalFloor_DZ"
|
||||
};
|
||||
radius = 7;
|
||||
};
|
||||
|
||||
class WoodFloorQuarter_Preview_DZ: FloorsWallsStairs { //fix for broken offsets in ghost
|
||||
points[] = {
|
||||
{0,0,0,"Pivot"},
|
||||
{0,-1.23,0,"Back"},
|
||||
{0,1.23,0,"Front"},
|
||||
{-1.24,0,0,"Left"},
|
||||
{1.24,0,0,"Right"}
|
||||
};
|
||||
};
|
||||
|
||||
class WoodFloorQuarter_DZ: FloorsWallsStairs {
|
||||
points[] = {
|
||||
{0,0,0,"Pivot"},
|
||||
{0,-1.23,0.137726,"Back"},
|
||||
{0,1.23,0.137726,"Front"},
|
||||
{-1.24,0,0.137726,"Left"},
|
||||
{1.24,0,0.137726,"Right"}
|
||||
};
|
||||
};
|
||||
|
||||
class WoodFloorHalf_Preview_DZ: FloorsWallsStairs { //fix for broken offsets in ghost
|
||||
points[] = {
|
||||
{0,0,0,"Pivot"},
|
||||
{0,-2.34,0,"Back"},
|
||||
{0,2.34,0,"Front"},
|
||||
{-1.25,0,0,"Left"},
|
||||
{1.25,0,0,"Right"}
|
||||
};
|
||||
};
|
||||
class WoodFloorHalf_DZ: FloorsWallsStairs{
|
||||
points[] = {
|
||||
{0,0,0,"Pivot"},
|
||||
{0,-2.34,0.1407,"Back"},
|
||||
{0,2.34,0.1407,"Front"},
|
||||
{-1.25,0,0.1407,"Left"},
|
||||
{1.25,0,0.1407,"Right"}
|
||||
};
|
||||
};
|
||||
|
||||
class WoodFloor_Preview_DZ: FloorsWallsStairs {
|
||||
points[] = {
|
||||
{0,0,0,"Pivot"},
|
||||
{0,-2.33,0.130,"Back"},
|
||||
{0,2.33,0.130,"Front"},
|
||||
{-2.45,0,0.130,"Left"},
|
||||
{2.45,0,0.130,"Right"}
|
||||
};
|
||||
radius = 10;
|
||||
};
|
||||
class WoodFloor_DZ: WoodFloor_Preview_DZ{};
|
||||
|
||||
class Stairs_DZE: FloorsWallsStairs {
|
||||
points[] = {
|
||||
{0,0,0,"Pivot"},
|
||||
{1.56055,-0.78,1.5,"Back"},
|
||||
{1.56055,0.78,1.5,"Front"},
|
||||
{1.73926,0.05,2.9,"Top"},
|
||||
{-1.73926,0.05,0,"Bottom"}
|
||||
};
|
||||
};
|
||||
class WoodStairs_DZ: Stairs_DZE {};
|
||||
class WoodStairs_Preview_DZ: Stairs_DZE {};
|
||||
class WoodStairsSans_Preview_DZ: Stairs_DZE {};
|
||||
class WoodStairsSans_DZ: Stairs_DZE {};
|
||||
|
||||
class WoodSmall_DZE: FloorsWallsStairs { // Small wood walls
|
||||
points[] = {
|
||||
{0,0,0,"Pivot"},
|
||||
{-2.285, 0, 1.5,"Left"},
|
||||
{2.285, 0, 1.5,"Right"},
|
||||
{0, 0, 3,"Top"}
|
||||
};
|
||||
};
|
||||
class WoodSmallWallDoor_Preview_DZ: WoodSmall_DZE {};
|
||||
class WoodSmallWall_Preview_DZ: WoodSmall_DZE {};
|
||||
class WoodSmallWallWin_Preview_DZ: WoodSmall_DZE {};
|
||||
class WoodSmallWallDoor_DZ: WoodSmall_DZE {};
|
||||
class WoodSmallWall_DZ: WoodSmall_DZE {};
|
||||
class WoodSmallWallWin_DZ: WoodSmall_DZE {};
|
||||
class Land_DZE_WoodDoor: WoodSmall_DZE {};
|
||||
class Land_DZE_WoodDoorLocked: WoodSmall_DZE {};
|
||||
class WoodDoor_Preview_DZ: WoodSmall_DZE{};
|
||||
|
||||
class WoodLarge_DZE: FloorsWallsStairs { //Large wood walls
|
||||
points[] = {
|
||||
{0,0,0,"Pivot"},
|
||||
{-2.45, 0, 1.5,"Left"},
|
||||
{2.45, 0, 1.5,"Right"},
|
||||
{0, 0, 3,"Top"}
|
||||
};
|
||||
};
|
||||
class WoodLargeWall_Preview_DZ: WoodLarge_DZE {};
|
||||
class WoodLargeWallWin_Preview_DZ: WoodLarge_DZE {};
|
||||
class WoodLargeWallDoor_Preview_DZ: WoodLarge_DZE {};
|
||||
class WoodSmallWallThird_Preview_DZ: WoodLarge_DZE {
|
||||
points[] = {
|
||||
{0,0,0,"Pivot"},
|
||||
{-2.445, 0, 1.5,"Left"},
|
||||
{2.445, 0, 1.5,"Right"},
|
||||
{0, 0, 1.17,"Top"}
|
||||
};
|
||||
};
|
||||
class WoodSmallWallThird_DZ: WoodSmallWallThird_Preview_DZ{};
|
||||
class WoodLargeWall_DZ: WoodLarge_DZE {};
|
||||
class Land_DZE_LargeWoodDoor: WoodLarge_DZE {};
|
||||
class WoodLargeWallWin_DZ: WoodLarge_DZE {};
|
||||
class WoodLargeWallDoor_DZ: WoodLarge_DZE {};
|
||||
class Land_DZE_GarageWoodDoor: WoodLarge_DZE {};
|
||||
class GarageWoodDoor_Preview_DZ: WoodLarge_DZE {};
|
||||
class Land_DZE_GarageWoodDoorLocked: WoodLarge_DZE {};
|
||||
class Land_DZE_LargeWoodDoorLocked: WoodLarge_DZE {};
|
||||
class LargeWoodDoor_Preview_DZ: WoodLarge_DZE {};
|
||||
|
||||
class Cinder_DZE: FloorsWallsStairs { //All cinder walls and doors
|
||||
points[] = {
|
||||
{0,0,0,"Pivot"},
|
||||
{-2.752, 0, 1.5,"Left"},
|
||||
{2.752, 0, 1.5,"Right"},
|
||||
{0, 0, 3.37042,"Top"}
|
||||
};
|
||||
radius = 10;
|
||||
};
|
||||
class CinderWall_Preview_DZ: Cinder_DZE {};
|
||||
class CinderWallDoorway_Preview_DZ: Cinder_DZE {};
|
||||
class CinderWallSmallDoorway_Preview_DZ: Cinder_DZE {};
|
||||
class CinderWallHalf_Preview_DZ: Cinder_DZE {
|
||||
points[] = {
|
||||
{0,0,0,"Pivot"},
|
||||
{-2.752, 0, 1.5,"Left"},
|
||||
{2.752, 0, 1.5,"Right"},
|
||||
{0, 0, 1.5,"Top"}
|
||||
};
|
||||
};
|
||||
class CinderWall_DZ: Cinder_DZE {};
|
||||
class CinderWallDoorway_DZ: Cinder_DZE {};
|
||||
class CinderWallDoorLocked_DZ: Cinder_DZE {};
|
||||
class CinderWallDoor_DZ: Cinder_DZE {};
|
||||
class CinderWallSmallDoorway_DZ: Cinder_DZE {};
|
||||
class CinderWallDoorSmallLocked_DZ: Cinder_DZE {};
|
||||
class CinderWallHalf_DZ: Cinder_DZE {
|
||||
points[] = {
|
||||
{0,0,0,"Pivot"},
|
||||
{-2.752, 0, 1.5,"Left"},
|
||||
{2.752, 0, 1.5,"Right"},
|
||||
{0, 0, 1.5,"Top"}
|
||||
};
|
||||
};
|
||||
class CinderWallDoorSmall_DZ: Cinder_DZE {};
|
||||
|
||||
class MetalFloor_Preview_DZ: FloorsWallsStairs { //fix for broken offsets in ghost
|
||||
points[] = {
|
||||
{0,0,0.011,"Pivot"},
|
||||
{0, -2.64, 0.009,"Back"},
|
||||
{0, 2.64, 0.009,"Front"},
|
||||
{-2.64, 0, 0.009,"Left"},
|
||||
{2.64, 0, 0.009,"Right"}
|
||||
};
|
||||
radius = 12;
|
||||
};
|
||||
class MetalFloor_DZ: FloorsWallsStairs{
|
||||
points[] = {
|
||||
{0,0,0,"Pivot"},
|
||||
{0, -2.64, 0.15,"Back"},
|
||||
{0, 2.64, 0.15,"Front"},
|
||||
{-2.64, 0, 0.15,"Left"},
|
||||
{2.64, 0, 0.15,"Right"}
|
||||
};
|
||||
radius = 12;
|
||||
};
|
||||
|
||||
|
||||
//Non essential Items that only snap to themselves, do whitelist inheritance if you want these to snap
|
||||
class WoodCrate_DZ {
|
||||
snapTo[] = {
|
||||
"WoodCrate_DZ"
|
||||
};
|
||||
radius = 5;
|
||||
points[] = {
|
||||
{0,0,0,"Pivot"},
|
||||
{0,-0.47,0,"Back"},
|
||||
{0,0.47,0,"Front"},
|
||||
{-0.47,0,0,"Left"},
|
||||
{0.47,0,0,"Right"},
|
||||
{0,0,0.47,"Top"}
|
||||
};
|
||||
};
|
||||
|
||||
class MetalPanel_DZ {
|
||||
snapTo[] = {
|
||||
"MetalPanel_DZ"
|
||||
};
|
||||
radius = 5;
|
||||
points[] = {
|
||||
{0,0,0,"Pivot"},
|
||||
{-1.5,0,0,"Left"},
|
||||
{1.5,0,0,"Right"}
|
||||
};
|
||||
};
|
||||
|
||||
class MetalGate_DZ {
|
||||
snapTo[] = {
|
||||
"MetalGate_DZ"
|
||||
};
|
||||
radius = 5;
|
||||
points[] = {
|
||||
{0,0,0,"Pivot"},
|
||||
{-4.1,0,0,"Left"}
|
||||
};
|
||||
};
|
||||
|
||||
class StickFence_DZ {
|
||||
snapTo[] = {
|
||||
"StickFence_DZ"
|
||||
};
|
||||
radius = 10;
|
||||
points[] = {
|
||||
{0,0,0,"Pivot"},
|
||||
{-2.95,0,0.3,"Left"},
|
||||
{2.95,0,0.3,"Right"}
|
||||
};
|
||||
};
|
||||
|
||||
class Fence_corrugated_DZ {
|
||||
snapTo[] = {
|
||||
"Fence_corrugated_DZ"
|
||||
};
|
||||
radius = 10;
|
||||
points[] = {
|
||||
{0,0,0,"Pivot"},
|
||||
{-1.95,0,0.88,"Left"},
|
||||
{1.95,0,0.88,"Right"}
|
||||
};
|
||||
};
|
||||
|
||||
class WoodRamp_Preview_DZ {
|
||||
snapTo[] = {
|
||||
"WoodRamp_DZ"
|
||||
};
|
||||
radius = 7;
|
||||
points[] = {
|
||||
{0,0,0,"Pivot"},
|
||||
{0.65,-1.7,1.2,"Back"},
|
||||
{0.65,1.5,1.2,"Front"},
|
||||
{3.34,-0.115,2.82,"Top"}
|
||||
};
|
||||
};
|
||||
class WoodRamp_DZ: WoodRamp_Preview_DZ{};
|
||||
|
||||
class WoodLadder_Preview_DZ {
|
||||
snapTo[] = {
|
||||
"WoodLadder_DZ"
|
||||
};
|
||||
radius = 5;
|
||||
points[] = {
|
||||
{0,0,0,"Pivot"},
|
||||
{-0.4,0,1.725,"Left"},
|
||||
{0.4,0,1.725,"Right"}
|
||||
};
|
||||
};
|
||||
class WoodLadder_DZ: WoodLadder_Preview_DZ{};
|
||||
|
||||
class VaultStorageLocked {
|
||||
snapTo[] = {
|
||||
"VaultStorageLocked",
|
||||
"VaultStorage"
|
||||
};
|
||||
radius = 5;
|
||||
points[] = {
|
||||
{0,0,0,"Pivot"},
|
||||
{0,0.284,0.615,"Back"},
|
||||
{0,0,1.23,"Top"},
|
||||
{-0.362,0,0.615,"Left"},
|
||||
{0.362,0,0.615,"Right"}
|
||||
};
|
||||
|
||||
};
|
||||
class VaultStorage: VaultStorageLocked {};
|
||||
};
|
||||
@@ -26,6 +26,8 @@ class CfgLoot {
|
||||
,{"FoodBioMeat",0.01}
|
||||
,{"8Rnd_9x18_MakarovSD",0.01}
|
||||
,{"ItemDocument",0.03}
|
||||
,{"RedRyder",0.06}
|
||||
,{"350Rnd_BB_Magazine",0.07}
|
||||
};
|
||||
office2[] = {
|
||||
{"FoodCanUnlabeled",0.07}
|
||||
@@ -47,6 +49,7 @@ class CfgLoot {
|
||||
,{"8Rnd_9x18_MakarovSD",0.01}
|
||||
,{"ItemBriefcaseEmpty",0.01}
|
||||
,{"ItemDocument",0.02}
|
||||
,{"350Rnd_BB_Magazine",0.09}
|
||||
};
|
||||
food[] = {
|
||||
{"TrashTinCan",0.09}
|
||||
@@ -84,6 +87,7 @@ class CfgLoot {
|
||||
,{"8Rnd_9x18_Makarov",0.08}
|
||||
,{"15Rnd_W1866_Slug",0.02}
|
||||
,{"WoodenArrow",0.04}
|
||||
,{"350Rnd_BB_Magazine",0.05}
|
||||
,{"HandRoadFlare",0.07}
|
||||
,{"ItemPainkiller",0.02}
|
||||
,{"HandChemGreen",0.01}
|
||||
@@ -115,12 +119,14 @@ class CfgLoot {
|
||||
,{"8Rnd_9x18_Makarov",0.09}
|
||||
,{"15Rnd_W1866_Slug",0.02}
|
||||
,{"WoodenArrow",0.04}
|
||||
,{"350Rnd_BB_Magazine",0.05}
|
||||
,{"HandRoadFlare",0.07}
|
||||
,{"ItemPainkiller",0.02}
|
||||
,{"HandChemGreen",0.01}
|
||||
,{"HandChemBlue",0.03}
|
||||
,{"HandChemRed",0.03}
|
||||
,{"ItemHeatPack",0.04}
|
||||
,{"350Rnd_BB_Magazine",0.09}
|
||||
};
|
||||
medical[] = {
|
||||
{"ItemBandage",0.4}
|
||||
@@ -247,11 +253,14 @@ class CfgLoot {
|
||||
,{"10x_303",0.1}
|
||||
,{"ItemWaterbottleUnfilled",0.05}
|
||||
,{"WoodenArrow",0.2}
|
||||
,{"350Rnd_BB_Magazine",0.05}
|
||||
,{"ItemHeatPack",0.02}
|
||||
,{"FoodMRE",0.01}
|
||||
,{"FoodNutmix",0.02}
|
||||
,{"ItemDocument",0.01}
|
||||
,{"ItemMixOil",0.01}
|
||||
,{"RedRyder",0.06}
|
||||
,{"350Rnd_BB_Magazine",0.09}
|
||||
};
|
||||
worker[] = {
|
||||
{"FoodCanUnlabeled",0.09}
|
||||
@@ -369,6 +378,7 @@ class CfgLoot {
|
||||
,{"Saiga12K",0.13}
|
||||
,{"Remington870_lamp",0.1}
|
||||
,{"Crossbow_DZ",0.07}
|
||||
,{"RedRyder",0.06}
|
||||
,{"M1014",0.05}
|
||||
};
|
||||
farmweapons[] = {
|
||||
@@ -378,8 +388,10 @@ class CfgLoot {
|
||||
,{"Saiga12K",0.13}
|
||||
,{"Remington870_lamp",0.1}
|
||||
,{"Crossbow_DZ",0.07}
|
||||
,{"RedRyder",0.06}
|
||||
,{"huntingrifle",0.05}
|
||||
,{"Chainsaw",0.01}
|
||||
,{"RedRyder",0.06}
|
||||
};
|
||||
sniperrifles[] = {
|
||||
{"AK_107_PSO",0.1}
|
||||
|
||||
@@ -1666,6 +1666,8 @@ class CfgMagazines {
|
||||
|
||||
#include "CfgMagazines\MeleeSwing.hpp"
|
||||
|
||||
#include "CfgMagazines\Planting.hpp"
|
||||
|
||||
class HandGrenade_Stone;
|
||||
class ItemTrashToiletpaper : HandGrenade_Stone {
|
||||
scope = public;
|
||||
@@ -1707,6 +1709,15 @@ class CfgMagazines {
|
||||
output[] = {{"ItemCanvas",1}};
|
||||
input[] = {{"ItemKiloHemp",1}};
|
||||
};
|
||||
class Crafting1
|
||||
{
|
||||
text = "Craft Hemp Seeds";
|
||||
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {""};
|
||||
requiretools[] = {"ItemKnife"};
|
||||
output[] = {{"ItemHempSeed",5}};
|
||||
input[] = {{"ItemKiloHemp",1}};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -28,7 +28,9 @@ class 100Rnd_762x51_M240 : CA_Magazine {
|
||||
model = "\ca\CommunityConfigurationProject_E\Gameplay_ActualModelsOfWeaponMagazinesVisibleOnTheGround\p3d\100Rnd_762x51_M240.p3d";
|
||||
};
|
||||
class 200Rnd_762x51_M240 : 100Rnd_762x51_M240 {
|
||||
displayName = "200Rnd. M240";
|
||||
count = 200;
|
||||
descriptionShort = "Caliber: 7.62x51mm NATO <br/>Rounds: 200 <br/>Used in: M240, Mk 48 Mod 0";
|
||||
};
|
||||
class 200Rnd_556x45_M249 : CA_Magazine {
|
||||
scope = 2;
|
||||
@@ -153,4 +155,4 @@ class WoodenArrow : CA_Magazine {
|
||||
output[] = {"Quiver"};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -64,6 +64,18 @@ class FoodPumpkin : FoodEdible {
|
||||
weight = 1;
|
||||
model = "z\addons\dayz_communityassets\models\pistachio.p3d"; // TODO: model + icon
|
||||
picture = "\z\addons\dayz_communityassets\pictures\equip_pistachios_CA.paa";
|
||||
class ItemActions
|
||||
{
|
||||
class Crafting
|
||||
{
|
||||
text = "Craft Pumpkin Seeds";
|
||||
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {""};
|
||||
requiretools[] = {"ItemKnife"};
|
||||
output[] = {{"ItemPumpkinSeed",5}};
|
||||
input[] = {{"FoodPumpkin",1}};
|
||||
};
|
||||
};
|
||||
};
|
||||
class FoodSunFlowerSeed : FoodEdible {
|
||||
scope = public;
|
||||
|
||||
92
SQF/dayz_code/Configs/CfgMagazines/Planting.hpp
Normal file
92
SQF/dayz_code/Configs/CfgMagazines/Planting.hpp
Normal file
@@ -0,0 +1,92 @@
|
||||
class ItemFertilizer: CA_Magazine {
|
||||
scope = public;
|
||||
count = 1;
|
||||
displayName = "Fertilizer";
|
||||
descriptionShort = "Fertilizer";
|
||||
weight = 0.1;
|
||||
model = "z\addons\dayz_communityassets\models\mre.p3d"; // TODO: model + icon
|
||||
picture = "\z\addons\dayz_communityassets\pictures\equip_mre_CA.paa";
|
||||
type = 256;
|
||||
};
|
||||
|
||||
class ItemPumpkinSeed: CA_Magazine {
|
||||
scope = public;
|
||||
count = 1;
|
||||
displayName = "A Pumpkin Seed";
|
||||
descriptionShort = "A Pumpkin Seed";
|
||||
weight = 0.1;
|
||||
model = "\z\addons\dayz_epoch\models\doc_child1.p3d"; // TODO: model + icon
|
||||
picture = "\z\addons\dayz_epoch\pictures\equip_child1_ca.paa";
|
||||
type = 256;
|
||||
class ItemActions {
|
||||
class Crafting
|
||||
{
|
||||
text = "Craft Pumpkin Plant";
|
||||
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {""};
|
||||
requiretools[] = {"ItemKnife"};
|
||||
output[] = {{"ItemPumpkinPlant",1},{"ItemWaterbottleUnfilled",1}};
|
||||
input[] = {{"ItemPumpkinSeed",1},{"ItemFertilizer",1},{"ItemWaterbottle",1}};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class ItemPumpkinPlant: CA_Magazine {
|
||||
scope = public;
|
||||
count = 1;
|
||||
displayName = "A Pumpkin Plant";
|
||||
descriptionShort = "A Pumpkin Plant";
|
||||
weight = 0.1;
|
||||
model = "\z\addons\dayz_epoch\models\doc_child1.p3d"; // TODO: model + icon
|
||||
picture = "\z\addons\dayz_epoch\pictures\equip_child1_ca.paa";
|
||||
type = 256;
|
||||
class ItemActions {
|
||||
class Build {
|
||||
text = "Plant Pumpkin";
|
||||
script = "spawn player_build;";
|
||||
require[] = {"ItemEtool"};
|
||||
create = "Grave"; // TODO: model for Pumpkin Stage 1
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class ItemHempSeed: CA_Magazine {
|
||||
scope = public;
|
||||
count = 1;
|
||||
displayName = "A Hemp Seed";
|
||||
descriptionShort = "A Hemp Seed";
|
||||
weight = 0.1;
|
||||
model = "\z\addons\dayz_epoch\models\doc_child2.p3d"; // TODO: model + icon
|
||||
picture = "\z\addons\dayz_epoch\pictures\equip_child2_ca.paa";
|
||||
type = 256;
|
||||
class ItemActions {
|
||||
class Crafting
|
||||
{
|
||||
text = "Craft Hemp Plant";
|
||||
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {""};
|
||||
requiretools[] = {"ItemKnife"};
|
||||
output[] = {{"ItemHempPlant",1},{"ItemWaterbottleUnfilled",1}};
|
||||
input[] = {{"ItemHempSeed",1},{"ItemFertilizer",1},{"ItemWaterbottle",1}};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class ItemHempPlant: CA_Magazine {
|
||||
scope = public;
|
||||
count = 1;
|
||||
displayName = "A Hemp Plant";
|
||||
descriptionShort = "A Hemp Plant";
|
||||
weight = 0.1;
|
||||
model = "\z\addons\dayz_epoch\models\doc_child2.p3d"; // TODO: model + icon
|
||||
picture = "\z\addons\dayz_epoch\pictures\equip_child2_ca.paa";
|
||||
type = 256;
|
||||
class ItemActions {
|
||||
class Build {
|
||||
text = "Plant Hemp";
|
||||
script = "spawn player_build;";
|
||||
require[] = {"ItemEtool"};
|
||||
create = "MAP_c_fern"; // TODO: model for Hemp Stage 1
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -42,7 +42,7 @@ class AH6J_EP1_DZE: AH6J_EP1_DZ
|
||||
scope = 2;
|
||||
side = 2;
|
||||
displayName = "AH6J_DZE";
|
||||
magazines[] = {};
|
||||
magazines[] = {"60Rnd_CMFlareMagazine"};
|
||||
};
|
||||
class AH6X_DZ: AH6_Base_EP1 {
|
||||
displayname = "AH6X Little Bird";
|
||||
@@ -70,6 +70,7 @@ class AH6X_DZ: AH6_Base_EP1 {
|
||||
transportMaxWeapons = 3;
|
||||
transportMaxMagazines = 10;
|
||||
transportmaxbackpacks = 2;
|
||||
fuelCapacity = 242;
|
||||
class Turrets {};
|
||||
};
|
||||
class MH6J_DZ: AH6_Base_EP1 {
|
||||
@@ -98,4 +99,4 @@ class MH6J_DZ: AH6_Base_EP1 {
|
||||
transportMaxMagazines = 20;
|
||||
transportmaxbackpacks = 5;
|
||||
class Turrets {};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -8,7 +8,6 @@ class AN2_DZ: An2_Base_EP1
|
||||
side = 2;
|
||||
crew = "";
|
||||
typicalCargo[] = {};
|
||||
hiddenSelections[] = {};
|
||||
class TransportMagazines{};
|
||||
class TransportWeapons{};
|
||||
weapons[] = {};
|
||||
@@ -20,4 +19,5 @@ class AN2_DZ: An2_Base_EP1
|
||||
transportMaxWeapons = 10;
|
||||
transportMaxMagazines = 80;
|
||||
transportmaxbackpacks = 15;
|
||||
};
|
||||
fuelCapacity = 757;
|
||||
};
|
||||
|
||||
@@ -9,4 +9,5 @@ class BAF_Merlin_DZE : BAF_Merlin_HC3_D {
|
||||
transportMaxWeapons = 15;
|
||||
transportMaxMagazines = 150;
|
||||
transportmaxbackpacks = 5;
|
||||
};
|
||||
fuelCapacity = 3222;
|
||||
};
|
||||
|
||||
@@ -3,4 +3,5 @@ class C130J_US_EP1_DZ: C130J_US_EP1 {
|
||||
transportMaxWeapons = 50;
|
||||
transportMaxMagazines = 400;
|
||||
transportmaxbackpacks = 20;
|
||||
};
|
||||
fuelCapacity = 34095;
|
||||
};
|
||||
|
||||
@@ -117,6 +117,7 @@ class CH47_base_EP1: Helicopter
|
||||
irScanRangeMin = 100;
|
||||
irScanRangeMax = 1000;
|
||||
irScanToEyeFactor = 2;
|
||||
fuelCapacity = 4043;
|
||||
};
|
||||
|
||||
class CH_47F_EP1;
|
||||
@@ -278,4 +279,4 @@ class CH_47F_EP1_DZE: CH47_base_EP1
|
||||
weapon = "M134_2";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -27,4 +27,5 @@ class CH53_DZE : USEC_ch53_E {
|
||||
transportMaxWeapons = 25;
|
||||
transportMaxMagazines = 80;
|
||||
transportmaxbackpacks = 15;
|
||||
fuelCapacity = 3849;
|
||||
};
|
||||
@@ -11,4 +11,5 @@ class MV22_DZ : MV22 {
|
||||
transportMaxWeapons = 20;
|
||||
transportMaxMagazines = 400;
|
||||
transportmaxbackpacks = 10;
|
||||
};
|
||||
fuelCapacity = 6513;
|
||||
};
|
||||
|
||||
@@ -17,7 +17,6 @@ class Mi17_DZ: Mi17_base {
|
||||
side = 2;
|
||||
crew = "";
|
||||
typicalCargo[] = {};
|
||||
hiddenSelections[] = {};
|
||||
class TransportMagazines{};
|
||||
class TransportWeapons{};
|
||||
commanderCanSee = 2+16+32;
|
||||
@@ -26,6 +25,7 @@ class Mi17_DZ: Mi17_base {
|
||||
transportMaxWeapons = 10;
|
||||
transportMaxMagazines = 50;
|
||||
transportmaxbackpacks = 10;
|
||||
fuelCapacity = 1870;
|
||||
|
||||
class Turrets : Turrets {
|
||||
class MainTurret : MainTurret {
|
||||
@@ -64,4 +64,4 @@ class Mi17_Civilian_DZ: Mi17_Civilian {
|
||||
transportMaxWeapons = 10;
|
||||
transportMaxMagazines = 50;
|
||||
transportmaxbackpacks = 10;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -17,7 +17,6 @@ class UH1Y_DZ: UH1_Base {
|
||||
side = 2;
|
||||
crew = "";
|
||||
typicalCargo[] = {};
|
||||
hiddenSelections[] = {};
|
||||
class TransportMagazines{};
|
||||
class TransportWeapons{};
|
||||
commanderCanSee = 2+16+32;
|
||||
@@ -28,6 +27,7 @@ class UH1Y_DZ: UH1_Base {
|
||||
transportmaxbackpacks = 4;
|
||||
weapons[] = {};
|
||||
magazines[] = {};
|
||||
fuelCapacity = 1333;
|
||||
class Turrets : Turrets {
|
||||
class MainTurret : MainTurret {
|
||||
magazines[] = {"2000Rnd_762x51_M134"};
|
||||
@@ -64,7 +64,6 @@ class UH1H_DZ: UH1H_base {
|
||||
side = 2;
|
||||
crew = "";
|
||||
typicalCargo[] = {};
|
||||
hiddenSelections[] = {};
|
||||
class TransportMagazines{};
|
||||
class TransportWeapons{};
|
||||
commanderCanSee = 2+16+32;
|
||||
@@ -73,6 +72,7 @@ class UH1H_DZ: UH1H_base {
|
||||
transportMaxWeapons = 5;
|
||||
transportMaxMagazines = 25;
|
||||
transportmaxbackpacks = 4;
|
||||
fuelCapacity = 1333;
|
||||
class Turrets : Turrets {
|
||||
class MainTurret : MainTurret {
|
||||
magazines[] = {"100Rnd_762x51_M240"};
|
||||
@@ -91,4 +91,4 @@ class UH1H_DZE: UH1H_DZ {
|
||||
magazines[] = {};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -11,6 +11,7 @@ class UH60_Base: Helicopter {
|
||||
magazines[] = {"60Rnd_CMFlareMagazine"};
|
||||
lockDetectionSystem = "8 + 4";
|
||||
incommingMisslieDetectionSystem = 0;
|
||||
fuelCapacity = 2760;
|
||||
};
|
||||
class MH60S_DZ : UH60_Base {
|
||||
crew = "";
|
||||
@@ -247,14 +248,13 @@ class UH60M_base_EP1: UH60_Base {
|
||||
icon = "\ca\air_e\data\UI\Icon_uh60m_CA.paa";
|
||||
mapSize = 17;
|
||||
class Library {
|
||||
libTextDesc = "The Blackhawk is the US Army<6D>s front-line utility helicopter used for transport roles, medical evacuation and even air support.<br />It is capable of carrying 11 combat-equipped soldiers. Easy to maintain in the field, the Blackhawk performs well in a variety of roles including air assault and medical evacuation.";
|
||||
libTextDesc = "The Blackhawk is the US Army<6D>s front-line utility helicopter used for transport roles, medical evacuation and even air support.<br />It is capable of carrying 11 combat-equipped soldiers. Easy to maintain in the field, the Blackhawk performs well in a variety of roles including air assault and medical evacuation.";
|
||||
};
|
||||
crew = "US_Soldier_Pilot_EP1";
|
||||
typicalCargo[] = {"US_Soldier_Pilot_EP1","US_Soldier_Pilot_EP1"};
|
||||
gunnerAction = "ManActTestDriver";
|
||||
transportMaxBackpacks = 10;
|
||||
transportSoldier = 13;
|
||||
fuelCapacity = 600;
|
||||
maxSpeed = 295;
|
||||
mainRotorSpeed = 1.2;
|
||||
backRotorSpeed = 6.1;
|
||||
@@ -549,4 +549,4 @@ class UH60M_EP1_DZE: UH60M_US_base_EP1 {
|
||||
weapon = "M134_2";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -24,5 +24,5 @@ class KamazRefuel_DZ: KamazRefuel {
|
||||
class TransportMagazines{};
|
||||
class TransportWeapons{};
|
||||
transportFuel = 0;
|
||||
fuelCapacity = 10000;
|
||||
};
|
||||
fuelCapacity = 10400;
|
||||
};
|
||||
|
||||
@@ -592,7 +592,7 @@ class Lada2_DZE2: Lada2_DZE1 {
|
||||
};
|
||||
|
||||
class Upgrades {
|
||||
ItemLRK[] = {"Lada1_DZE3",{},{{"ItemLRK",1},{"PartGeneric",1},{"ItemTent",1}}};
|
||||
ItemLRK[] = {"Lada2_DZE3",{},{{"ItemLRK",1},{"PartGeneric",1},{"ItemTent",1}}};
|
||||
};
|
||||
};
|
||||
class LadaLM_DZE2: LadaLM_DZE1 {
|
||||
@@ -639,7 +639,7 @@ class LadaLM_DZE2: LadaLM_DZE1 {
|
||||
};
|
||||
|
||||
class Upgrades {
|
||||
ItemLRK[] = {"Lada1_DZE3",{},{{"ItemLRK",1},{"PartGeneric",1},{"ItemTent",1}}};
|
||||
ItemLRK[] = {"LadaLM_DZE3",{},{{"ItemLRK",1},{"PartGeneric",1},{"ItemTent",1}}};
|
||||
};
|
||||
};
|
||||
class Lada1_TK_CIV_EP1_DZE2: Lada1_TK_CIV_EP1_DZE1 {
|
||||
@@ -686,7 +686,7 @@ class Lada1_TK_CIV_EP1_DZE2: Lada1_TK_CIV_EP1_DZE1 {
|
||||
};
|
||||
|
||||
class Upgrades {
|
||||
ItemLRK[] = {"Lada1_DZE3",{},{{"ItemLRK",1},{"PartGeneric",1},{"ItemTent",1}}};
|
||||
ItemLRK[] = {"Lada1_TK_CIV_EP1_DZE3",{},{{"ItemLRK",1},{"PartGeneric",1},{"ItemTent",1}}};
|
||||
};
|
||||
};
|
||||
class Lada2_TK_CIV_EP1_DZE2: Lada2_TK_CIV_EP1_DZE1 {
|
||||
@@ -733,7 +733,7 @@ class Lada2_TK_CIV_EP1_DZE2: Lada2_TK_CIV_EP1_DZE1 {
|
||||
};
|
||||
|
||||
class Upgrades {
|
||||
ItemLRK[] = {"Lada1_DZE3",{},{{"ItemLRK",1},{"PartGeneric",1},{"ItemTent",1}}};
|
||||
ItemLRK[] = {"Lada2_TK_CIV_EP1_DZE3",{},{{"ItemLRK",1},{"PartGeneric",1},{"ItemTent",1}}};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -799,4 +799,4 @@ class Lada1_TK_CIV_EP1_DZE4: Lada1_TK_CIV_EP1_DZE3 {
|
||||
};
|
||||
class Lada2_TK_CIV_EP1_DZE4: Lada2_TK_CIV_EP1_DZE3 {
|
||||
fuelCapacity = 210; // car 100
|
||||
};
|
||||
};
|
||||
|
||||
@@ -333,25 +333,112 @@ class Offroad_DSHKM_Gue_DZE: Offroad_DSHKM_base
|
||||
gunnerCompartments = "Compartment2";
|
||||
};
|
||||
};
|
||||
class Upgrades
|
||||
{
|
||||
ItemORP[] = {"Offroad_DSHKM_Gue_DZE1",
|
||||
{ },
|
||||
{
|
||||
{ "ItemORP",1 },
|
||||
{ "PartEngine",2 } }};
|
||||
};
|
||||
};
|
||||
|
||||
// Performance 1
|
||||
class Offroad_DSHKM_Gue_DZE1: Offroad_DSHKM_Gue_DZE
|
||||
{
|
||||
maxspeed = 170; // Offroad_DSHKM_base 150 | car 100
|
||||
class Upgrades
|
||||
{
|
||||
ItemLRK[] = {"Offroad_DSHKM_Gue_DZE2",
|
||||
{ },
|
||||
{
|
||||
{ "ItemLRK",1 },
|
||||
{ "PartGeneric",2 },
|
||||
{ "ItemTent",1 } }};
|
||||
};
|
||||
};
|
||||
// Armmor 2
|
||||
class Offroad_DSHKM_Gue_DZE2: Offroad_DSHKM_Gue_DZE1
|
||||
{
|
||||
armor = 50; // car 20
|
||||
class HitPoints: HitPoints
|
||||
{
|
||||
class HitLFWheel: HitLFWheel
|
||||
{
|
||||
armor = 0.3;
|
||||
};
|
||||
class HitLBWheel: HitLBWheel
|
||||
{
|
||||
armor = 0.3;
|
||||
};
|
||||
class HitRFWheel: HitRFWheel
|
||||
{
|
||||
armor = 0.3;
|
||||
};
|
||||
class HitRBWheel: HitRBWheel
|
||||
{
|
||||
armor = 0.3;
|
||||
};
|
||||
class HitFuel
|
||||
{
|
||||
armor = 0.28;
|
||||
material = -1;
|
||||
name = "palivo";
|
||||
visual = "";
|
||||
passThrough = 1;
|
||||
};
|
||||
class HitEngine
|
||||
{
|
||||
armor = 1;
|
||||
material = -1;
|
||||
name = "motor";
|
||||
visual = "";
|
||||
passThrough = 1;
|
||||
};
|
||||
class HitGlass1: HitGlass1
|
||||
{
|
||||
armor = 0.1;
|
||||
};
|
||||
class HitGlass2: HitGlass2
|
||||
{
|
||||
armor = 0.1;
|
||||
};
|
||||
class HitGlass3: HitGlass3
|
||||
{
|
||||
armor = 0.1;
|
||||
};
|
||||
class HitGlass4: HitGlass4
|
||||
{
|
||||
armor = 0.1;
|
||||
};
|
||||
};
|
||||
class Upgrades
|
||||
{
|
||||
ItemLRK[] = {"Offroad_DSHKM_Gue_DZE3",
|
||||
{ },
|
||||
{
|
||||
{ "ItemLRK",1 },
|
||||
{ "PartGeneric",2 },
|
||||
{ "ItemTent",1 } }};
|
||||
};
|
||||
|
||||
};
|
||||
// Cargo 3
|
||||
class Offroad_DSHKM_Gue_DZE3: Offroad_DSHKM_Gue_DZE2
|
||||
{
|
||||
transportMaxWeapons = 20; // car 10
|
||||
transportMaxMagazines = 100; // car 50
|
||||
transportmaxbackpacks = 4; // car 2
|
||||
transportmaxbackpacks = 4; // car 2
|
||||
class Upgrades
|
||||
{
|
||||
ItemTNK[] = {"Offroad_DSHKM_Gue_DZE4",
|
||||
{ },
|
||||
{
|
||||
{ "ItemTNK",1 },
|
||||
{ "PartFueltank",2 } }};
|
||||
};
|
||||
};
|
||||
|
||||
// Fuel 4
|
||||
class Offroad_DSHKM_Gue_DZE4: Offroad_DSHKM_Gue_DZE3
|
||||
{
|
||||
|
||||
@@ -219,7 +219,8 @@ class UAZ_Unarmed_TK_CIV_EP1_DZE1: UAZ_Unarmed_TK_CIV_EP1 {
|
||||
|
||||
// Armor 2
|
||||
class UAZ_CDF_DZE2: UAZ_CDF_DZE1 {
|
||||
armor = 50; // car 20
|
||||
armor = 100; // UAZ 40
|
||||
damageResistance = 0.02099;
|
||||
class HitPoints: HitPoints {
|
||||
class HitLFWheel: HitLFWheel {
|
||||
armor = 0.3;
|
||||
@@ -266,7 +267,8 @@ class UAZ_CDF_DZE2: UAZ_CDF_DZE1 {
|
||||
};
|
||||
};
|
||||
class UAZ_INS_DZE2: UAZ_INS_DZE1 {
|
||||
armor = 50; // car 20
|
||||
armor = 100; // UAZ 40
|
||||
damageResistance = 0.02099;
|
||||
class HitPoints: HitPoints {
|
||||
class HitLFWheel: HitLFWheel {
|
||||
armor = 0.3;
|
||||
@@ -313,7 +315,8 @@ class UAZ_INS_DZE2: UAZ_INS_DZE1 {
|
||||
};
|
||||
};
|
||||
class UAZ_RU_DZE2: UAZ_RU_DZE1 {
|
||||
armor = 50; // car 20
|
||||
armor = 100; // UAZ 40
|
||||
damageResistance = 0.02099;
|
||||
class HitPoints: HitPoints {
|
||||
class HitLFWheel: HitLFWheel {
|
||||
armor = 0.3;
|
||||
@@ -360,7 +363,8 @@ class UAZ_RU_DZE2: UAZ_RU_DZE1 {
|
||||
};
|
||||
};
|
||||
class UAZ_Unarmed_TK_EP1_DZE2: UAZ_Unarmed_TK_EP1_DZE1 {
|
||||
armor = 50; // car 20
|
||||
armor = 100; // UAZ 40
|
||||
damageResistance = 0.02099;
|
||||
class HitPoints: HitPoints {
|
||||
class HitLFWheel: HitLFWheel {
|
||||
armor = 0.3;
|
||||
@@ -407,7 +411,8 @@ class UAZ_Unarmed_TK_EP1_DZE2: UAZ_Unarmed_TK_EP1_DZE1 {
|
||||
};
|
||||
};
|
||||
class UAZ_Unarmed_UN_EP1_DZE2: UAZ_Unarmed_UN_EP1_DZE1 {
|
||||
armor = 50; // car 20
|
||||
armor = 100; // UAZ 40
|
||||
damageResistance = 0.02099;
|
||||
class HitPoints: HitPoints {
|
||||
class HitLFWheel: HitLFWheel {
|
||||
armor = 0.3;
|
||||
@@ -454,7 +459,8 @@ class UAZ_Unarmed_UN_EP1_DZE2: UAZ_Unarmed_UN_EP1_DZE1 {
|
||||
};
|
||||
};
|
||||
class UAZ_Unarmed_TK_CIV_EP1_DZE2: UAZ_Unarmed_TK_CIV_EP1_DZE1 {
|
||||
armor = 50; // car 20
|
||||
armor = 100; // UAZ 40
|
||||
damageResistance = 0.02099;
|
||||
class HitPoints: HitPoints {
|
||||
class HitLFWheel: HitLFWheel {
|
||||
armor = 0.3;
|
||||
|
||||
@@ -281,6 +281,7 @@ class Volha_2_TK_CIV_EP1_DZE1: Volha_2_TK_CIV_EP1 {
|
||||
// Armor 2
|
||||
class VolhaLimo_TK_CIV_EP1_DZE2: VolhaLimo_TK_CIV_EP1_DZE1 {
|
||||
armor = 50; // car 20
|
||||
damageResistance = 0.02099;
|
||||
class HitPoints: HitPoints {
|
||||
class HitLFWheel: HitLFWheel {
|
||||
armor = 0.3;
|
||||
@@ -328,6 +329,7 @@ class VolhaLimo_TK_CIV_EP1_DZE2: VolhaLimo_TK_CIV_EP1_DZE1 {
|
||||
};
|
||||
class Volha_1_TK_CIV_EP1_DZE2: Volha_1_TK_CIV_EP1_DZE1 {
|
||||
armor = 50; // car 20
|
||||
damageResistance = 0.02099;
|
||||
class HitPoints: HitPoints {
|
||||
class HitLFWheel: HitLFWheel {
|
||||
armor = 0.3;
|
||||
@@ -375,6 +377,7 @@ class Volha_1_TK_CIV_EP1_DZE2: Volha_1_TK_CIV_EP1_DZE1 {
|
||||
};
|
||||
class Volha_2_TK_CIV_EP1_DZE2: Volha_2_TK_CIV_EP1_DZE1 {
|
||||
armor = 50; // car 20
|
||||
damageResistance = 0.02099;
|
||||
class HitPoints: HitPoints {
|
||||
class HitLFWheel: HitLFWheel {
|
||||
armor = 0.3;
|
||||
@@ -459,4 +462,4 @@ class Volha_1_TK_CIV_EP1_DZE4: Volha_1_TK_CIV_EP1_DZE3 {
|
||||
};
|
||||
class Volha_2_TK_CIV_EP1_DZE4: Volha_2_TK_CIV_EP1_DZE3 {
|
||||
fuelCapacity = 210; // car 100
|
||||
};
|
||||
};
|
||||
|
||||
@@ -26,4 +26,5 @@ class PBX: RubberBoat {
|
||||
transportMaxMagazines = 50;
|
||||
transportMaxWeapons = 5;
|
||||
transportMaxBackpacks = 1;
|
||||
};
|
||||
fuelCapacity = 23;
|
||||
};
|
||||
|
||||
@@ -17,7 +17,7 @@ class Ship : AllVehicles
|
||||
maxSpeed = 30;
|
||||
simulation = "ship";
|
||||
audible = 6;
|
||||
fuelCapacity = 100;
|
||||
fuelCapacity = 250;
|
||||
formationX = 50;
|
||||
formationZ = 100;
|
||||
brakeDistance = 50;
|
||||
@@ -569,4 +569,4 @@ class RHIB_DZ : Boat
|
||||
"ca\water\data\rhib_dash_destruct.rvmat"
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -279,5 +279,6 @@ class CfgWeapons {
|
||||
#include "CfgWeapons\Weapon\LMG\M249_EP1.hpp"
|
||||
#include "CfgWeapons\Weapon\LMG\M249_m145_EP1.hpp"
|
||||
#include "CfgWeapons\Weapon\LMG\M60A4.hpp"
|
||||
// #include "CfgWeapons\Weapon\Rifle\FN_FAL_ANPVS4_DZE.hpp"
|
||||
#include "CfgWeapons\Weapon\LMG\BAF_L110A1_Aim.hpp"
|
||||
#include "CfgWeapons\Weapon\Rifle\FN_FAL_ANPVS4_DZE.hpp"
|
||||
};
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
class BAF_L110A1_Aim;
|
||||
class BAF_L110A1_Aim_DZE:BAF_L110A1_Aim {
|
||||
type = "1";
|
||||
};
|
||||
@@ -1,3 +1,4 @@
|
||||
class FN_FAL_ANPVS4;
|
||||
class FN_FAL_ANPVS4_DZE:FN_FAL_ANPVS4 {
|
||||
visionMode[] = {"Normal", NVG};
|
||||
visionMode[] = {"Normal", "NVG"};
|
||||
};
|
||||
|
||||
@@ -204,6 +204,174 @@ class CfgVehicles {
|
||||
};
|
||||
};
|
||||
};
|
||||
class Tank: landvehicle {
|
||||
class Sounds: Sounds {
|
||||
class Engine;
|
||||
class Movement;
|
||||
};
|
||||
driverOpticsModel = "\ca\Tracked\optika_tank_driver";
|
||||
commanderCanSee = 31;
|
||||
gunnerCanSee = 30;
|
||||
getInAction = "GetInMedium";
|
||||
getOutAction = "GetOutMedium";
|
||||
cargoGetInAction[] = {"GetInLow"};
|
||||
cargoGetOutAction[] = {"GetOutLow"};
|
||||
audible = 18;
|
||||
sensitivityEar = "0.0075 /3";
|
||||
armorStructural = 2;
|
||||
class AnimationSources;
|
||||
class HitPoints {
|
||||
class HitHull {
|
||||
armor = 1;
|
||||
material = -1;
|
||||
name = "NEtelo";
|
||||
visual = "telo";
|
||||
passThrough = 1;
|
||||
};
|
||||
class HitLTrack {
|
||||
armor = 0.15;
|
||||
material = -1;
|
||||
name = "pas_L";
|
||||
visual = "pas_L";
|
||||
passThrough = 0.3;
|
||||
};
|
||||
class HitRTrack {
|
||||
armor = 0.15;
|
||||
material = -1;
|
||||
name = "pas_P";
|
||||
visual = "pas_P";
|
||||
passThrough = 0.3;
|
||||
};
|
||||
class HitEngine {
|
||||
armor = 0.35;
|
||||
material = -1;
|
||||
name = "motor";
|
||||
visual = "motor";
|
||||
passThrough = 0.2;
|
||||
minimalHit = 0.02;
|
||||
};
|
||||
};
|
||||
weapons[] = {};
|
||||
magazines[] = {};
|
||||
class Turrets {
|
||||
class MainTurret: NewTurret {
|
||||
gunnerAction = "ManActTestDriverOut";
|
||||
gunnerOpticsModel = "\ca\Tracked\optika_tank_gunner";
|
||||
gunnerOutOpticsModel = "\ca\Weapons\optika_empty";
|
||||
gunBeg = "usti hlavne";
|
||||
gunEnd = "konec hlavne";
|
||||
memoryPointsGetInGunner = "pos gunner";
|
||||
memoryPointsGetInGunnerDir = "pos gunner dir";
|
||||
gunnerGetInAction = "GetInHigh";
|
||||
gunnerGetOutAction = "GetOutHigh";
|
||||
viewGunnerInExternal = 0;
|
||||
primaryGunner = 1;
|
||||
gunnerOpticsEffect[] = {"TankGunnerOptics2","OpticsBlur1","OpticsCHAbera1"};
|
||||
gunnerOutOpticsEffect[] = {};
|
||||
class HitPoints {
|
||||
class HitTurret {
|
||||
armor = 1;
|
||||
material = -1;
|
||||
name = "vez";
|
||||
visual = "vez";
|
||||
passThrough = 1;
|
||||
};
|
||||
class HitGun {
|
||||
armor = 0.3;
|
||||
material = -1;
|
||||
name = "zbran";
|
||||
visual = "zbran";
|
||||
passThrough = 0;
|
||||
};
|
||||
};
|
||||
class Turrets {
|
||||
class CommanderOptics: NewTurret {
|
||||
proxyType = "CPCommander";
|
||||
proxyIndex = 1;
|
||||
gunnerName = "$STR_POSITION_COMMANDER";
|
||||
primaryGunner = 0;
|
||||
primaryObserver = 1;
|
||||
stabilizedInAxes = "StabilizedInAxesNone";
|
||||
body = "obsTurret";
|
||||
gun = "obsGun";
|
||||
animationSourceBody = "obsTurret";
|
||||
animationSourceGun = "obsGun";
|
||||
animationSourceHatch = "hatchCommander";
|
||||
soundServo[] = {"\ca\sounds\vehicles\servos\turret-1",0.01,1,10};
|
||||
gunBeg = "";
|
||||
gunEnd = "";
|
||||
minElev = -4;
|
||||
maxElev = 20;
|
||||
initElev = 0;
|
||||
minTurn = -360;
|
||||
maxTurn = 360;
|
||||
initTurn = 0;
|
||||
commanding = 2;
|
||||
outGunnerMayFire = 1;
|
||||
inGunnerMayFire = 1;
|
||||
viewGunnerInExternal = 0;
|
||||
gunnerOpticsModel = "\ca\Tracked\optika_tank_driver";
|
||||
gunnerOutOpticsModel = "\ca\Weapons\optika_empty";
|
||||
gunnerOutOpticsColor[] = {0,0,0,1};
|
||||
gunnerOutForceOptics = 0;
|
||||
gunnerOutOpticsShowCursor = 0;
|
||||
gunnerOpticsEffect[] = {};
|
||||
gunnerOutOpticsEffect[] = {};
|
||||
memoryPointGunnerOutOptics = "commander_weapon_view";
|
||||
memoryPointGunnerOptics = "commanderview";
|
||||
memoryPointsGetInGunner = "pos commander";
|
||||
memoryPointsGetInGunnerDir = "pos commander dir";
|
||||
gunnerGetInAction = "GetInHigh";
|
||||
gunnerGetOutAction = "GetOutHigh";
|
||||
memoryPointGun = "gun_muzzle";
|
||||
selectionFireAnim = "zasleh_1";
|
||||
class ViewOptics {
|
||||
initAngleX = 0;
|
||||
minAngleX = -30;
|
||||
maxAngleX = 30;
|
||||
initAngleY = 0;
|
||||
minAngleY = -100;
|
||||
maxAngleY = 100;
|
||||
initFov = 0.155;
|
||||
minFov = 0.0625;
|
||||
maxFov = 0.466;
|
||||
};
|
||||
class ViewGunner {
|
||||
initAngleX = 5;
|
||||
minAngleX = -65;
|
||||
maxAngleX = 85;
|
||||
initAngleY = 0;
|
||||
minAngleY = -150;
|
||||
maxAngleY = 150;
|
||||
initFov = 0.7;
|
||||
minFov = 0.25;
|
||||
maxFov = 1.1;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
soundDammage[] = {"\ca\Tracked\Data\Sound\alarm_loop1",0.000316228,1};
|
||||
supplyRadius = 1.5;
|
||||
class ViewOptics: ViewOptics {
|
||||
initAngleX = 0;
|
||||
minAngleX = -30;
|
||||
maxAngleX = 30;
|
||||
initAngleY = 0;
|
||||
minAngleY = -100;
|
||||
maxAngleY = 100;
|
||||
initFov = 0.466;
|
||||
minFov = 0.466;
|
||||
maxFov = 0.466;
|
||||
};
|
||||
class DefaultEventhandlers;
|
||||
class Eventhandlers: DefaultEventhandlers{};
|
||||
smokeLauncherGrenadeCount = 6;
|
||||
smokeLauncherVelocity = 15;
|
||||
smokeLauncherOnTurret = 1;
|
||||
smokeLauncherAngle = 120;
|
||||
};
|
||||
|
||||
|
||||
// AIR
|
||||
#include "CfgVehicles\AIR\AN2.hpp"
|
||||
@@ -672,7 +840,7 @@ class CfgVehicles {
|
||||
displayName = "Bag fence (Round)";
|
||||
vehicleClass = "Fortifications";
|
||||
constructioncount = 3;
|
||||
removeoutput[] = {{"ItemSandbag",1}};
|
||||
removeoutput[] = {{"BagFenceRound_DZ_kit",1}};
|
||||
nounderground = 0;
|
||||
};
|
||||
|
||||
|
||||
@@ -84,6 +84,14 @@ if (_dikCode in actionKeys "MoveLeft") exitWith {r_interrupt = true; if (DZE_Sur
|
||||
if (_dikCode in actionKeys "MoveRight") exitWith {r_interrupt = true; if (DZE_Surrender) then {call dze_surrender_off};};
|
||||
if (_dikCode in actionKeys "MoveBack") exitWith {r_interrupt = true; if (DZE_Surrender) then {call dze_surrender_off};};
|
||||
|
||||
//Prevent exploit of glitching through doors
|
||||
if (_dikCode in actionKeys "Prone") then {
|
||||
_doors = nearestObjects [player, DZE_DoorsLocked, 3];
|
||||
if (count _doors > 0) then {
|
||||
_handled = true;
|
||||
};
|
||||
};
|
||||
|
||||
//Prevent exploit of drag body
|
||||
if ((_dikCode in actionKeys "Prone") && r_drag_sqf) exitWith { force_dropBody = true; };
|
||||
if ((_dikCode in actionKeys "Crouch") && r_drag_sqf) exitWith { force_dropBody = true; };
|
||||
@@ -189,4 +197,9 @@ if (_dikCode == 0x39 || (_dikCode in actionKeys "User19")) then {
|
||||
DZE_5 = true;
|
||||
};
|
||||
|
||||
// F key
|
||||
if ((_dikCode == 0x21 && (!_alt && !_ctrl)) || (_dikCode in actionKeys "User6")) then {
|
||||
DZE_F = true;
|
||||
};
|
||||
|
||||
_handled
|
||||
|
||||
@@ -66,7 +66,7 @@ switch _option do {
|
||||
_countIn = _x select 1;
|
||||
_qty = { (_x == _itemIn) || (configName(inheritsFrom(configFile >> "cfgMagazines" >> _x)) == _itemIn) } count magazines player;
|
||||
if (_qty < _countIn) exitWith { _missing = _itemIn; _missingQty = (_countIn - _qty); _proceed = false; };
|
||||
} count _requirements;
|
||||
} forEach _requirements;
|
||||
|
||||
if (_proceed) then {
|
||||
player playActionNow "Medic";
|
||||
|
||||
87
SQF/dayz_code/actions/modular_build.sqf
Normal file
87
SQF/dayz_code/actions/modular_build.sqf
Normal file
@@ -0,0 +1,87 @@
|
||||
//Check if building already in progress, exit if so.
|
||||
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_40") , "PLAIN DOWN"]; };
|
||||
DZE_ActionInProgress = true;
|
||||
|
||||
private ["_itemConfig","_classname","_classnametmp","_require","_text","_ghost","_lockable","_requireplot","_isAllowedUnderGround","_offset","_isPole","_isLandFireDZ","_hasRequired","_hasrequireditem","_reason","_buildObject","_location1","_object","_objectHelper","_position","_controls","_cancel","_dir"];
|
||||
|
||||
/*Basic Defines*/
|
||||
DZE_Q = false;
|
||||
DZE_Z = false;
|
||||
|
||||
DZE_Q_alt = false;
|
||||
DZE_Z_alt = false;
|
||||
|
||||
DZE_Q_ctrl = false;
|
||||
DZE_Z_ctrl = false;
|
||||
|
||||
DZE_5 = false;
|
||||
DZE_4 = false;
|
||||
DZE_6 = false;
|
||||
|
||||
DZE_F = false;
|
||||
|
||||
DZE_cancelBuilding = false;
|
||||
|
||||
call gear_ui_init;
|
||||
closeDialog 1;
|
||||
|
||||
DZE_buildItem = _this; //This is a magazine! It's global to allow access to it from outside functions
|
||||
|
||||
//count nearby objects. Returns [_cnt] number
|
||||
[] call player_build_countNearby;
|
||||
|
||||
//Check illegal player states. Returns [_isFine] string
|
||||
[] call player_build_states;
|
||||
|
||||
//check for nearby requirements (campfire, workshop, fueltank).
|
||||
[] call player_build_needNearby;
|
||||
|
||||
//check config files and gather info about item (if using custom buildables, make your own similar function instead).
|
||||
_itemConfig = [] call player_build_getConfig;
|
||||
|
||||
//define items collected from function
|
||||
_classname = _itemConfig select 0; //string
|
||||
_classnametmp = _itemConfig select 1; //string
|
||||
_require = _itemConfig select 2; // array
|
||||
_text = _itemConfig select 3; // string
|
||||
_ghost = _itemConfig select 4; //string
|
||||
_lockable = _itemConfig select 5; //int -- 0/1=No 2=lockbox, 3=combolock, 4=safe
|
||||
_requireplot = _itemConfig select 6; //int
|
||||
_isAllowedUnderGround = _itemConfig select 7; //int
|
||||
_offset = _itemConfig select 8; //array
|
||||
_isPole = _itemConfig select 9; //bool
|
||||
_isLandFireDZ = _itemConfig select 10; //bool
|
||||
|
||||
//Check for nearby plotpoles. Returns [_IsNearPlot,_nearestPole,_ownerID,_friendlies] [int,Obj,int,array]
|
||||
[_isPole, _requireplot, _isLandFireDZ] call player_build_plotCheck;
|
||||
|
||||
if (DZE_ActionInProgress) then { //needed otherwise _hasRequired gets RPT error
|
||||
|
||||
//Check for build requirements (missing tools and items). Returns [_hasrequireditem,_reason] [bool,string]
|
||||
_hasRequired = [_require, _text, true, true] call player_build_buildReq;
|
||||
|
||||
//define item collected from function
|
||||
_hasrequireditem = _hasRequired select 0; //bool
|
||||
|
||||
if (_hasrequireditem) then {
|
||||
|
||||
//Create object that is attached to a player (i.e Ghost preview if available)
|
||||
_buildObject = [_classname, _ghost, _offset, true] call player_build_create;
|
||||
|
||||
//define items collected from function
|
||||
_location1 = _buildObject select 0; //array
|
||||
_object = _buildObject select 1; //Obj
|
||||
_objectHelper = _buildObject select 2; //Obj
|
||||
|
||||
_controls = [_object, _isAllowedUnderGround, _location1, _objectHelper] call player_build_controls;
|
||||
|
||||
//define items collected from function
|
||||
_cancel = _controls select 0; //bool
|
||||
_reason = _controls select 1; //string
|
||||
_position = _controls select 2; //array
|
||||
_dir = _controls select 3; //int
|
||||
|
||||
//Publish item to a database
|
||||
[_cancel, _position, _classnametmp,_isAllowedUnderGround, _text, _isPole, _lockable,_dir, _reason] call player_build_publish;
|
||||
};
|
||||
};
|
||||
@@ -137,7 +137,7 @@ _findNearestPole = [];
|
||||
_IsNearPlot = count (_findNearestPole);
|
||||
|
||||
// If item is plot pole && another one exists within 45m
|
||||
if(_isPole && _IsNearPlot > 0) exitWith { DZE_ActionInProgress = false; cutText [(localize "str_epoch_player_44") , "PLAIN DOWN"]; };
|
||||
if(_isPole && _IsNearPlot > 0) exitWith { DZE_ActionInProgress = false; cutText [(format [localize "str_epoch_player_44", DZE_PlotPole select 1]) , "PLAIN DOWN"]; };
|
||||
|
||||
if(_IsNearPlot == 0) then {
|
||||
|
||||
@@ -337,7 +337,7 @@ if (_hasrequireditem) then {
|
||||
if(abs(_objHDiff) > 5) exitWith {
|
||||
_isOk = false;
|
||||
_cancel = true;
|
||||
_reason = "Cannot move up || down more than 5 meters";
|
||||
_reason = "Cannot move up or down more than 5 meters";
|
||||
detach _object;
|
||||
deleteVehicle _object;
|
||||
};
|
||||
@@ -521,7 +521,7 @@ if (_hasrequireditem) then {
|
||||
publicVariableServer "PVDZE_obj_Publish";
|
||||
|
||||
cutText [format[(localize "str_epoch_player_140"),_combinationDisplay,_text], "PLAIN DOWN", 5];
|
||||
|
||||
systemChat format [(localize "str_epoch_player_140"),_combinationDisplay,_text];
|
||||
|
||||
} else {
|
||||
_tmpbuilt setVariable ["CharacterID",dayz_characterID,true];
|
||||
|
||||
44
SQF/dayz_code/actions/player_build_buildReq.sqf
Normal file
44
SQF/dayz_code/actions/player_build_buildReq.sqf
Normal file
@@ -0,0 +1,44 @@
|
||||
if(!DZE_ActionInProgress) exitWith {};
|
||||
//Check for build requirements like tools and if item is in magazines (check args to disable checks)
|
||||
private ["_passArray","_missing","_hasrequireditem","_require","_hastoolweapon","_hasbuilditem","_checkMag","_checkTools","_reason"];
|
||||
|
||||
_require = _this select 0; //grab passed array of required items from item config function
|
||||
_text = _this select 1; //grab text string passed from config
|
||||
_checkMag = _this select 2; //check if item was built from magazine used in config file. Default is true. Set to false if building item from custom script
|
||||
_checkTools = _this select 3; //same as above, default is true, set to false if you do not need item requirements.
|
||||
|
||||
_missing = "";
|
||||
_hasrequireditem = true;
|
||||
_reason = "ok";
|
||||
_passArray = [];
|
||||
|
||||
{
|
||||
_hastoolweapon = _x in weapons player; //check each required item against weapons array on player
|
||||
if(!_hastoolweapon) exitWith { //if tool was not found, get missing tool's name from config
|
||||
_hasrequireditem = false; _missing = getText (configFile >> "cfgWeapons" >> _x >> "displayName");
|
||||
};
|
||||
} count _require; //count each item in requirements array
|
||||
|
||||
_hasbuilditem = DZE_buildItem in magazines player;
|
||||
|
||||
_passArray = [_hasrequireditem,_reason];
|
||||
|
||||
if (_checkMag) then { //passed argument
|
||||
if (!_hasbuilditem) exitWith { //End script if magazine was not found
|
||||
DZE_ActionInProgress = false;
|
||||
cutText [format[(localize "str_player_31"),_text,"build"] , "PLAIN DOWN"];
|
||||
_reason = "missing item";
|
||||
_passArray
|
||||
};
|
||||
};
|
||||
|
||||
if (_checkTools) then { //passed argument
|
||||
if (!_hasrequireditem) exitWith { //End script if required item/tool was not found
|
||||
DZE_ActionInProgress = false;
|
||||
cutText [format[(localize "str_epoch_player_137"),_missing] , "PLAIN DOWN"];
|
||||
_reason = "missing tools";
|
||||
_passArray
|
||||
};
|
||||
};
|
||||
_passArray //[bool,string]
|
||||
|
||||
216
SQF/dayz_code/actions/player_build_controls.sqf
Normal file
216
SQF/dayz_code/actions/player_build_controls.sqf
Normal file
@@ -0,0 +1,216 @@
|
||||
private ["_canDo","_passArray","_objHDiff","_isOk","_zheightchanged","_zheightdirection","_rotate","_dir","_object","_position","_isAllowedUnderGround","_location1","_location2","_cancel","_reason","_lastDir","_objectHelper","_objectHelperDir","_objectHelperPos"];
|
||||
|
||||
_object = _this select 0;
|
||||
_isAllowedUnderGround = _this select 1;
|
||||
_location1 = _this select 2;
|
||||
_objectHelper = _this select 3;
|
||||
|
||||
_passArray = [];
|
||||
|
||||
_objHDiff = 0;
|
||||
_isOk = true;
|
||||
_cancel = false;
|
||||
_reason = "";
|
||||
_dir = getDir player; //required to pass direction when building
|
||||
helperDetach = false;
|
||||
_canDo = (!r_drag_sqf and !r_player_unconscious);
|
||||
_position = [_objectHelper] call FNC_GetPos;
|
||||
|
||||
while {_isOk} do {
|
||||
|
||||
_zheightchanged = false;
|
||||
_zheightdirection = "";
|
||||
_rotate = false;
|
||||
|
||||
if (DZE_Q) then {
|
||||
DZE_Q = false;
|
||||
_zheightdirection = "up";
|
||||
_zheightchanged = true;
|
||||
};
|
||||
if (DZE_Z) then {
|
||||
DZE_Z = false;
|
||||
_zheightdirection = "down";
|
||||
_zheightchanged = true;
|
||||
};
|
||||
if (DZE_Q_alt) then {
|
||||
DZE_Q_alt = false;
|
||||
_zheightdirection = "up_alt";
|
||||
_zheightchanged = true;
|
||||
};
|
||||
if (DZE_Z_alt) then {
|
||||
DZE_Z_alt = false;
|
||||
_zheightdirection = "down_alt";
|
||||
_zheightchanged = true;
|
||||
};
|
||||
if (DZE_Q_ctrl) then {
|
||||
DZE_Q_ctrl = false;
|
||||
_zheightdirection = "up_ctrl";
|
||||
_zheightchanged = true;
|
||||
};
|
||||
if (DZE_Z_ctrl) then {
|
||||
DZE_Z_ctrl = false;
|
||||
_zheightdirection = "down_ctrl";
|
||||
_zheightchanged = true;
|
||||
};
|
||||
if (DZE_4) then {
|
||||
_rotate = true;
|
||||
DZE_4 = false;
|
||||
_dir = -45;
|
||||
};
|
||||
if (DZE_6) then {
|
||||
_rotate = true;
|
||||
DZE_6 = false;
|
||||
_dir = 45;
|
||||
};
|
||||
|
||||
if (DZE_F and _canDo) then {
|
||||
if (helperDetach) then {
|
||||
_objectHelperDir = getDir _objectHelper;
|
||||
_objectHelper attachTo [player];
|
||||
_objectHelper setDir _objectHelperDir-(getDir player);
|
||||
helperDetach = false;
|
||||
} else {
|
||||
_objectHelperDir = getDir _objectHelper;
|
||||
detach _objectHelper;
|
||||
[_objectHelper] call FNC_GetSetPos;
|
||||
_objectHelper setVelocity [0,0,0]; //fix sliding glitch
|
||||
helperDetach = true;
|
||||
};
|
||||
DZE_F = false;
|
||||
};
|
||||
|
||||
if(_rotate) then {
|
||||
if (helperDetach) then {
|
||||
_objectHelperDir = getDir _objectHelper;
|
||||
_objectHelper setDir _objectHelperDir+_dir;
|
||||
[_objectHelper] call FNC_GetSetPos;
|
||||
} else {
|
||||
detach _objectHelper;
|
||||
_objectHelperDir = getDir _objectHelper;
|
||||
_objectHelper setDir _objectHelperDir+_dir;
|
||||
[_objectHelper] call FNC_GetSetPos;
|
||||
_objectHelperDir = getDir _objectHelper;
|
||||
_objectHelper attachTo [player];
|
||||
_objectHelper setDir _objectHelperDir-(getDir player);
|
||||
};
|
||||
};
|
||||
|
||||
if(_zheightchanged) then {
|
||||
if (!helperDetach) then {
|
||||
detach _objectHelper;
|
||||
_objectHelperDir = getDir _objectHelper;
|
||||
};
|
||||
|
||||
_position = [_objectHelper] call FNC_GetPos;
|
||||
|
||||
if(_zheightdirection == "up") then {
|
||||
_position set [2,((_position select 2)+0.1)];
|
||||
_objHDiff = _objHDiff + 0.1;
|
||||
};
|
||||
if(_zheightdirection == "down") then {
|
||||
_position set [2,((_position select 2)-0.1)];
|
||||
_objHDiff = _objHDiff - 0.1;
|
||||
};
|
||||
|
||||
if(_zheightdirection == "up_alt") then {
|
||||
_position set [2,((_position select 2)+1)];
|
||||
_objHDiff = _objHDiff + 1;
|
||||
};
|
||||
if(_zheightdirection == "down_alt") then {
|
||||
_position set [2,((_position select 2)-1)];
|
||||
_objHDiff = _objHDiff - 1;
|
||||
};
|
||||
|
||||
if(_zheightdirection == "up_ctrl") then {
|
||||
_position set [2,((_position select 2)+0.01)];
|
||||
_objHDiff = _objHDiff + 0.01;
|
||||
};
|
||||
if(_zheightdirection == "down_ctrl") then {
|
||||
_position set [2,((_position select 2)-0.01)];
|
||||
_objHDiff = _objHDiff - 0.01;
|
||||
};
|
||||
|
||||
if((_isAllowedUnderGround == 0) && ((_position select 2) < 0)) then {
|
||||
_position set [2,0];
|
||||
};
|
||||
|
||||
if (surfaceIsWater _position) then {
|
||||
_objectHelper setPosASL _position;
|
||||
} else {
|
||||
_objectHelper setPosATL _position;
|
||||
};
|
||||
|
||||
if (!helperDetach) then {
|
||||
_objectHelper attachTo [player];
|
||||
_objectHelper setDir _objectHelperDir-(getDir player);
|
||||
};
|
||||
};
|
||||
|
||||
sleep 0.5;
|
||||
|
||||
_location2 = [player] call FNC_GetPos;
|
||||
_objectHelperPos = [_objectHelper] call FNC_GetPos;
|
||||
|
||||
if(DZE_5) exitWith {
|
||||
_isOk = false;
|
||||
_position = [_object] call FNC_GetPos;
|
||||
detach _object;
|
||||
_dir = getDir _object;
|
||||
deleteVehicle _object;
|
||||
detach _objectHelper;
|
||||
deleteVehicle _objectHelper;
|
||||
};
|
||||
|
||||
if(_location1 distance _location2 > 10) exitWith {
|
||||
_isOk = false;
|
||||
_cancel = true;
|
||||
_reason = "You've moved to far away from where you started building (within 10 meters)";
|
||||
detach _object;
|
||||
deleteVehicle _object;
|
||||
detach _objectHelper;
|
||||
deleteVehicle _objectHelper;
|
||||
};
|
||||
|
||||
if(_location1 distance _objectHelperPos > 10) exitWith {
|
||||
_isOk = false;
|
||||
_cancel = true;
|
||||
_reason = "Object is placed to far away from where you started building (within 10 meters)";
|
||||
detach _object;
|
||||
deleteVehicle _object;
|
||||
detach _objectHelper;
|
||||
deleteVehicle _objectHelper;
|
||||
};
|
||||
|
||||
if(abs(_objHDiff) > 10) exitWith {
|
||||
_isOk = false;
|
||||
_cancel = true;
|
||||
_reason = "Cannot move up or down more than 10 meters";
|
||||
detach _object;
|
||||
deleteVehicle _object;
|
||||
detach _objectHelper;
|
||||
deleteVehicle _objectHelper;
|
||||
};
|
||||
|
||||
if (player getVariable["combattimeout", 0] >= time) exitWith {
|
||||
_isOk = false;
|
||||
_cancel = true;
|
||||
_reason = (localize "str_epoch_player_43");
|
||||
detach _object;
|
||||
deleteVehicle _object;
|
||||
detach _objectHelper;
|
||||
deleteVehicle _objectHelper;
|
||||
};
|
||||
|
||||
if (DZE_cancelBuilding) exitWith {
|
||||
_isOk = false;
|
||||
_cancel = true;
|
||||
_reason = "Cancelled building.";
|
||||
detach _object;
|
||||
deleteVehicle _object;
|
||||
detach _objectHelper;
|
||||
deleteVehicle _objectHelper;
|
||||
};
|
||||
};
|
||||
|
||||
_passArray = [_cancel,_reason,_position,_dir];
|
||||
_passArray //[bool,string,array,int]
|
||||
10
SQF/dayz_code/actions/player_build_countNearby.sqf
Normal file
10
SQF/dayz_code/actions/player_build_countNearby.sqf
Normal file
@@ -0,0 +1,10 @@
|
||||
// disallow building if too many objects are found within 30m (by default)
|
||||
private ["_cnt","_pos"];
|
||||
|
||||
_pos = [player] call FNC_GetPos;
|
||||
_cnt = count (_pos nearObjects ["All",DZE_checkNearbyRadius]);
|
||||
if (_cnt >= DZE_BuildingLimit) exitWith { //end script if too many objects nearby
|
||||
DZE_ActionInProgress = false;
|
||||
cutText [(localize "str_epoch_player_41"), "PLAIN DOWN"];
|
||||
};
|
||||
_cnt //returns amount of total objects found nearby
|
||||
37
SQF/dayz_code/actions/player_build_create.sqf
Normal file
37
SQF/dayz_code/actions/player_build_create.sqf
Normal file
@@ -0,0 +1,37 @@
|
||||
//create an object for default build system style
|
||||
private ["_passArray","_classname","_enableGhost","_ghost","_location1","_dir","_object","_objectHelper","_helperColor"];
|
||||
|
||||
_classname = _this select 0;
|
||||
_ghost = _this select 1;
|
||||
_offset = _this select 2;
|
||||
_enableGhost = _this select 3; //pass false trough args if not using ghost preview
|
||||
|
||||
_passArray = [];
|
||||
_objectHelper = objNull;
|
||||
|
||||
// get inital players position
|
||||
_location1 = [player] call FNC_GetPos;
|
||||
|
||||
// if enabled, use ghost preview where available
|
||||
if (_enableGhost) then {
|
||||
if (_ghost != "") then {
|
||||
_classname = _ghost;
|
||||
};
|
||||
};
|
||||
|
||||
_object = createVehicle [_classname, [0,0,0], [], 0, "CAN_COLLIDE"]; //object preview, not an actual object that will be built
|
||||
|
||||
_objectHelper = "Sign_sphere10cm_EP1" createVehicle [0,0,0];
|
||||
_helperColor = "#(argb,8,8,3)color(0,0,0,0,ca)";
|
||||
_objectHelper setobjecttexture [0,_helperColor];
|
||||
_objectHelper attachTo [player,_offset];
|
||||
_object attachTo [_objectHelper,[0,0,0]];
|
||||
|
||||
|
||||
if (isClass (configFile >> "SnapBuilding" >> _classname)) then {
|
||||
["","","",["Init",_object,_classname,_objectHelper]] spawn snap_build;
|
||||
};
|
||||
|
||||
_passArray = [_location1,_object,_objectHelper];
|
||||
_passArray //[array,obj,array]
|
||||
|
||||
39
SQF/dayz_code/actions/player_build_getConfig.sqf
Normal file
39
SQF/dayz_code/actions/player_build_getConfig.sqf
Normal file
@@ -0,0 +1,39 @@
|
||||
if(!DZE_ActionInProgress) exitWith {};
|
||||
//Build an array of various variables gathered about build object from config files, only applies to legit buildable objects
|
||||
private ["_passArray","_classname","_classnametmp","_require","_text","_ghost","_lockable","_requireplot","_isAllowedUnderGround","_offset","_isPole","_isLandFireDZ"];
|
||||
|
||||
_passArray = [];
|
||||
|
||||
_classname = getText (configFile >> "CfgMagazines" >> DZE_buildItem >> "ItemActions" >> "Build" >> "create");
|
||||
_classnametmp = _classname;
|
||||
_require = getArray (configFile >> "cfgMagazines" >> DZE_buildItem >> "ItemActions" >> "Build" >> "require");
|
||||
_text = getText (configFile >> "CfgVehicles" >> _classname >> "displayName");
|
||||
_ghost = getText (configFile >> "CfgVehicles" >> _classname >> "ghostpreview");
|
||||
|
||||
_lockable = 0; //default define if lockable not found in config file below
|
||||
if(isNumber (configFile >> "CfgVehicles" >> _classname >> "lockable")) then { //find out if item is lockable object
|
||||
_lockable = getNumber(configFile >> "CfgVehicles" >> _classname >> "lockable"); // 2=lockbox, 3=combolock, 4=safe
|
||||
};
|
||||
|
||||
_requireplot = DZE_requireplot; //check for plotpole requirements defined in init.sqf
|
||||
if(isNumber (configFile >> "CfgVehicles" >> _classname >> "requireplot")) then {
|
||||
_requireplot = getNumber(configFile >> "CfgVehicles" >> _classname >> "requireplot");
|
||||
};
|
||||
|
||||
_isAllowedUnderGround = 1; //check if allowed to build under terrain
|
||||
if(isNumber (configFile >> "CfgVehicles" >> _classname >> "nounderground")) then {
|
||||
_isAllowedUnderGround = getNumber(configFile >> "CfgVehicles" >> _classname >> "nounderground");
|
||||
};
|
||||
|
||||
_offset = getArray (configFile >> "CfgVehicles" >> _classname >> "offset"); //check default distance offset, define if does not exist
|
||||
if((count _offset) <= 0) then {
|
||||
_offset = [0,1.5,0];
|
||||
};
|
||||
|
||||
_isPole = (_classname == "Plastic_Pole_EP1_DZ"); //check if item is plotpole
|
||||
_isLandFireDZ = (_classname == "Land_Fire_DZ"); //check if item is campfire
|
||||
|
||||
_passArray = [_classname,_classnametmp,_require,_text,_ghost,_lockable,_requireplot,_isAllowedUnderGround,_offset,_isPole,_isLandFireDZ]; //create new array to pass to caller
|
||||
|
||||
_passArray //[string,string,array,string,string,int,int,int,array,bool,bool]
|
||||
|
||||
44
SQF/dayz_code/actions/player_build_needNearby.sqf
Normal file
44
SQF/dayz_code/actions/player_build_needNearby.sqf
Normal file
@@ -0,0 +1,44 @@
|
||||
if(!DZE_ActionInProgress) exitWith {};
|
||||
//disallow building if required items (defined in config) are not found nearby
|
||||
private ["_abort","_reason","_distance","_needNear","_isNear","_pos"];
|
||||
|
||||
_abort = false; //do not abort by default
|
||||
_reason = ""; // define to avoid RPT errors
|
||||
_needNear = getArray (configFile >> "CfgMagazines" >> DZE_buildItem >> "ItemActions" >> "Build" >> "neednearby");
|
||||
_pos = [player] call FNC_GetPos;
|
||||
{
|
||||
switch(_x) do{
|
||||
case "fire":
|
||||
{
|
||||
_distance = 3;
|
||||
_isNear = {inflamed _x} count (_pos nearObjects _distance);
|
||||
if(_isNear == 0) then {
|
||||
_abort = true;
|
||||
_reason = "fire";
|
||||
};
|
||||
};
|
||||
case "workshop":
|
||||
{
|
||||
_distance = 3;
|
||||
_isNear = count (nearestObjects [_pos, ["Wooden_shed_DZ","WoodShack_DZ","WorkBench_DZ"], _distance]);
|
||||
if(_isNear == 0) then {
|
||||
_abort = true;
|
||||
_reason = "workshop";
|
||||
};
|
||||
};
|
||||
case "fueltank":
|
||||
{
|
||||
_distance = 30;
|
||||
_isNear = count (nearestObjects [_pos, dayz_fuelsources, _distance]);
|
||||
if(_isNear == 0) then {
|
||||
_abort = true;
|
||||
_reason = "fuel tank";
|
||||
};
|
||||
};
|
||||
};
|
||||
} forEach _needNear;
|
||||
|
||||
if (_abort) exitWith {
|
||||
cutText [format[(localize "str_epoch_player_135"),_reason,_distance], "PLAIN DOWN"];
|
||||
DZE_ActionInProgress = false;
|
||||
};
|
||||
79
SQF/dayz_code/actions/player_build_plotCheck.sqf
Normal file
79
SQF/dayz_code/actions/player_build_plotCheck.sqf
Normal file
@@ -0,0 +1,79 @@
|
||||
if(!DZE_ActionInProgress) exitWith {};
|
||||
//Check if nearby plotpoles exists
|
||||
private ["_passArray","_isPole","_needText","_distance","_findNearestPoles","_findNearestPole","_IsNearPlot","_requireplot","_isLandFireDZ","_canBuildOnPlot","_nearestPole","_ownerID","_friendlies"];
|
||||
|
||||
//defines
|
||||
_isPole = _this select 0;
|
||||
_requireplot = _this select 1;
|
||||
_isLandFireDZ = _this select 2;
|
||||
|
||||
_needText = localize "str_epoch_player_246"; //text for when requirements not met
|
||||
_canBuildOnPlot = false;
|
||||
_nearestPole = objNull;
|
||||
_ownerID = 0;
|
||||
_friendlies = [];
|
||||
|
||||
if(_isPole) then { //check if object is plotpole and adjust distance accordingly
|
||||
_distance = DZE_PlotPole select 1;
|
||||
} else {
|
||||
_distance = DZE_PlotPole select 0;
|
||||
};
|
||||
|
||||
// check for near plotpoles
|
||||
_findNearestPoles = nearestObjects [(vehicle player), ["Plastic_Pole_EP1_DZ"], _distance]; //create an array of nearby objects that are plotpoles, nearest will always be first in array
|
||||
_findNearestPole = []; //must define an empty array to avoid problems
|
||||
|
||||
{
|
||||
if (alive _x) then { //only look for non-destroyed plotpoles
|
||||
_findNearestPole set [(count _findNearestPole),_x]; //build an array of live plotpoles found nearby
|
||||
};
|
||||
} count _findNearestPoles; //count each item in previously created array of nearby plotpoles
|
||||
|
||||
_IsNearPlot = count (_findNearestPole); //count our new array of non-destroyed plotpoles. Empty array will return 0
|
||||
|
||||
if(_IsNearPlot == 0) then { //No live plotpoles were found nearby
|
||||
// Allow building of plot
|
||||
if(_requireplot == 0 || _isLandFireDZ) then {
|
||||
_canBuildOnPlot = true;
|
||||
};
|
||||
} else {
|
||||
// Since there are plots nearby we check for ownership && then for friend status
|
||||
// check nearby plots ownership && then for friend status
|
||||
_nearestPole = _findNearestPole select 0; //nearest is always first in array when using nearestObjects check
|
||||
|
||||
// Find owner
|
||||
_ownerID = _nearestPole getVariable ["CharacterID","0"];
|
||||
|
||||
// check if friendly to owner
|
||||
if(dayz_characterID == _ownerID) then { //Keep ownership
|
||||
// owner can build anything within his plot except other plots
|
||||
if(!_isPole) then {
|
||||
_canBuildOnPlot = true;
|
||||
};
|
||||
} else {
|
||||
// disallow building plot
|
||||
if(!_isPole) then {
|
||||
_friendlies = player getVariable ["friendlyTo",[]];
|
||||
// check if friendly to owner
|
||||
if(_ownerID in _friendlies) then {
|
||||
_canBuildOnPlot = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
_passArray = [_IsNearPlot,_nearestPole,_ownerID,_friendlies]; //create new array and pass it to caller
|
||||
|
||||
// End script if item is plot pole and another one exists within defined radius
|
||||
if(_isPole && _IsNearPlot > 0) exitWith {
|
||||
DZE_ActionInProgress = false;
|
||||
cutText [(format [localize "str_epoch_player_44", DZE_PlotPole select 1]) , "PLAIN DOWN"];
|
||||
_passArray
|
||||
};
|
||||
|
||||
if(!_canBuildOnPlot) exitWith { //end script if requirements were not met
|
||||
DZE_ActionInProgress = false;
|
||||
cutText [format[(localize "STR_EPOCH_PLAYER_135"),_needText,_distance] , "PLAIN DOWN"];
|
||||
_passArray
|
||||
};
|
||||
_passArray //[int,Obj,int,array]
|
||||
224
SQF/dayz_code/actions/player_build_publish.sqf
Normal file
224
SQF/dayz_code/actions/player_build_publish.sqf
Normal file
@@ -0,0 +1,224 @@
|
||||
private ["_passArray","_cancel","_position","_reason","_classnametmp","_classname","_tmpbuilt","_dir","_location","_text","_limit","_isOk","_proceed","_counter","_dis","_sfx","_started","_finished","_animState","_isMedic","_num_removed","_lockable","_combinationDisplay","_combination_1","_combination_2","_combination_3","_combination_4","_combination","_combination_1_Display"];
|
||||
|
||||
//defines
|
||||
_cancel = _this select 0;
|
||||
_position = _this select 1;
|
||||
_classnametmp = _this select 2;
|
||||
_isAllowedUnderGround = _this select 3;
|
||||
_text = _this select 4;
|
||||
_isPole = _this select 5;
|
||||
_lockable = _this select 6;
|
||||
_dir = _this select 7;
|
||||
_reason = _this select 8;
|
||||
|
||||
_passArray = [];
|
||||
|
||||
_isOk = true;
|
||||
_proceed = false;
|
||||
_counter = 0;
|
||||
_location = [0,0,0];
|
||||
|
||||
//No building on roads unless toggled
|
||||
if (!DZE_BuildOnRoads) then {
|
||||
if (isOnRoad _position) then {
|
||||
_cancel = true;
|
||||
_reason = "Cannot build on a road.";
|
||||
};
|
||||
};
|
||||
|
||||
// No building in trader zones
|
||||
if(!canbuild) then {
|
||||
_cancel = true;
|
||||
_reason = "Cannot build in a city.";
|
||||
};
|
||||
|
||||
if(!_cancel) then {
|
||||
|
||||
_classname = _classnametmp;
|
||||
|
||||
// Start Build
|
||||
_tmpbuilt = createVehicle [_classname, _location, [], 0, "CAN_COLLIDE"]; //create actual object that will be published to database
|
||||
|
||||
_tmpbuilt setdir _dir; //set direction inherited from passed args from control
|
||||
|
||||
// Get position based on object
|
||||
_location = _position;
|
||||
|
||||
if((_isAllowedUnderGround == 0) && ((_location select 2) < 0)) then { //check Z axis if not allowed to build underground
|
||||
_location set [2,0]; //reset Z axis to zero (above terrain)
|
||||
};
|
||||
|
||||
if (surfaceIsWater _location) then {
|
||||
_tmpbuilt setPosASL _location;
|
||||
_location = ASLtoATL _location; //Database uses ATL
|
||||
} else {
|
||||
_tmpbuilt setPosATL _location;
|
||||
};
|
||||
|
||||
cutText [format[(localize "str_epoch_player_138"),_text], "PLAIN DOWN"];
|
||||
|
||||
_limit = 3; //times it takes to build by default
|
||||
|
||||
if (DZE_StaticConstructionCount > 0) then { //if count is manually overridden inside init.sqf, use that instead, else use limits configured in config files
|
||||
_limit = DZE_StaticConstructionCount;
|
||||
}
|
||||
else {
|
||||
if (isNumber (configFile >> "CfgVehicles" >> _classname >> "constructioncount")) then {
|
||||
_limit = getNumber(configFile >> "CfgVehicles" >> _classname >> "constructioncount");
|
||||
};
|
||||
};
|
||||
|
||||
while {_isOk} do { //publish phase
|
||||
|
||||
[10,10] call dayz_HungerThirst;
|
||||
player playActionNow "Medic"; //animation
|
||||
|
||||
//alert zombies
|
||||
_dis=20;
|
||||
_sfx = "repair";
|
||||
[player,_sfx,0,false,_dis] call dayz_zombieSpeak;
|
||||
[player,_dis,true,(getPosATL player)] spawn player_alertZombies;
|
||||
|
||||
r_interrupt = false;
|
||||
r_doLoop = true;
|
||||
_started = false;
|
||||
_finished = false;
|
||||
|
||||
while {r_doLoop} do { //while player is not interrupted, go trough animations
|
||||
_animState = animationState player;
|
||||
_isMedic = ["medic",_animState] call fnc_inString;
|
||||
if (_isMedic) then {
|
||||
_started = true;
|
||||
};
|
||||
if (_started && !_isMedic) then {
|
||||
r_doLoop = false;
|
||||
_finished = true;
|
||||
};
|
||||
if (r_interrupt || (player getVariable["combattimeout", 0] >= time)) then {
|
||||
r_doLoop = false;
|
||||
};
|
||||
if (DZE_cancelBuilding) exitWith {
|
||||
r_doLoop = false;
|
||||
};
|
||||
sleep 0.1;
|
||||
};
|
||||
r_doLoop = false;
|
||||
|
||||
|
||||
if(!_finished) exitWith { //exit if interrupted
|
||||
_isOk = false;
|
||||
_proceed = false;
|
||||
};
|
||||
|
||||
if(_finished) then { //if animation finished, add to build count
|
||||
_counter = _counter + 1;
|
||||
};
|
||||
|
||||
cutText [format[(localize "str_epoch_player_139"),_text, _counter,_limit], "PLAIN DOWN"]; //report how many steps are done out of total limit
|
||||
|
||||
if(_counter == _limit) exitWith { //if all steps done proceed with next step, otherwise cancel publish
|
||||
_isOk = false;
|
||||
_proceed = true;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
if (_proceed) then {
|
||||
|
||||
_num_removed = ([player,DZE_buildItem] call BIS_fnc_invRemove); //remove item's magazine from inventory
|
||||
if(_num_removed == 1) then {
|
||||
|
||||
cutText [format[localize "str_build_01",_text], "PLAIN DOWN"];
|
||||
|
||||
if (_isPole) then { //if item was a plotpole, build a visual radius around it
|
||||
[] spawn player_plotPreview;
|
||||
};
|
||||
|
||||
_tmpbuilt setVariable ["OEMPos",_location,true]; //store original location as a variable
|
||||
|
||||
if(_lockable > 1) then { //if item has code lock on it
|
||||
|
||||
_combinationDisplay = ""; //define new display
|
||||
|
||||
switch (_lockable) do { //generate random combinations depending on item type
|
||||
|
||||
case 2: { // 2 lockbox
|
||||
_combination_1 = (floor(random 3)) + 100; // 100=red,101=green,102=blue
|
||||
_combination_2 = floor(random 10);
|
||||
_combination_3 = floor(random 10);
|
||||
_combination = format["%1%2%3",_combination_1,_combination_2,_combination_3];
|
||||
dayz_combination = _combination;
|
||||
if (_combination_1 == 100) then {
|
||||
_combination_1_Display = "Red";
|
||||
};
|
||||
if (_combination_1 == 101) then {
|
||||
_combination_1_Display = "Green";
|
||||
};
|
||||
if (_combination_1 == 102) then {
|
||||
_combination_1_Display = "Blue";
|
||||
};
|
||||
_combinationDisplay = format["%1%2%3",_combination_1_Display,_combination_2,_combination_3];
|
||||
};
|
||||
|
||||
case 3: { // 3 combolock
|
||||
_combination_1 = floor(random 10);
|
||||
_combination_2 = floor(random 10);
|
||||
_combination_3 = floor(random 10);
|
||||
_combination = format["%1%2%3",_combination_1,_combination_2,_combination_3];
|
||||
dayz_combination = _combination;
|
||||
_combinationDisplay = _combination;
|
||||
};
|
||||
|
||||
case 4: { // 4 safe
|
||||
_combination_1 = floor(random 10);
|
||||
_combination_2 = floor(random 10);
|
||||
_combination_3 = floor(random 10);
|
||||
_combination_4 = floor(random 10);
|
||||
_combination = format["%1%2%3%4",_combination_1,_combination_2,_combination_3,_combination_4];
|
||||
dayz_combination = _combination;
|
||||
_combinationDisplay = _combination;
|
||||
};
|
||||
};
|
||||
|
||||
_tmpbuilt setVariable ["CharacterID",_combination,true]; //set combination as a character ID
|
||||
|
||||
//call publish precompiled function with given args and send public variable to server to save item to database
|
||||
PVDZE_obj_Publish = [_combination,_tmpbuilt,[_dir,_location],_classname];
|
||||
publicVariableServer "PVDZE_obj_Publish";
|
||||
|
||||
cutText [format[(localize "str_epoch_player_140"),_combinationDisplay,_text], "PLAIN DOWN", 5]; //display new combination
|
||||
|
||||
|
||||
} else { //if not lockable item
|
||||
_tmpbuilt setVariable ["CharacterID",dayz_characterID,true];
|
||||
|
||||
// fire?
|
||||
if(_tmpbuilt isKindOf "Land_Fire_DZ") then { //if campfire, then spawn, but do not publish to database
|
||||
_tmpbuilt spawn player_fireMonitor;
|
||||
} else {
|
||||
PVDZE_obj_Publish = [dayz_characterID,_tmpbuilt,[_dir,_location],_classname];
|
||||
publicVariableServer "PVDZE_obj_Publish";
|
||||
};
|
||||
};
|
||||
} else { //if magazine was not removed, cancel publish
|
||||
deleteVehicle _tmpbuilt;
|
||||
cutText [(localize "str_epoch_player_46") , "PLAIN DOWN"];
|
||||
};
|
||||
|
||||
} else { //if player was interrupted, cancel publish and stop build animations
|
||||
r_interrupt = false;
|
||||
if (vehicle player == player) then {
|
||||
[objNull, player, rSwitchMove,""] call RE;
|
||||
player playActionNow "stop";
|
||||
};
|
||||
|
||||
deleteVehicle _tmpbuilt;
|
||||
|
||||
cutText [(localize "str_epoch_player_46") , "PLAIN DOWN"];
|
||||
};
|
||||
|
||||
} else { //cancel build if passed _cancel arg was true or building on roads/trader city
|
||||
cutText [format[(localize "str_epoch_player_47"),_text,_reason], "PLAIN DOWN"];
|
||||
};
|
||||
|
||||
DZE_ActionInProgress = false; //in any case always finish last function with this to "reset" everything.
|
||||
39
SQF/dayz_code/actions/player_build_states.sqf
Normal file
39
SQF/dayz_code/actions/player_build_states.sqf
Normal file
@@ -0,0 +1,39 @@
|
||||
if(!DZE_ActionInProgress) exitWith {};
|
||||
//disallow building if these conditions are not met
|
||||
private ["_isFine","_onLadder","_vehicle","_inVehicle"];
|
||||
|
||||
_isFine = "ok"; //define variable to avoid RPT errors
|
||||
_onLadder = (getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animationState player) >> "onLadder")) == 1;
|
||||
_vehicle = vehicle player;
|
||||
_inVehicle = (_vehicle != player);
|
||||
|
||||
if (dayz_isSwimming) exitWith { //end script if player is swimming
|
||||
DZE_ActionInProgress = false;
|
||||
cutText [localize "str_player_26", "PLAIN DOWN"];
|
||||
_isFine = "Swimming";
|
||||
_isFine
|
||||
};
|
||||
|
||||
if (_inVehicle) exitWith { //end script if player is in vehicle
|
||||
DZE_ActionInProgress = false;
|
||||
cutText [(localize "str_epoch_player_42"), "PLAIN DOWN"];
|
||||
_isFine = "In vehicle";
|
||||
_isFine
|
||||
};
|
||||
|
||||
if (_onLadder) exitWith { //end script if player is climbing on ladder
|
||||
DZE_ActionInProgress = false;
|
||||
cutText [localize "str_player_21", "PLAIN DOWN"];
|
||||
_isFine = "On ladder";
|
||||
_isFine
|
||||
};
|
||||
|
||||
if (player getVariable["combattimeout", 0] >= time) exitWith { //end script if player is in combat
|
||||
DZE_ActionInProgress = false;
|
||||
cutText [(localize "str_epoch_player_43"), "PLAIN DOWN"];
|
||||
_isFine = "In combat";
|
||||
_isFine
|
||||
};
|
||||
|
||||
_isFine //returns string to caller, default is "ok" if conditions were not met
|
||||
|
||||
@@ -48,31 +48,26 @@ if (["ItemSoda",_itemorignal] call fnc_inString) then {
|
||||
[player,_dis,true,(getPosATL player)] spawn player_alertZombies;
|
||||
};
|
||||
|
||||
if (_hasoutput) then{
|
||||
_itemtodrop = drink_output select(drink_with_output find _itemorignal);
|
||||
if (_hasoutput) then {
|
||||
// Selecting output
|
||||
_itemtodrop = drink_output select (drink_with_output find _itemorignal);
|
||||
|
||||
if (!_invehicle) then {
|
||||
// Selecting output
|
||||
_itemtodrop = drink_output select (drink_with_output find _itemorignal);
|
||||
|
||||
sleep 3;
|
||||
_nearByPile= nearestObjects [(getPosATL player), ["WeaponHolder","WeaponHolderBase"],2];
|
||||
if (count _nearByPile ==0) then {
|
||||
_nearByPile = nearestObjects [(getPosATL player), ["WeaponHolder","WeaponHolderBase"],2];
|
||||
if (count _nearByPile == 0) then {
|
||||
_iPos = getPosATL player;
|
||||
_radius = 0.0;
|
||||
_item = createVehicle ["WeaponHolder", _iPos, [], _radius, "CAN_COLLIDE"];
|
||||
_item setposATL _iPos;
|
||||
_item setPosATL _iPos;
|
||||
} else {
|
||||
_item = _nearByPile select 0;
|
||||
};
|
||||
_item addMagazineCargoGlobal [_itemtodrop,1];
|
||||
};
|
||||
|
||||
if (_invehicle) then {
|
||||
} else {
|
||||
sleep 2;
|
||||
(vehicle player) addMagazineCargoGlobal [_itemtodrop,1];
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
//add infection chance for "ItemWaterbottle",
|
||||
|
||||
@@ -48,26 +48,26 @@ if (dayz_lastMeal < 3600) then {
|
||||
};
|
||||
};
|
||||
|
||||
if (_hasoutput && !_invehicle) then {
|
||||
// Selecting output
|
||||
_itemtodrop = food_output select (food_with_output find _itemorignal);
|
||||
if (_hasoutput) then {
|
||||
// Selecting output
|
||||
_itemtodrop = food_output select (food_with_output find _itemorignal);
|
||||
|
||||
sleep 3;
|
||||
_nearByPile= nearestObjects [(getposATL player), ["WeaponHolder","WeaponHolderBase"],2];
|
||||
if (count _nearByPile ==0) then {
|
||||
_iPos = getPosATL player;
|
||||
_radius = 0.0;
|
||||
_item = createVehicle ["WeaponHolder", _iPos, [], _radius, "CAN_COLLIDE"];
|
||||
_item setposATL _iPos;
|
||||
} else {
|
||||
_item = _nearByPile select 0;
|
||||
};
|
||||
_item addMagazineCargoGlobal [_itemtodrop,1];
|
||||
};
|
||||
|
||||
if (_hasoutput && _invehicle) then {
|
||||
sleep 2;
|
||||
(vehicle player) addMagazineCargoGlobal [_itemtodrop,1];
|
||||
if (!_invehicle) then {
|
||||
sleep 3;
|
||||
_nearByPile = nearestObjects [(getPosATL player), ["WeaponHolder","WeaponHolderBase"],2];
|
||||
if (count _nearByPile == 0) then {
|
||||
_iPos = getPosATL player;
|
||||
_radius = 0.0;
|
||||
_item = createVehicle ["WeaponHolder", _iPos, [], _radius, "CAN_COLLIDE"];
|
||||
_item setPosATL _iPos;
|
||||
} else {
|
||||
_item = _nearByPile select 0;
|
||||
};
|
||||
_item addMagazineCargoGlobal [_itemtodrop,1];
|
||||
} else {
|
||||
sleep 2;
|
||||
(vehicle player) addMagazineCargoGlobal [_itemtodrop,1];
|
||||
};
|
||||
};
|
||||
|
||||
if (_rawfood && !_rawexceptions && (random 15 < 1)) then {
|
||||
|
||||
@@ -17,7 +17,7 @@ if(!(surfaceIsWater _position)) exitWith {DZE_ActionInProgress = false; cutText
|
||||
if((currentWeapon player) != "MeleeFishingPole") exitWith {DZE_ActionInProgress = false; cutText [(localize "str_epoch_player_67"), "PLAIN DOWN"]; };
|
||||
|
||||
if(dayz_isSwimming) exitWith {DZE_ActionInProgress = false; cutText [localize "str_player_26", "PLAIN DOWN"]; };
|
||||
if(player getVariable["combattimeout", 0] >= time) exitWith {DZE_ActionInProgress = false; cutText [(localize "str_epoch_player_68"), "PLAIN DOWN"];};
|
||||
if(player getVariable["combattimeout", 0] >= time) exitWith {DZE_ActionInProgress = false; cutText [(localize "str_epoch_player_312"), "PLAIN DOWN"];};
|
||||
|
||||
_isOk = true;
|
||||
_counter = 0;
|
||||
@@ -81,4 +81,4 @@ while {_isOk} do {
|
||||
};
|
||||
};
|
||||
};
|
||||
DZE_ActionInProgress = false;
|
||||
DZE_ActionInProgress = false;
|
||||
|
||||
@@ -11,7 +11,7 @@ lbClear TraderDialogCatList;
|
||||
lbClear TraderDialogItemList;
|
||||
|
||||
TraderCurrentCatIndex = -1;
|
||||
TraderItemList = -1;
|
||||
TraderItemList = [];
|
||||
|
||||
TraderCatList = [];
|
||||
{
|
||||
@@ -21,4 +21,4 @@ TraderCatList = [];
|
||||
} count _trader_data;
|
||||
waitUntil { !dialog };
|
||||
TraderCurrentCatIndex = -1;
|
||||
TraderCatList = -1;
|
||||
TraderCatList = [];
|
||||
|
||||
284
SQF/dayz_code/actions/snap_build.sqf
Normal file
284
SQF/dayz_code/actions/snap_build.sqf
Normal file
@@ -0,0 +1,284 @@
|
||||
/*-----------------------------------*/
|
||||
// by Raymix //
|
||||
// July 10 2014 //
|
||||
/*--------------------------------*/
|
||||
|
||||
private ["_object","_objectSnapGizmo","_objColorActive","_objColorInactive","_classname","_whitelist","_points","_radius","_cfg","_cnt","_pos","_findWhitelisted","_nearbyObject","_posNearby","_selectedAction","_newPos","_pointsNearby","_onWater","_waterBase"];
|
||||
//Args
|
||||
snapActionState = _this select 3 select 0;
|
||||
_object = _this select 3 select 1;
|
||||
_classname = _this select 3 select 2;
|
||||
_objectHelper = _this select 3 select 3;
|
||||
_selectedAction = _this select 3 select 4;
|
||||
|
||||
//Snap config file
|
||||
_cfg = (configFile >> "SnapBuilding" >> _classname);
|
||||
_whitelist = getArray (_cfg >> "snapTo");
|
||||
_points = getArray (_cfg >> "points");
|
||||
_radius = getNumber (_cfg >> "radius");
|
||||
|
||||
//colors
|
||||
_objColorActive = "#(argb,8,8,3)color(0,0.92,0.06,1,ca)";
|
||||
_objColorInactive = "#(argb,8,8,3)color(0.04,0.84,0.92,0.3,ca)";
|
||||
|
||||
|
||||
fnc_snapActionCleanup = {
|
||||
private ["_s1","_s2","_s3","_cnt"];
|
||||
_s1 = _this select 0;
|
||||
_s2 = _this select 1;
|
||||
_s3 = _this select 2;
|
||||
player removeAction s_player_toggleSnap; s_player_toggleSnap = -1;
|
||||
player removeAction s_player_toggleSnapSelect; s_player_toggleSnapSelect = -1;
|
||||
if (count s_player_toggleSnapSelectPoint != 0) then {{player removeAction _x;} count s_player_toggleSnapSelectPoint; s_player_toggleSnapSelectPoint=[]; snapActions = -1;};
|
||||
if (_s1 > 0) then {
|
||||
s_player_toggleSnap = player addaction [format[("<t color=""#ffffff"">" + ("Snap: %1") +"</t>"),snapActionState],"\z\addons\dayz_code\actions\snap_build.sqf",[snapActionState,_object,_classname,_objectHelper],6,false,true];
|
||||
};
|
||||
if (_s2 > 0) then {
|
||||
s_player_toggleSnapSelect = player addaction [format[("<t color=""#ffffff"">" + ("Snap Point: %1") +"</t>"),snapActionStateSelect],"\z\addons\dayz_code\actions\snap_build.sqf",[snapActionStateSelect,_object,_classname,_objectHelper],5,false,true];
|
||||
};
|
||||
if (_s3 > 0) then {
|
||||
s_player_toggleSnapSelectPoint=[];
|
||||
_cnt = 0;
|
||||
{snapActions = player addaction [format[("<t color=""#ffffff"">" + ("%1)Select: %2") +"</t>"),_cnt,_x select 3],"\z\addons\dayz_code\actions\snap_build.sqf",["Selected",_object,_classname,_objectHelper,_cnt],4,false,false];
|
||||
s_player_toggleSnapSelectPoint set [count s_player_toggleSnapSelectPoint,snapActions];
|
||||
_cnt = _cnt+1;
|
||||
}count _points;
|
||||
};
|
||||
};
|
||||
|
||||
fnc_initSnapPoints = {
|
||||
snapGizmos = [];
|
||||
{
|
||||
_objectSnapGizmo = "Sign_sphere10cm_EP1" createVehicleLocal [0,0,0];
|
||||
_objectSnapGizmo setobjecttexture [0,_objColorInactive];
|
||||
_objectSnapGizmo attachTo [_object,[_x select 0,_x select 1,_x select 2]];
|
||||
snapGizmos set [count snapGizmos,_objectSnapGizmo];
|
||||
} count _points;
|
||||
};
|
||||
|
||||
fnc_initSnapPointsNearby = {
|
||||
_pos = [_object] call FNC_GetPos;
|
||||
_findWhitelisted = []; _pointsNearby = [];
|
||||
_findWhitelisted = nearestObjects [_pos,_whitelist,(_radius + DZE_snapExtraRange)]-[_object];
|
||||
snapGizmosNearby = [];
|
||||
{
|
||||
_nearbyObject = _x;
|
||||
_pointsNearby = getArray (configFile >> "SnapBuilding" >> (typeOf _x) >> "points");
|
||||
{
|
||||
_objectSnapGizmo = "Sign_sphere10cm_EP1" createVehicleLocal [0,0,0];
|
||||
_objectSnapGizmo setobjecttexture [0,_objColorInactive];
|
||||
_objectSnapGizmo setDir (getDir _nearbyObject);
|
||||
_posNearby = _nearbyObject modelToWorld [_x select 0,_x select 1,_x select 2];
|
||||
if (surfaceIsWater _posNearby) then {
|
||||
_objectSnapGizmo setPosASL [(_posNearby) select 0,(_posNearby) select 1,(getPosASL _nearbyObject select 2) + (_x select 2)];
|
||||
} else {
|
||||
_objectSnapGizmo setPosATL _posNearby;
|
||||
};
|
||||
snapGizmosNearby set [count snapGizmosNearby,_objectSnapGizmo];
|
||||
} count _pointsNearby;
|
||||
} forEach _findWhitelisted;
|
||||
};
|
||||
|
||||
fnc_initSnapPointsCleanup = {
|
||||
{detach _x;deleteVehicle _x;}count snapGizmos;snapGizmos=[];
|
||||
{detach _x;deleteVehicle _x;}count snapGizmosNearby;snapGizmosNearby=[];
|
||||
snapActionState = "OFF";
|
||||
};
|
||||
|
||||
fnc_snapDistanceCheck = {
|
||||
while {snapActionState != "OFF"} do {
|
||||
private ["_distClosestPointFound","_distCheck","_distClosest","_distClosestPoint","_testXPos","_testXDir","_distClosestPointFoundPos","_distClosestPointFoundDir","_distClosestAttached","_distCheckAttached","_distClosestAttachedFoundPos"];
|
||||
_distClosestPointFound = objNull; _distCheck = 0; _distClosest = 10; _distClosestPoint = objNull; _testXPos = []; _distClosestPointFoundPos =[]; _distClosestPointFoundDir = 0;
|
||||
{
|
||||
if (_x !=_distClosestPointFound) then {_x setobjecttexture [0,_objColorInactive];};
|
||||
_testXPos = [_x] call FNC_GetPos;
|
||||
_distCheck = _objectHelper distance _testXPos;
|
||||
_distClosestPoint = _x;
|
||||
if (_distCheck < _distClosest) then {
|
||||
_distClosest = _distCheck;
|
||||
_distClosestPointFound setobjecttexture [0,_objColorInactive];
|
||||
_distClosestPointFound = _x;
|
||||
_distClosestPointFound setobjecttexture [0,_objColorActive];
|
||||
};
|
||||
} count snapGizmosNearby;
|
||||
|
||||
if (!isNull _distClosestPointFound) then {
|
||||
if (snapActionStateSelect == "Manual") then {
|
||||
if (helperDetach) then {
|
||||
_onWater = surfaceIsWater position _distClosestPointFound;
|
||||
_distClosestPointFoundDir = getDir _distClosestPointFound;
|
||||
if (_onWater) then {
|
||||
_distClosestPointFoundPos = getPosASL _distClosestPointFound;
|
||||
_objectHelper setPosASL _distClosestPointFoundPos;
|
||||
} else {
|
||||
_distClosestPointFoundPos = getPosATL _distClosestPointFound;
|
||||
_objectHelper setPosATL _distClosestPointFoundPos;
|
||||
};
|
||||
_objectHelper setDir _distClosestPointFoundDir;
|
||||
waitUntil {sleep 0.1; !helperDetach};
|
||||
};
|
||||
} else {
|
||||
_distClosestAttached = objNull; _distCheckAttached = 0; _distClosest = 10; _distClosestAttachedFoundPos = [];
|
||||
{
|
||||
if (_x !=_distClosestAttached) then {_x setobjecttexture [0,_objColorInactive];};
|
||||
_testXPos = [_x] call FNC_GetPos;
|
||||
_distCheckAttached = _distClosestPointFound distance _testXPos;
|
||||
_distClosestPoint = _x;
|
||||
if (_distCheckAttached < _distClosest) then {
|
||||
_distClosest = _distCheckAttached;
|
||||
_distClosestAttached setobjecttexture [0,_objColorInactive];
|
||||
_distClosestAttached = _x;
|
||||
_distClosestAttached setobjecttexture [0,_objColorActive];
|
||||
};
|
||||
} count snapGizmos;
|
||||
|
||||
if (helperDetach) then {
|
||||
_distClosestPointFoundDir = getDir _distClosestPointFound;
|
||||
_onWater = surfaceIsWater position _distClosestPointFound;
|
||||
if (_onWater) then {
|
||||
_distClosestPointFoundPos = getPosASL _distClosestPointFound;
|
||||
_distClosestAttachedFoundPos = getPosASL _distClosestAttached;
|
||||
detach _object;
|
||||
_objectHelper setPosASL _distClosestAttachedFoundPos;
|
||||
_object attachTo [_objectHelper];
|
||||
_objectHelper setPosASL _distClosestPointFoundPos;
|
||||
} else {
|
||||
_distClosestPointFoundPos = getPosATL _distClosestPointFound;
|
||||
_distClosestAttachedFoundPos = getPosATL _distClosestAttached;
|
||||
detach _object;
|
||||
_objectHelper setPosATL _distClosestAttachedFoundPos;
|
||||
_object attachTo [_objectHelper];
|
||||
_objectHelper setPosATL _distClosestPointFoundPos;
|
||||
};
|
||||
_objectHelper setDir _distClosestPointFoundDir;
|
||||
waitUntil {sleep 0.1; !helperDetach};
|
||||
};
|
||||
};
|
||||
};
|
||||
sleep 0.1;
|
||||
};
|
||||
};
|
||||
|
||||
fnc_initSnapTutorial = {
|
||||
/*
|
||||
Shows help dialog for player ONCE per log in, explaining controls.
|
||||
Add snapTutorial = false; to your init.sqf to disable this tutorial completely.
|
||||
You can also add this bool to the end of this function to only show tutorial once per player login (not recommended)
|
||||
*/
|
||||
private ["_bldTxtSwitch","_bldTxtEnable","_bldTxtClrO","_bldTxtClrW","_bldTxtClrR","_bldTxtClrG","_bldTxtSz","_bldTxtSzT","_bldTxtShdw","_bldTxtAlgnL","_bldTxtUndrln","_bldTxtBold","_bldTxtFinal","_bldTxtStringTitle","_bldTxtStringSD","_bldTxtStringSE","_bldTxtStringSA","_bldTxtStringSM","_bldTxtStringPG","_bldTxtStringAPG","_bldTxtStringCPG","_bldTxtStringQE","_bldTxtStringQEF","_bldTxtStringFD","_bldTxtStringFS"];
|
||||
if (isNil "snapTutorial") then {
|
||||
_bldTxtSwitch = _this select 0;
|
||||
_bldTxtEnable = _this select 1;
|
||||
_bldTxtClrO = "color='#ff8800'"; //orange
|
||||
_bldTxtClrW = "color='#ffffff'"; //white
|
||||
_bldTxtClrR = "color='#fd0a05'"; //red
|
||||
_bldTxtClrG = "color='#11ef00'"; //green
|
||||
_bldTxtSz = "size='0.76'"; //Title font size
|
||||
_bldTxtSzT = "size='0.4'"; //Text font size
|
||||
_bldTxtShdw = "shadow='1'"; //Font shadow
|
||||
_bldTxtAlgnL = "align='left'"; //Text align left
|
||||
_bldTxtUndrln = "underline='true'";
|
||||
_bldTxtBold = "font='Zeppelin33'"; //Bold text
|
||||
_bldTxtFinal = "";
|
||||
|
||||
//Delete on init
|
||||
800 cutRsc ["Default", "PLAIN"];
|
||||
sleep 0.1;
|
||||
|
||||
//Init Tutorial text
|
||||
if (_bldTxtEnable) then {
|
||||
_bldTxtStringTitle = format ["<t %1%2%3%4%6>Epoch<t %5%7> Snap Building</t></t><br />",_bldTxtClrW,_bldTxtSz,_bldTxtShdw,_bldTxtAlgnL,_bldTxtClrO,_bldTxtUndrln,_bldTxtBold];
|
||||
_bldTxtStringSD = format["<t %1%4%5%6>[Snap]<t %2> Disabled:</t> <t %3>use action menu to enable.</t></t><br /><br />",_bldTxtClrO,_bldTxtClrR,_bldTxtClrW,_bldTxtSzT,_bldTxtShdw,_bldTxtAlgnL];
|
||||
_bldTxtStringSE = format["<t %1%4%5%6>[Snap]<t %2> Enabled:</t> <t %3>use action menu to disable.</t></t><br /><br />",_bldTxtClrO,_bldTxtClrG,_bldTxtClrW,_bldTxtSzT,_bldTxtShdw,_bldTxtAlgnL];
|
||||
_bldTxtStringSA = format["<t %1%3%4%5>[Auto]<t %2>: Automatic snap point detection.</t></t><br /><br />",_bldTxtClrO,_bldTxtClrW,_bldTxtSzT,_bldTxtShdw,_bldTxtAlgnL];
|
||||
_bldTxtStringSM = format["<t %1%3%4%5>[Manual]<t %2>: Select your preferred snap point.</t></t><br /><br />",_bldTxtClrO,_bldTxtClrW,_bldTxtSzT,_bldTxtShdw,_bldTxtAlgnL];
|
||||
_bldTxtStringPG = format["<t %1%3%4%5>[PgUP / PgDOWN]<t %2>: Adjust height of object by 10cm</t></t><br />",_bldTxtClrO,_bldTxtClrW,_bldTxtSzT,_bldTxtShdw,_bldTxtAlgnL];
|
||||
_bldTxtStringAPG = format["<t %1%3%4%5>[Alt]+[PgUP / PgDOWN]<t %2>: Adjust height of object by 1m</t></t><br />",_bldTxtClrO,_bldTxtClrW,_bldTxtSzT,_bldTxtShdw,_bldTxtAlgnL];
|
||||
_bldTxtStringCPG = format["<t %1%3%4%5>[Ctrl]+[PgUP / PgDOWN]<t %2>: Adjust height of object by 1cm</t></t><br />",_bldTxtClrO,_bldTxtClrW,_bldTxtSzT,_bldTxtShdw,_bldTxtAlgnL];
|
||||
_bldTxtStringQE = format["<t %1%3%4%5>[Q / E]<t %2>: Rotate object 180 degrees while holding.</t></t><br />",_bldTxtClrO,_bldTxtClrW,_bldTxtSzT,_bldTxtShdw,_bldTxtAlgnL];
|
||||
_bldTxtStringQEF = format["<t %1%3%4%5>[Q / E]<t %2>: Rotate object 45 degrees while dropped or snapped.</t></t><br /><br />",_bldTxtClrO,_bldTxtClrW,_bldTxtSzT,_bldTxtShdw,_bldTxtAlgnL];
|
||||
_bldTxtStringFD = format["<t %1%3%4%5>[F]<t %2>: Drop / Pick up object.</t></t><br />",_bldTxtClrO,_bldTxtClrW,_bldTxtSzT,_bldTxtShdw,_bldTxtAlgnL];
|
||||
_bldTxtStringFS = format["<t %1%3%4%5>[F]<t %2>: Snap /Pick up object.</t></t><br />",_bldTxtClrO,_bldTxtClrW,_bldTxtSzT,_bldTxtShdw,_bldTxtAlgnL];
|
||||
switch (_bldTxtSwitch) do {
|
||||
case "init": {
|
||||
_bldTxtFinal = _bldTxtStringTitle + _bldTxtStringSD + _bldTxtStringPG + _bldTxtStringAPG + _bldTxtStringCPG + _bldTxtStringQE + _bldTxtStringQEF + _bldTxtStringFD;
|
||||
};
|
||||
case "OnAuto": {
|
||||
_bldTxtFinal = _bldTxtStringTitle + _bldTxtStringSE + _bldTxtStringSA + _bldTxtStringPG + _bldTxtStringAPG + _bldTxtStringCPG + _bldTxtStringQE + _bldTxtStringQEF + _bldTxtStringFS;
|
||||
};
|
||||
case "manual": {
|
||||
_bldTxtFinal = _bldTxtStringTitle + _bldTxtStringSE + _bldTxtStringSM + _bldTxtStringPG + _bldTxtStringAPG + _bldTxtStringCPG + _bldTxtStringQE + _bldTxtStringQEF + _bldTxtStringFS;
|
||||
};
|
||||
};
|
||||
|
||||
[
|
||||
_bldTxtFinal, //structured text
|
||||
0.73 * safezoneW + safezoneX, //number - x
|
||||
0.65 * safezoneH + safezoneY, //number - y
|
||||
30, //number - duration
|
||||
1, // number - fade in time
|
||||
0, // number - delta y
|
||||
800 //number - layer ID
|
||||
] spawn bis_fnc_dynamicText;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
switch (snapActionState) do {
|
||||
case "Init": {
|
||||
["init",true] call fnc_initSnapTutorial;
|
||||
snapActionState = "OFF";
|
||||
[1,0,0] call fnc_snapActionCleanup;
|
||||
[] spawn {
|
||||
while {true} do {
|
||||
if(!DZE_ActionInProgress || DZE_cancelBuilding) exitWith {call fnc_initSnapPointsCleanup;[0,0,0] call fnc_snapActionCleanup; ["",false] call fnc_initSnapTutorial; snapActionState = "OFF";};
|
||||
sleep 2;
|
||||
};
|
||||
};
|
||||
};
|
||||
case "OFF": {
|
||||
["OnAuto",true] call fnc_initSnapTutorial;
|
||||
snapActionState = "ON"; snapActionStateSelect = "Auto";
|
||||
[1,1,0] call fnc_snapActionCleanup;
|
||||
call fnc_initSnapPoints;
|
||||
call fnc_initSnapPointsNearby;
|
||||
sleep 0.25;
|
||||
call fnc_snapDistanceCheck;
|
||||
};
|
||||
|
||||
case "ON": {
|
||||
["init",true] call fnc_initSnapTutorial;
|
||||
snapActionState = "OFF";
|
||||
[1,0,0] call fnc_snapActionCleanup;
|
||||
call fnc_initSnapPointsCleanup;
|
||||
};
|
||||
|
||||
case "Auto": {
|
||||
["manual",true] call fnc_initSnapTutorial;
|
||||
snapActionState = "ON";snapActionStateSelect = "Manual";
|
||||
[1,1,1] call fnc_snapActionCleanup;
|
||||
};
|
||||
|
||||
case "Manual": {
|
||||
["OnAuto",true] call fnc_initSnapTutorial;
|
||||
snapActionState = "ON";snapActionStateSelect = "Auto";
|
||||
[1,1,0] call fnc_snapActionCleanup;
|
||||
};
|
||||
|
||||
case "Selected": { _cnt = 0; _newPos = [];
|
||||
{
|
||||
_x setobjecttexture [0,_objColorInactive];
|
||||
if (_cnt == _selectedAction) then {
|
||||
_newPos = [(getPosATL _x select 0),(getPosATL _x select 1),(getPosATL _x select 2)];
|
||||
detach _object;
|
||||
detach _objectHelper;
|
||||
_objectHelper setDir (getDir _object);
|
||||
_objectHelper setPosATL _newPos;
|
||||
_object attachTo [_objectHelper];
|
||||
_x setobjecttexture [0,_objColorActive];
|
||||
if (!helperDetach) then {_objectHelper attachTo [player]; _objectHelper setDir ((getDir _objectHelper)-(getDir player));};
|
||||
};
|
||||
_cnt = _cnt+1;
|
||||
}count snapGizmos;
|
||||
};
|
||||
};
|
||||
@@ -4,7 +4,7 @@ private ["_part_out","_part_in","_qty_out","_qty_in","_textPartIn","_textPartOut
|
||||
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_103") , "PLAIN DOWN"]; };
|
||||
DZE_ActionInProgress = true;
|
||||
|
||||
//_activatingPlayer = if (DayZ_UseSteamID) then {GetPlayerUID player;} else {GetPlayerUIDOld player;};
|
||||
//_activatingPlayer = [player] call FNC_GetPlayerUID;
|
||||
|
||||
_part_out = (_this select 3) select 0;
|
||||
_part_in = (_this select 3) select 1;
|
||||
|
||||
@@ -40,7 +40,7 @@ if(_buy_o_sell == "sell") then {
|
||||
} else {
|
||||
|
||||
// buying item type must NOT exist if rifle || pistol
|
||||
_msg = "Drop || sell your current weapon before you can buy a new one.";
|
||||
_msg = "Drop or sell your current weapon before you can buy a new one.";
|
||||
_config = (configFile >> "CfgWeapons" >> _part_out);
|
||||
_configName = configName(_config);
|
||||
_wepType = getNumber(_config >> "Type");
|
||||
@@ -64,7 +64,7 @@ if(_buy_o_sell == "sell") then {
|
||||
};
|
||||
if(_isToolBelt || _isBinocs) then {
|
||||
_abort = (_configName in (weapons player));
|
||||
_msg = "Drop || sell your current toolbelt item before you can buy a new one.";
|
||||
_msg = "Drop or sell your current toolbelt item before you can buy a new one.";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -41,5 +41,5 @@ _hasItems = true;
|
||||
_textMissing = getText(configFile >> "CfgMagazines" >> _missing >> "displayName");
|
||||
cutText [format[(localize "STR_EPOCH_ACTIONS_12"), _missingQty, _textMissing], "PLAIN DOWN"];
|
||||
};
|
||||
} count _items;
|
||||
} forEach _items;
|
||||
_hasItems
|
||||
|
||||
@@ -76,7 +76,7 @@ if (_inVehicle) then {
|
||||
|
||||
if (!isNull _menClose && _hasPatient && !r_drag_sqf && !r_action && !_inVehicle && !r_player_unconscious && _isClose) then {
|
||||
_unit = cursorTarget;
|
||||
_isDisallowRefuel = typeOf _unit in ["M240Nest_DZ"];
|
||||
_isDisallowRefuel = typeOf _unit in ["M240Nest_DZ","MMT_Civ","MMT_USMC","Old_bike_TK_CIV_EP1","Old_bike_TK_INS_EP1"];
|
||||
// player reveal _unit;
|
||||
_vehClose = (getPosATL player) nearEntities [["Car","Tank","Helicopter","Plane","StaticWeapon","Ship"],5]; //nearestObjects [player, ["Car","Tank","Helicopter","Plane","StaticWeapon","Ship"], 5];
|
||||
_hasVehicle = ({alive _x} count _vehClose > 0);
|
||||
|
||||
@@ -13,7 +13,7 @@ _isOk = false;
|
||||
_isOk = _cTarget isKindOf _x;
|
||||
};
|
||||
} count ["LandVehicle","Air", "Ship"];
|
||||
_Dis = if (_cTarget isKindOf "USEC_ch53_E") then {25;} else {12;};
|
||||
_Dis = if (_cTarget isKindOf "USEC_ch53_E" || _cTarget isKindOf "MV22") then {25} else {12};
|
||||
if((locked _cTarget) && _isOk && (((vehicle player) distance _cTarget) < _Dis)) then {
|
||||
cutText [(localize "str_epoch_player_7") , "PLAIN DOWN"];
|
||||
_display closeDisplay 1;
|
||||
|
||||
@@ -866,6 +866,10 @@ if (!isNull cursorTarget && !_inVehicle && !_isPZombie && (player distance curso
|
||||
s_player_SurrenderedGear = -1;
|
||||
|
||||
//Others
|
||||
player removeAction s_player_maintain_area;
|
||||
s_player_maintain_area = -1;
|
||||
player removeAction s_player_maintain_area_preview;
|
||||
s_player_maintain_area_preview = -1;
|
||||
player removeAction s_player_forceSave;
|
||||
s_player_forceSave = -1;
|
||||
player removeAction s_player_flipveh;
|
||||
|
||||
@@ -11,7 +11,9 @@ if ((!r_player_handler1) && (r_handlerCount == 0)) then {
|
||||
_timeout = 0;
|
||||
r_handlerCount = r_handlerCount + 1;
|
||||
r_player_handler1 = true;
|
||||
player playAction "CanNotMove";
|
||||
if (vehicle player == player) then {
|
||||
player playAction "CanNotMove";
|
||||
};
|
||||
"dynamicBlur" ppEffectEnable true;"dynamicBlur" ppEffectAdjust [2]; "dynamicBlur" ppEffectCommit 0;
|
||||
"colorCorrections" ppEffectEnable true;"colorCorrections" ppEffectEnable true;"colorCorrections" ppEffectAdjust [1, 1, 0, [1, 1, 1, 0.0], [1, 1, 1, 0.1], [1, 1, 1, 0.0]];"colorCorrections" ppEffectCommit 0;
|
||||
0 fadeSound 0.05;
|
||||
|
||||
@@ -137,7 +137,7 @@ if(isServer)then{
|
||||
};
|
||||
};
|
||||
sleep 0.001;
|
||||
} count _missonLights;
|
||||
} forEach _missonLights;
|
||||
if (_delQtyLights > 0) then {
|
||||
_qty = count _missonLights;
|
||||
diag_log (format["CLEANUP: Deleted %1 Lights out of %2",_delQtyLights,_qty]);
|
||||
|
||||
@@ -39,11 +39,10 @@ if (count _this > 4) then {
|
||||
};
|
||||
|
||||
_isWoman = getText(configFile >> "cfgVehicles" >> (typeOf _unit) >> "TextPlural") == "Women";
|
||||
if (_isWoman && (_type in ["scream","panic"])) then {
|
||||
if (_isWoman && (_type in ["scream","panic","cough"])) then {
|
||||
_type = _type + "_w";
|
||||
};
|
||||
|
||||
|
||||
if ((round(random _chance) == _chance) || (_chance == 0)) then {
|
||||
_rnd =(round(random _num));
|
||||
_sound = "z_" + _type + "_" + str(_rnd);
|
||||
@@ -52,4 +51,4 @@ if ((round(random _chance) == _chance) || (_chance == 0)) then {
|
||||
} else {
|
||||
[nil,_unit,rSAY,[_sound, _dis]] call RE;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
|
||||
private ["_list","_animalssupported","_type","_root","_favouritezones","_randrefpoint","_PosList","_PosSelect","_Pos","_agent","_id"];
|
||||
_list = getposATL player nearEntities [["CAAnimalBase"],dayz_animalDistance];
|
||||
|
||||
if (count _list < dayz_maxAnimals) then {
|
||||
//Find where animal likes
|
||||
private ["_animalssupported","_type","_agent","_favouritezones","_randrefpoint","_PosList","_PosSelect","_Pos","_list"];
|
||||
_list = (getposATL player) nearEntities [["CAAnimalBase"],dayz_animalDistance];
|
||||
if ((count _list) < dayz_maxAnimals) then {
|
||||
_animalssupported = ["Chicken","Cow","Sheep","WildBoar","WildBoar","WildBoar","Goat","Rabbit","Rabbit","Dog"];
|
||||
|
||||
_type = (_animalssupported select floor(random(count _animalssupported)));
|
||||
if (_type == "Cow") then {
|
||||
_animalssupported = ["Cow01","Cow02","Cow03","Cow04","Cow01_EP1"];
|
||||
_type = (_animalssupported select floor(random(count _animalssupported)));
|
||||
_type = (_animalssupported select (floor(random(count _animalssupported))));
|
||||
Switch (_type) do {
|
||||
case "Cow" : {
|
||||
_animalssupported = ["Cow01","Cow02","Cow03","Cow04","Cow01_EP1"];
|
||||
_type = (_animalssupported select (floor(random(count _animalssupported))));
|
||||
};
|
||||
case "Goat" : {
|
||||
_animalssupported = ["Goat01_EP1","Goat02_EP1","Goat"];
|
||||
_type = (_animalssupported select (floor(random(count _animalssupported))));
|
||||
};
|
||||
case "Sheep" : {
|
||||
_animalssupported = ["Sheep","Sheep02_EP1","Sheep01_EP1"];
|
||||
_type = (_animalssupported select (floor(random(count _animalssupported))));
|
||||
};
|
||||
case "Chicken" : {
|
||||
_animalssupported = ["Hen","Cock"];
|
||||
_type = (_animalssupported select (floor(random(count _animalssupported))));
|
||||
};
|
||||
case "Dog" : {
|
||||
_animalssupported = ["DZ_Fin","DZ_Pastor"];
|
||||
_type = (_animalssupported select (floor(random(count _animalssupported))));
|
||||
};
|
||||
};
|
||||
if (_type == "Goat") then {
|
||||
_animalssupported = ["Goat01_EP1","Goat02_EP1","Goat"];
|
||||
_type = (_animalssupported select floor(random(count _animalssupported)));
|
||||
};
|
||||
if (_type == "Sheep") then {
|
||||
_animalssupported = ["Sheep","Sheep02_EP1","Sheep01_EP1"];
|
||||
_type = (_animalssupported select floor(random(count _animalssupported)));
|
||||
};
|
||||
if (_type == "Chicken") then {
|
||||
_animalssupported = ["Hen","Cock"];
|
||||
_type = (_animalssupported select floor(random(count _animalssupported)));
|
||||
};
|
||||
if (_type == "Dog") then {
|
||||
_animalssupported = ["DZ_Fin","DZ_Pastor"];
|
||||
_type = (_animalssupported select floor(random(count _animalssupported)));
|
||||
};
|
||||
|
||||
_root = configFile >> "CfgVehicles" >> _type;
|
||||
_favouritezones = getText ( _root >> "favouritezones");
|
||||
//_randrefpoint = [position player, 10, dayz_animalDistance, 1, 0, 50, 0] call BIS_fnc_findSafePos;
|
||||
_favouritezones = getText (configFile >> "CfgVehicles" >> _type >> "favouritezones");
|
||||
_randrefpoint = getposATL player;
|
||||
_PosList = selectbestplaces [_randrefpoint,dayz_animalDistance,_favouritezones,10,5];
|
||||
_PosSelect = _PosList select (floor random (count _PosList));
|
||||
_PosList = selectBestPlaces [_randrefpoint,dayz_animalDistance,_favouritezones,10,5];
|
||||
_PosSelect = _PosList select (floor(random(count _PosList)));
|
||||
_Pos = _PosSelect select 0;
|
||||
_list = _Pos nearEntities [["CAAnimalBase","Man"],50];
|
||||
|
||||
|
||||
if (player distance _Pos < dayz_animalDistance && NOT surfaceIsWater _Pos && (count _list <= 1)) then {
|
||||
if (((player distance _Pos) < dayz_animalDistance) && {!(surfaceIsWater _Pos)} && {(count _list) <= 1}) then {
|
||||
if (_type == "DZ_Pastor") then { _agent = createAgent [_type, _Pos, [], 0, "NONE"]; } else { _agent = createAgent [_type, _Pos, [], 0, "FORM"]; };
|
||||
_agent setpos _Pos;
|
||||
|
||||
sleep 0.001;
|
||||
_agent setPos _Pos;
|
||||
_id = [_pos,_agent] execFSM "\z\addons\dayz_code\system\animal_agent.fsm";
|
||||
PVDZE_zed_Spawn = [_agent];
|
||||
publicVariableServer "PVDZE_zed_Spawn";
|
||||
|
||||
_id = [_pos,_agent] execFSM "\z\addons\dayz_code\system\animal_agent.fsm";
|
||||
};
|
||||
sleep 1;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -12,7 +12,7 @@ if (dialog) then {closeDialog 0;};
|
||||
if (visibleMap) then {openMap false;};
|
||||
|
||||
_body = player;
|
||||
_playerID = if (DayZ_UseSteamID) then {GetPlayerUID player;} else {GetPlayerUIDOld player;};
|
||||
_playerID = [player] call FNC_GetPlayerUID;
|
||||
|
||||
disableUserInput true;
|
||||
//add weapon on back to player...
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
private ["_objects"];
|
||||
_objects = nearestObjects [getPosATL player, dayz_updateObjects, 10];
|
||||
_objects = nearestObjects [player, dayz_updateObjects, 10];
|
||||
{
|
||||
//["PVDZE_veh_Update",[_x,"gear"]] call callRpcProcedure;
|
||||
PVDZE_veh_Update = [_x,"gear"];
|
||||
|
||||
@@ -31,7 +31,7 @@ while {!isNull _display} do {
|
||||
cutText [localize "str_abort_playerclose", "PLAIN DOWN"];
|
||||
_sleep = 1;
|
||||
};
|
||||
case (!r_player_dead && !canbuild) : {
|
||||
case (!r_player_dead && isInTraderCity) : {
|
||||
_btnAbort ctrlEnable false;
|
||||
cutText [(localize "str_epoch_player_12"), "PLAIN DOWN"];
|
||||
_sleep = 1;
|
||||
|
||||
@@ -150,4 +150,4 @@ if (_nearbyCount < 1) exitwith
|
||||
};
|
||||
};
|
||||
};
|
||||
} count _nearby;
|
||||
} forEach _nearby;
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
private ["_weapons","_backpackWpn","_backpackMag","_currentWpn","_isWeapon","_backpackWpnTypes","_backpackWpnQtys","_countr","_class","_position","_dir","_currentAnim","_tagSetting","_playerUID","_countMags","_magazines","_primweapon","_secweapon","_newBackpackType","_muzzles","_oldUnit","_group","_newUnit","_playerObjName","_wpnType","_ismelee"];
|
||||
|
||||
private ["_weapons","_backpackWpn","_backpackMag","_currentWpn","_isWeapon","_backpackWpnTypes","_backpackWpnQtys","_countr","_class","_position","_dir","_currentAnim","_tagSetting","_playerUID","_countMags","_magazines","_primweapon","_secweapon","_newBackpackType","_muzzles","_oldUnit","_group","_newUnit","_playerObjName","_wpnType","_ismelee","_oldGroup"];
|
||||
if (gear_done) then {disableUserInput true;};
|
||||
_class = _this;
|
||||
_position = getPosATL player;
|
||||
_dir = getDir player;
|
||||
_currentAnim = animationState player;
|
||||
_tagSetting = player getVariable["DZE_display_name",false];
|
||||
_playerUID = if (DayZ_UseSteamID) then {GetPlayerUID player;} else {GetPlayerUIDOld player;};
|
||||
_playerUID = [player] call FNC_GetPlayerUID;
|
||||
_weapons = weapons player;
|
||||
_countMags = call player_countMagazines;
|
||||
_magazines = _countMags select 0;
|
||||
@@ -16,11 +16,11 @@ _primweapon = primaryWeapon player;
|
||||
_secweapon = secondaryWeapon player;
|
||||
|
||||
if(!(_primweapon in _weapons) && _primweapon != "") then {
|
||||
_weapons = _weapons + [_primweapon];
|
||||
_weapons set [(count _weapons), _primweapon];
|
||||
};
|
||||
|
||||
if(!(_secweapon in _weapons) && _secweapon != "") then {
|
||||
_weapons = _weapons + [_secweapon];
|
||||
_weapons set [(count _weapons), _secweapon];
|
||||
};
|
||||
|
||||
//BackUp Backpack
|
||||
@@ -43,6 +43,7 @@ player setPosATL dayz_spawnPos;
|
||||
|
||||
//BackUp Player Object
|
||||
_oldUnit = player;
|
||||
_oldGroup = group player;
|
||||
|
||||
/**********************************/
|
||||
//DONT USE player AFTER THIS POINT//
|
||||
@@ -110,6 +111,7 @@ _switchUnit = {
|
||||
removeAllWeapons _oldUnit;
|
||||
{_oldUnit removeMagazine _x;} count magazines _oldUnit;
|
||||
deleteVehicle _oldUnit;
|
||||
if (count units _oldGroup < 1) then {deleteGroup _oldGroup;};
|
||||
if(_currentWpn != "") then {_newUnit selectWeapon _currentWpn;};
|
||||
};
|
||||
//Add && Fill BackPack
|
||||
@@ -127,6 +129,7 @@ if (!isNil "_newBackpackType") then {
|
||||
[] call _switchUnit;
|
||||
if (gear_done) then {sleep 0.001;};
|
||||
["1"] call gearDialog_create;
|
||||
if (gear_done) then {sleep 0.001;};
|
||||
//magazines
|
||||
_countr = 0;
|
||||
{
|
||||
@@ -147,6 +150,7 @@ if (!isNil "_newBackpackType") then {
|
||||
};
|
||||
} count _backpackMag;
|
||||
(findDisplay 106) closeDisplay 0;
|
||||
if (gear_done) then {sleep 0.001; disableUserInput false;};
|
||||
_countr = 0;
|
||||
{
|
||||
(unitBackpack player) addWeaponCargoGlobal [_x,(_backpackWpnQtys select _countr)];
|
||||
@@ -156,24 +160,14 @@ if (!isNil "_newBackpackType") then {
|
||||
} else { [] call _switchUnit; };
|
||||
[objNull, player, rSwitchMove,_currentAnim] call RE;
|
||||
player disableConversation true;
|
||||
|
||||
//player setVariable ["bodyName",dayz_playerName,true]; //Outcommit (Issue #991) - Also removed in DayZ Mod 1.8
|
||||
|
||||
if (_tagSetting) then {
|
||||
DZE_ForceNameTags = true;
|
||||
};
|
||||
|
||||
_playerUID = if (DayZ_UseSteamID) then {GetPlayerUID player;} else {GetPlayerUIDOld player;};
|
||||
_playerObjName = format["PVDZE_player%1",_playerUID];
|
||||
call compile format["%1 = player;",_playerObjName];
|
||||
publicVariableServer _playerObjName; //Outcommit in DayZ 1.8 No clue for what this is - Skaronator
|
||||
|
||||
//melee check
|
||||
_wpnType = primaryWeapon player;
|
||||
_ismelee = (gettext (configFile >> "CfgWeapons" >> _wpnType >> "melee"));
|
||||
if (_ismelee == "true") then {
|
||||
call dayz_meleeMagazineCheck;
|
||||
};
|
||||
|
||||
//reveal the same objects we do on login
|
||||
{player reveal _x} count (nearestObjects [getPosATL player, dayz_reveal, 50]);
|
||||
{player reveal _x} count (nearestObjects [getPosATL player, dayz_reveal, 50]);
|
||||
|
||||
@@ -8,12 +8,12 @@ TraderDialogSellBtn = 12005;
|
||||
TraderDialogCurrency = 12006;
|
||||
|
||||
TraderCurrentCatIndex = -1;
|
||||
TraderCatList = -1;
|
||||
TraderItemList = -1;
|
||||
TraderCatList = [];
|
||||
TraderItemList = [];
|
||||
|
||||
TraderDialogLoadItemList = {
|
||||
private ["_index","_trader_id","_activatingPlayer","_distance","_objclass","_item_list"];
|
||||
TraderItemList = -1;
|
||||
TraderItemList = [];
|
||||
_index = _this select 0;
|
||||
|
||||
if (_index < 0) exitWith {};
|
||||
@@ -210,7 +210,7 @@ TraderDialogBuy = {
|
||||
_item = TraderItemList select _index;
|
||||
_data = [_item select 0, _item select 3, 1, _item select 2, "buy", _item select 4, _item select 1, _item select 8];
|
||||
[0, player, '', _data] execVM (_item select 9);
|
||||
TraderItemList = -1;
|
||||
TraderItemList = [];
|
||||
};
|
||||
|
||||
TraderDialogSell = {
|
||||
@@ -222,5 +222,5 @@ TraderDialogSell = {
|
||||
_item = TraderItemList select _index;
|
||||
_data = [_item select 6, _item select 0, _item select 5, 1, "sell", _item select 1, _item select 7, _item select 8];
|
||||
[0, player, '', _data] execVM (_item select 9);
|
||||
TraderItemList = -1;
|
||||
TraderItemList = [];
|
||||
};
|
||||
|
||||
@@ -8,12 +8,12 @@ TraderDialogSellBtn = 12005;
|
||||
TraderDialogCurrency = 12006;
|
||||
|
||||
TraderCurrentCatIndex = -1;
|
||||
TraderCatList = -1;
|
||||
TraderItemList = -1;
|
||||
TraderCatList = [];
|
||||
TraderItemList = [];
|
||||
|
||||
TraderDialogLoadItemList = {
|
||||
private ["_index","_trader_id","_activatingPlayer","_distance","_objclass","_item_list"];
|
||||
TraderItemList = -1;
|
||||
TraderItemList = [];
|
||||
_index = _this select 0;
|
||||
|
||||
if (_index < 0 || TraderCurrentCatIndex == _index) exitWith {};
|
||||
@@ -198,7 +198,7 @@ TraderDialogBuy = {
|
||||
_item = TraderItemList select _index;
|
||||
_data = [_item select 0, _item select 3, 1, _item select 2, "buy", _item select 4, _item select 1, _item select 8];
|
||||
[0, player, '', _data] execVM (_item select 9);
|
||||
TraderItemList = -1;
|
||||
TraderItemList = [];
|
||||
};
|
||||
|
||||
TraderDialogSell = {
|
||||
@@ -210,5 +210,5 @@ TraderDialogSell = {
|
||||
_item = TraderItemList select _index;
|
||||
_data = [_item select 6, _item select 0, _item select 5, 1, "sell", _item select 1, _item select 7, _item select 8];
|
||||
[0, player, '', _data] execVM (_item select 9);
|
||||
TraderItemList = -1;
|
||||
TraderItemList = [];
|
||||
};
|
||||
|
||||
@@ -39,7 +39,7 @@ if ((_ownerID == dayz_combination) || (_ownerID == dayz_playerUID)) then {
|
||||
|
||||
// Check if any players are nearby if not allow player to claim item.
|
||||
_playerNear = {isPlayer _x} count (player nearEntities ["CAManBase", 6]) > 1;
|
||||
_playerID = if (DayZ_UseSteamID) then {GetPlayerUID player;} else {GetPlayerUIDOld player;};
|
||||
_playerID = [player] call FNC_GetPlayerUID;
|
||||
|
||||
// Only allow if not already claimed.
|
||||
if (_claimedBy == "0" || !_playerNear) then {
|
||||
|
||||
@@ -1,6 +1,139 @@
|
||||
private ["_display","_ctrlBlood","_ctrlBleed","_bloodVal","_humanityName","_ctrlFood","_ctrlThirst","_thirstVal","_foodVal","_ctrlTemp","_tempVal","_combatVal","_array","_ctrlEar","_ctrlEye","_ctrlCombat","_ctrlFracture","_visualText","_visual","_audibleText","_audible","_blood","_thirstLvl","_foodLvl","_tempImg","_thirst","_food","_temp","_bloodLvl","_tempLvl","_color","_string","_humanity","_size","_friendlies","_charID","_rcharID","_rfriendlies","_rfriendlyTo","_distance","_targetControl"];
|
||||
private ["_display","_ctrlBlood","_ctrlBleed","_bloodVal","_humanityName","_ctrlFood","_ctrlThirst","_thirstVal","_foodVal","_ctrlTemp","_tempVal","_combatVal","_array","_ctrlEar","_ctrlEye","_ctrlCombat","_ctrlFracture","_visualText","_visual","_audibleText","_audible","_blood","_thirstLvl","_foodLvl","_tempImg","_thirst","_food","_temp","_bloodLvl","_tempLvl","_color","_string","_humanity","_size","_friendlies","_charID","_rcharID","_rfriendlies","_rfriendlyTo","_distance","_targetControl","_combattimeout","_timeleft"];
|
||||
disableSerialization;
|
||||
if(Dayz_Dark_UI) then {
|
||||
|
||||
_foodVal = (dayz_hunger / SleepFood);
|
||||
_thirstVal = (dayz_thirst / SleepWater);
|
||||
|
||||
if (uiNamespace getVariable ["DZ_displayUI", 0] == 1) exitWith {
|
||||
_array = [_foodVal,_thirstVal];
|
||||
_array
|
||||
};
|
||||
|
||||
if(dayz_combat == 1) then {
|
||||
_combattimeout = player getVariable["combattimeout",0];
|
||||
_timeleft = _combattimeout - time;
|
||||
_combatVal = (_timeleft/30);
|
||||
}
|
||||
else {
|
||||
_combatVal = 0;
|
||||
};
|
||||
|
||||
|
||||
_tempVal = ((dayz_temperatur - dayz_temperaturmin)/(dayz_temperaturmax - dayz_temperaturmin)); // Normalise to [0,1]
|
||||
_audible = (dayz_disAudial / 50);
|
||||
_visual = (dayz_disVisual / 100);
|
||||
_bloodVal = r_player_blood / r_player_bloodTotal;
|
||||
|
||||
_display = uiNamespace getVariable 'DAYZ_GUI_display';
|
||||
|
||||
_ctrlBlood = _display displayCtrl 1300;
|
||||
_ctrlBleed = _display displayCtrl 1303;
|
||||
_ctrlFood = _display displayCtrl 1301;
|
||||
_ctrlThirst = _display displayCtrl 1302;
|
||||
_ctrlTemp = _display displayCtrl 1306; //TeeChange
|
||||
_ctrlEar = _display displayCtrl 1304;
|
||||
_ctrlEye = _display displayCtrl 1305;
|
||||
//_ctrlHumanity = _display displayCtrl 1207;
|
||||
_ctrlCombat = _display displayCtrl 1307;
|
||||
_ctrlFracture = _display displayCtrl 1203;
|
||||
|
||||
//Food/Water/Blood
|
||||
_ctrlBlood ctrlSetTextColor [(1 - _bloodVal),(1 - _bloodVal),(1 - _bloodVal), 0.5];
|
||||
_ctrlFood ctrlSetTextColor [ _foodVal,_foodVal,_foodVal, 0.5];
|
||||
_ctrlThirst ctrlSetTextColor [ _thirstVal, _thirstVal, _thirstVal, 0.5];
|
||||
_ctrlTemp ctrlSetTextColor [(1 - _tempVal),(1 - _tempVal), (1 - _tempVal), 0.5]; // Color ranges from iceblue (cold) to red (hot)
|
||||
_ctrlCombat ctrlSetTextColor [ _combatVal, _combatVal, _combatVal, 0.5];
|
||||
_ctrlEye ctrlSetTextColor [ _visual, _visual, _visual, 0.5];
|
||||
_ctrlEar ctrlSetTextColor [ _audible, _audible, _audible, 0.5];
|
||||
/*
|
||||
Blood: round((r_player_blood / 2) / 1000) = _bloodLvl (6 = full, 1 = empty)
|
||||
Thirst: round(_thirstVal / 0.25) = _thirstLvl (4 = full, 0 = empty)
|
||||
Hunger: round(_foodVal / 0.25) = _foodLvl (4 = full, 0 = empty)
|
||||
Temp: round(dayz_temperatur) = tempLvl (>= 36 = full <= 28 = empty)
|
||||
*/
|
||||
/*
|
||||
diag_log format["DEBUG: bloodlvl: %1 r_player_blood: %2 bloodval: %3",_bloodLvl, r_player_blood, _bloodVal];
|
||||
diag_log format["DEBUG: thirstlvl: %1 dayz_thirst: %2 thirstval: %3",_thirstLvl, dayz_thirst, _thirstVal];
|
||||
diag_log format["DEBUG: foodlvl: %1 dayz_hunger: %2 foodval: %3",_foodLvl, dayz_hunger, _foodVal];
|
||||
diag_log format["DEBUG: templvl: %1 dayz_temperatur: %2 tempval: %3",_tempLvl, dayz_temperatur, _tempVal];
|
||||
*/
|
||||
|
||||
//left naming conventions the same in case other files are re-introduced at a later time
|
||||
_blood = "\z\addons\dayz_code\gui\status_blood_inside_6_ca.paa";
|
||||
_thirst = "\z\addons\dayz_code\gui\status_thirst_inside_4_ca.paa";
|
||||
_food = "\z\addons\dayz_code\gui\status_food_inside_4_ca.paa";
|
||||
_temp = "\z\addons\dayz_code\gui\status_temp_4_ca.paa";
|
||||
_visualtext = "\z\addons\dayz_code\gui\status_eye_ca.paa";
|
||||
_audibletext = "\z\addons\dayz_code\gui\status_ear_ca.paa";
|
||||
|
||||
_ctrlBlood ctrlSetText _blood;
|
||||
_ctrlThirst ctrlSetText _thirst;
|
||||
_ctrlFood ctrlSetText _food;
|
||||
_ctrlTemp ctrlSetText _temp;
|
||||
_ctrlEye ctrlSetText _visualtext;
|
||||
_ctrlEar ctrlSetText _audibletext;
|
||||
|
||||
/*
|
||||
Fracture:
|
||||
*/
|
||||
if (!canStand player) then {
|
||||
if (!(ctrlShown _ctrlFracture)) then {
|
||||
r_fracture_legs = true;
|
||||
_ctrlFracture ctrlShow true;
|
||||
};
|
||||
};
|
||||
|
||||
/*
|
||||
Flashing:
|
||||
*/
|
||||
_ctrl_Array=[];
|
||||
if (_combatVal > 0) then {
|
||||
_ctrl_Array=_ctrl_Array + [_ctrlCombat];
|
||||
}else {
|
||||
_ctrlCombat ctrlShow true;
|
||||
};
|
||||
|
||||
|
||||
if (_bloodVal < 0.4) then {
|
||||
_ctrl_Array=_ctrl_Array + [_ctrlBlood];
|
||||
}else {
|
||||
_ctrlBlood ctrlShow true;
|
||||
};
|
||||
|
||||
|
||||
if (_thirstVal > 0.8) then {
|
||||
_ctrl_Array=_ctrl_Array + [_ctrlThirst];
|
||||
}else {
|
||||
_ctrlThirst ctrlShow true;
|
||||
};
|
||||
|
||||
if (_foodVal > 0.8) then {
|
||||
_ctrl_Array=_ctrl_Array + [_ctrlFood];
|
||||
}else {
|
||||
_ctrlFood ctrlShow true;
|
||||
};
|
||||
|
||||
if (_tempVal < 0.2) then { //TeeChange
|
||||
_ctrl_Array=_ctrl_Array + [_ctrlTemp];
|
||||
} else {
|
||||
_ctrlTemp ctrlShow true;
|
||||
};
|
||||
|
||||
if (r_player_injured) then {
|
||||
_ctrl_Array=_ctrl_Array + [_ctrlBleed];
|
||||
}else {
|
||||
_ctrlBleed ctrlShow false;
|
||||
};
|
||||
|
||||
if((count _ctrl_Array) > 0) then
|
||||
{
|
||||
_ctrl_Array call player_guiControlFlash;
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
else {
|
||||
_foodVal = 1 - (dayz_hunger / SleepFood);
|
||||
_thirstVal = 1 - (dayz_thirst / SleepWater);
|
||||
_tempVal = 1 - ((dayz_temperatur - dayz_temperaturmin)/(dayz_temperaturmax - dayz_temperaturmin)); // Normalise to [0,1]
|
||||
@@ -110,30 +243,51 @@ if (!canStand player) then {
|
||||
/*
|
||||
Flashing:
|
||||
*/
|
||||
_ctrl_Array=[];
|
||||
if (_combatVal == 0) then {
|
||||
_ctrlCombat call player_guiControlFlash;
|
||||
_ctrl_Array=_ctrl_Array + [_ctrlCombat];
|
||||
}else {
|
||||
_ctrlCombat ctrlShow true;
|
||||
};
|
||||
|
||||
if (_bloodVal < 0.2) then {
|
||||
_ctrlBlood call player_guiControlFlash;
|
||||
|
||||
if (_bloodVal < 0.4) then {
|
||||
_ctrl_Array=_ctrl_Array + [_ctrlBlood];
|
||||
}else {
|
||||
_ctrlBlood ctrlShow true;
|
||||
};
|
||||
|
||||
|
||||
if (_thirstVal < 0.2) then {
|
||||
_ctrlThirst call player_guiControlFlash;
|
||||
_ctrl_Array=_ctrl_Array + [_ctrlThirst];
|
||||
}else {
|
||||
_ctrlThirst ctrlShow true;
|
||||
};
|
||||
|
||||
if (_foodVal < 0.2) then {
|
||||
_ctrlFood call player_guiControlFlash;
|
||||
_ctrl_Array=_ctrl_Array + [_ctrlFood];
|
||||
}else {
|
||||
_ctrlFood ctrlShow true;
|
||||
};
|
||||
|
||||
if (_tempVal > 0.8) then { //TeeChange
|
||||
_ctrlTemp call player_guiControlFlash;
|
||||
_ctrl_Array=_ctrl_Array + [_ctrlTemp];
|
||||
} else {
|
||||
_ctrlTemp ctrlShow true;
|
||||
};
|
||||
|
||||
if (r_player_injured) then {
|
||||
_ctrlBleed call player_guiControlFlash;
|
||||
_ctrl_Array=_ctrl_Array + [_ctrlBleed];
|
||||
}else {
|
||||
_ctrlBleed ctrlShow false;
|
||||
};
|
||||
|
||||
if((count _ctrl_Array) > 0) then
|
||||
{
|
||||
_ctrl_Array call player_guiControlFlash;
|
||||
};
|
||||
|
||||
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
@@ -64,7 +64,6 @@ switch (_iClass) do
|
||||
case "cfglootweapon":
|
||||
{
|
||||
//Item is sigle, add 1 item from cfgloot
|
||||
_item = createVehicle ["WeaponHolder", _iPos, [], _radius, "CAN_COLLIDE"];
|
||||
|
||||
_itemTypes = [];
|
||||
if (DZE_MissionLootTable) then{
|
||||
@@ -122,4 +121,4 @@ if (!isNull(_item)) then{
|
||||
};
|
||||
};
|
||||
|
||||
_item
|
||||
_item
|
||||
|
||||
@@ -50,11 +50,8 @@ _agent setVariable ["newDest",_newDest];
|
||||
//Add some loot
|
||||
_rnd = random 1;
|
||||
if (_rnd > 0.3) then {
|
||||
if (DZE_MissionLootTable) then {
|
||||
_lootType = getText (missionConfigFile >> "CfgVehicles" >> _type >> "zombieLoot");
|
||||
} else {
|
||||
_lootType = getText (configFile >> "CfgVehicles" >> _type >> "zombieLoot");
|
||||
};
|
||||
|
||||
_lootType = getText (configFile >> "CfgVehicles" >> _type >> "zombieLoot");
|
||||
|
||||
if (DZE_MissionLootTable) then {
|
||||
_lootTypeCfg = getArray (missionConfigFile >> "CfgLoot" >> _lootType);
|
||||
|
||||
@@ -89,9 +89,15 @@ if ((dayz_spawnZombies < _maxControlledZombies) && (dayz_CurrentNearByZombies <
|
||||
_lootType = configFile >> "CfgVehicles" >> _type >> "zombieLoot";
|
||||
if (isText _lootType) then {
|
||||
_array = [];
|
||||
{
|
||||
_array set [count _array, _x select 0]
|
||||
} count getArray (configFile >> "cfgLoot" >> getText(_lootType));
|
||||
if (DZE_MissionLootTable) then {
|
||||
{
|
||||
_array set [count _array, _x select 0]
|
||||
} forEach getArray (missionConfigFile >> "cfgLoot" >> getText(_lootType));
|
||||
} else {
|
||||
{
|
||||
_array set [count _array, _x select 0]
|
||||
} forEach getArray (configFile >> "cfgLoot" >> getText(_lootType));
|
||||
};
|
||||
if (count _array > 0) then {
|
||||
_index = dayz_CLBase find getText(_lootType);
|
||||
_weights = dayz_CLChances select _index;
|
||||
@@ -154,4 +160,4 @@ if ((dayz_spawnZombies < _maxControlledZombies) && (dayz_CurrentNearByZombies <
|
||||
//Start behavior
|
||||
_id = [_position,_agent] execFSM "\z\AddOns\dayz_code\system\zombie_agent.fsm";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -97,5 +97,6 @@ class CfgAddons
|
||||
#include "Configs\CfgAmmo.hpp"
|
||||
#include "Configs\CfgLoot\CfgBuildingLoot.hpp"
|
||||
#include "Configs\CfgArma.hpp"
|
||||
#include "Configs\CfgExtra\snappoints.hpp"
|
||||
|
||||
#include "external\R3F_Realism\R3F_Weight\R3F_CfgWeight.h"
|
||||
@@ -35,14 +35,14 @@ if (!isDedicated) then {
|
||||
[["Hedgehog_DZ"], 1,"STR_EPOCH_ACTIONS_14"] call player_removeNearby;
|
||||
};
|
||||
player_removeNet = {
|
||||
[["DesertLargeCamoNet","ForestCamoNet_DZ","DesertLargeCamoNet_DZ","ForestLargeCamoNet_DZ"], 5,"str_epoch_player_8"] call player_removeNearby;
|
||||
[["DesertCamoNet_DZ","ForestCamoNet_DZ","DesertLargeCamoNet_DZ","ForestLargeCamoNet_DZ"], 5,"str_epoch_player_8"] call player_removeNearby;
|
||||
};
|
||||
|
||||
player_login = {
|
||||
private ["_unit","_detail","_PUID"];
|
||||
_unit = _this select 0;
|
||||
_detail = _this select 1;
|
||||
_PUID = if (DayZ_UseSteamID) then {GetPlayerUID player;} else {GetPlayerUIDOld player;};
|
||||
_PUID = [player] call FNC_GetPlayerUID;
|
||||
if(_unit == _PUID) then {
|
||||
player setVariable["publish",_detail];
|
||||
};
|
||||
@@ -99,14 +99,30 @@ if (!isDedicated) then {
|
||||
player_makeFire = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\player_makefire.sqf";
|
||||
player_harvestPlant = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\player_harvestPlant.sqf";
|
||||
player_goFishing = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\player_goFishing.sqf";
|
||||
player_build = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\player_build.sqf";
|
||||
|
||||
if (DZE_modularBuild) then {
|
||||
player_build = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\modular_build.sqf";
|
||||
player_build_countNearby = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\player_build_countNearby.sqf";
|
||||
player_build_states = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\player_build_states.sqf";
|
||||
player_build_needNearby = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\player_build_needNearby.sqf";
|
||||
player_build_getConfig = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\player_build_getConfig.sqf";
|
||||
player_build_plotCheck = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\player_build_plotCheck.sqf";
|
||||
player_build_buildReq = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\player_build_buildReq.sqf";
|
||||
player_build_create = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\player_build_create.sqf";
|
||||
player_build_controls = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\player_build_controls.sqf";
|
||||
player_build_publish = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\player_build_publish.sqf";
|
||||
snap_build = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\snap_build.sqf";
|
||||
} else {
|
||||
player_build = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\player_build.sqf";
|
||||
};
|
||||
|
||||
player_wearClothes = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\player_wearClothes.sqf";
|
||||
object_pickup = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\object_pickup.sqf";
|
||||
player_flipvehicle = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\player_flipvehicle.sqf";
|
||||
player_sleep = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\player_sleep.sqf";
|
||||
player_antiWall = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_antiWall.sqf";
|
||||
player_deathBoard = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\list_playerDeathsAlt.sqf";
|
||||
|
||||
|
||||
player_plotPreview = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\object_showPlotRadius.sqf";
|
||||
player_upgradeVehicle = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_upgradeVehicle.sqf";
|
||||
|
||||
@@ -279,15 +295,15 @@ if (!isDedicated) then {
|
||||
};
|
||||
};
|
||||
|
||||
player_guiControlFlash = {
|
||||
private["_control"];
|
||||
_control = _this;
|
||||
if (ctrlShown _control) then {
|
||||
_control ctrlShow false;
|
||||
} else {
|
||||
_control ctrlShow true;
|
||||
};
|
||||
};
|
||||
player_guiControlFlash = {
|
||||
private["_control"];
|
||||
_control = _this;
|
||||
if (ctrlShown (_control select 0)) then {
|
||||
{_x ctrlShow false} foreach _control;
|
||||
} else {
|
||||
{_x ctrlShow true} foreach _control;
|
||||
};
|
||||
};
|
||||
|
||||
gearDialog_create = {
|
||||
private ["_i","_dialog"];
|
||||
@@ -434,7 +450,10 @@ if (!isDedicated) then {
|
||||
|
||||
// 120 sec timeout (12000 * 0.01)
|
||||
while { _timeOut < 12000 } do {
|
||||
if (dayz_clientPreload && dayz_authed) exitWith { diag_log "PLOGIN: Login loop completed!"; };
|
||||
if (dayz_clientPreload && dayz_authed) exitWith {
|
||||
diag_log "PLOGIN: Login loop completed!";
|
||||
endLoadingScreen;
|
||||
};
|
||||
if (!isNil "_display") then {
|
||||
if ( isNull _display ) then {
|
||||
waitUntil { !dialog; };
|
||||
@@ -528,6 +547,22 @@ if (!isDedicated) then {
|
||||
spawn_loot = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\spawn_loot.sqf";
|
||||
spawn_loot_small = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\spawn_loot_small.sqf";
|
||||
// player_projectileNear = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_projectileNear.sqf";
|
||||
FNC_GetPlayerUID = {
|
||||
private ["_object","_version","_PID"];
|
||||
_object = _this select 0;
|
||||
_version = productVersion select 3;
|
||||
if (DayZ_UseSteamID) then {
|
||||
_PID = GetPlayerUID _object;
|
||||
} else {
|
||||
if (_version >= 125548) then {
|
||||
_PID = call (compile "GetPlayerUIDOld _object");
|
||||
} else {
|
||||
_PID = GetPlayerUID _object;
|
||||
diag_log format["Your game version, %1, is less than the required for the old UID system; using Steam ID system instead. Update to 1.63.125548 (or latest steam beta)", _version];
|
||||
};
|
||||
};
|
||||
_PID;
|
||||
};
|
||||
FNC_GetSetPos = { //DO NOT USE IF YOU NEED ANGLE COMPENSATION!!!!
|
||||
private "_pos";
|
||||
_thingy = _this select 0;
|
||||
@@ -614,4 +649,4 @@ if (!isDedicated) then {
|
||||
eh_localCleanup = {};
|
||||
};
|
||||
|
||||
initialized = true;
|
||||
initialized = true;
|
||||
|
||||
@@ -190,6 +190,9 @@ dayz_locationsActive = [];
|
||||
Dayz_GUI_R = 0.38; // 0.7
|
||||
Dayz_GUI_G = 0.63; // -0.63
|
||||
Dayz_GUI_B = 0.26; // -0.26
|
||||
if (isNil "Dayz_Dark_UI") then {
|
||||
Dayz_Dark_UI = false;
|
||||
};
|
||||
|
||||
//Player self-action handles
|
||||
dayz_resetSelfActions = {
|
||||
@@ -206,6 +209,7 @@ dayz_resetSelfActions = {
|
||||
s_player_fillwater2 = -1;
|
||||
s_player_fillfuel = -1;
|
||||
s_player_grabflare = -1;
|
||||
s_player_dropflare = -1;
|
||||
s_player_callzombies = -1;
|
||||
s_player_showname = -1;
|
||||
s_player_debuglootpos = -1;
|
||||
@@ -253,6 +257,10 @@ dayz_resetSelfActions = {
|
||||
s_player_heli_lift = -1;
|
||||
s_player_heli_detach = -1;
|
||||
s_player_lockUnlock_crtl = -1;
|
||||
s_player_toggleSnap = -1;
|
||||
s_player_toggleSnapSelect = -1;
|
||||
s_player_toggleSnapSelectPoint=[];
|
||||
snapActions = -1;
|
||||
};
|
||||
call dayz_resetSelfActions;
|
||||
|
||||
@@ -266,6 +274,10 @@ s_player_madsci = [];
|
||||
s_player_parts = [];
|
||||
s_player_combi = [];
|
||||
|
||||
//Modular player_build
|
||||
snapGizmos = [];
|
||||
snapGizmosNearby = [];
|
||||
|
||||
//Initialize Medical Variables
|
||||
r_interrupt = false;
|
||||
r_doLoop = false;
|
||||
@@ -530,6 +542,18 @@ if(isNil "DZE_StaticConstructionCount") then {
|
||||
if (isNil "DZE_selfTransfuse_Values") then {
|
||||
DZE_selfTransfuse_Values = [12000, 15, 300];
|
||||
};
|
||||
if (isNil "helperDetach") then {
|
||||
helperDetach = false;
|
||||
};
|
||||
if (isNil "DZE_modularBuild") then {
|
||||
DZE_modularBuild = false;
|
||||
};
|
||||
if (isNil "DZE_snapExtraRange") then {
|
||||
DZE_snapExtraRange = 0;
|
||||
};
|
||||
if (isNil "DZE_checkNearbyRadius") then {
|
||||
DZE_checkNearbyRadius = 30;
|
||||
};
|
||||
|
||||
// needed on server
|
||||
if(isNil "DZE_PlotPole") then {
|
||||
@@ -778,6 +802,8 @@ if(!isDedicated) then {
|
||||
DZE_5 = false;
|
||||
DZE_4 = false;
|
||||
DZE_6 = false;
|
||||
|
||||
DZE_F = false;
|
||||
|
||||
DZE_cancelBuilding = false;
|
||||
DZE_PZATTACK = false;
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
// promptRName.sqf
|
||||
|
||||
private ["_unit"];
|
||||
_unit = _this select 0;
|
||||
|
||||
call compile format ["server globalChat reviver_%1", _unit];
|
||||
@@ -260,7 +260,9 @@ fnc_usec_recoverUncons = {
|
||||
sleep 1;
|
||||
|
||||
disableUserInput false;
|
||||
[objNull,player,rSwitchMove,"AinjPpneMstpSnonWnonDnon"] call RE;
|
||||
player switchMove "AinjPpneMstpSnonWnonDnon";
|
||||
player playMoveNow "AmovPpneMstpSnonWnonDnon_healed";
|
||||
if (vehicle player == player) then {
|
||||
[objNull,player,rSwitchMove,"AinjPpneMstpSnonWnonDnon"] call RE;
|
||||
player switchMove "AinjPpneMstpSnonWnonDnon";
|
||||
player playMoveNow "AmovPpneMstpSnonWnonDnon_healed";
|
||||
};
|
||||
};
|
||||
@@ -9,7 +9,7 @@ waitUntil {vehicle player == player};
|
||||
[] spawn {
|
||||
private ["_playerName","_playerUID"];
|
||||
_playerName = name player;
|
||||
_playerUID = if (DayZ_UseSteamID) then {GetPlayerUID player;} else {GetPlayerUIDOld player;};
|
||||
_playerUID = [player] call FNC_GetPlayerUID;
|
||||
while {1 == 1} do {
|
||||
if (typeName player != "OBJECT") then {
|
||||
PVDZE_atp = format["WARNING typename error for player UID#%1", _playerUID];
|
||||
@@ -24,7 +24,7 @@ waitUntil {vehicle player == player};
|
||||
|
||||
[] spawn {
|
||||
_playerName = name player;
|
||||
_playerUID = if (DayZ_UseSteamID) then {GetPlayerUID player;} else {GetPlayerUIDOld player;};
|
||||
_playerUID = [player] call FNC_GetPlayerUID;
|
||||
while {true} do {
|
||||
sleep 5;
|
||||
};
|
||||
@@ -75,7 +75,7 @@ while {1 == 1} do {
|
||||
_distance = _lastpos distance _curpos;
|
||||
_curtime = diag_ticktime;
|
||||
_difftime = _curtime - _lasttime;
|
||||
_acceptableDistance = if (_lastVehicle isKindOf "Plane") then { 15; } else { 10; };
|
||||
_acceptableDistance = if (_lastVehicle isKindOf "Plane") then [{15},{10}];
|
||||
|
||||
if ((_distance > _acceptableDistance) || {(_difftime > 1)}) then {
|
||||
_curheight = (ATLtoASL _curpos) select 2;
|
||||
@@ -93,7 +93,7 @@ while {1 == 1} do {
|
||||
if (_lastVehicle == vehicle player) then {
|
||||
if ((_speed > _topSpeed) && (alive player) && ((driver (vehicle player) == player) || (isNull (driver (vehicle player)))) && (_debug distance _lastpos > 3000) && !((vehicle player == player) && (_curheight < _lastheight) && ((_curheight - _terrainHeight) > 1))) then {
|
||||
(vehicle player) setposATL _lastpos;
|
||||
_PUID = if (DayZ_UseSteamID) then {GetPlayerUID player;} else {GetPlayerUIDOld player;};
|
||||
_PUID = [player] call FNC_GetPlayerUID;
|
||||
PVDZE_atp = format["TELEPORT REVERT for player UID#%1 from %2 to %3, %4 meters, now at %5", _PUID, _lastpos, _curPos, round(_lastpos distance _curpos), getPosATL player];
|
||||
publicVariableServer "PVDZE_atp";
|
||||
} else {
|
||||
|
||||
@@ -408,7 +408,7 @@ class FSM
|
||||
"" \n
|
||||
"progressLoadingScreen 0.3;" \n
|
||||
"" \n
|
||||
"_playerUID = if (DayZ_UseSteamID) then {GetPlayerUID player;} else {GetPlayerUIDOld player;};"/*%FSM</STATEINIT""">*/;
|
||||
"_playerUID = [player] call FNC_GetPlayerUID;"/*%FSM</STATEINIT""">*/;
|
||||
precondition = /*%FSM<STATEPRECONDITION""">*/""/*%FSM</STATEPRECONDITION""">*/;
|
||||
class Links
|
||||
{
|
||||
|
||||
@@ -29,4 +29,9 @@ class Category_512 {
|
||||
buy[] = {4,"ItemBriefcase100oz"};
|
||||
sell[] = {1,"ItemBriefcase100oz"};
|
||||
};
|
||||
class CH53_DZE {
|
||||
type = "trade_any_vehicle";
|
||||
buy[] = {3,"ItemBriefcase100oz"};
|
||||
sell[] = {2,"ItemBriefcase100oz"};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
class Category_495 {
|
||||
class hilux1_civil_3_open_EP1 {
|
||||
class hilux1_civil_3_open_DZE {
|
||||
type = "trade_any_vehicle";
|
||||
buy[] = {8,"ItemGoldBar"};
|
||||
sell[] = {4,"ItemGoldBar"};
|
||||
};
|
||||
class datsun1_civil_3_open {
|
||||
class datsun1_civil_3_open_DZE {
|
||||
type = "trade_any_vehicle";
|
||||
buy[] = {8,"ItemGoldBar"};
|
||||
sell[] = {4,"ItemGoldBar"};
|
||||
};
|
||||
class hilux1_civil_1_open {
|
||||
class hilux1_civil_1_open_DZE {
|
||||
type = "trade_any_vehicle";
|
||||
buy[] = {8,"ItemGoldBar"};
|
||||
sell[] = {4,"ItemGoldBar"};
|
||||
};
|
||||
class datsun1_civil_2_covered {
|
||||
class datsun1_civil_2_covered_DZE {
|
||||
type = "trade_any_vehicle";
|
||||
buy[] = {8,"ItemGoldBar"};
|
||||
sell[] = {4,"ItemGoldBar"};
|
||||
};
|
||||
class datsun1_civil_1_open {
|
||||
class datsun1_civil_1_open_DZE {
|
||||
type = "trade_any_vehicle";
|
||||
buy[] = {8,"ItemGoldBar"};
|
||||
sell[] = {4,"ItemGoldBar"};
|
||||
};
|
||||
class hilux1_civil_2_covered {
|
||||
class hilux1_civil_2_covered_DZE {
|
||||
type = "trade_any_vehicle";
|
||||
buy[] = {8,"ItemGoldBar"};
|
||||
sell[] = {4,"ItemGoldBar"};
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
class Category_535 {
|
||||
class hilux1_civil_3_open_EP1 {
|
||||
class hilux1_civil_3_open_DZE {
|
||||
type = "trade_any_vehicle";
|
||||
buy[] = {8,"ItemGoldBar"};
|
||||
sell[] = {4,"ItemGoldBar"};
|
||||
};
|
||||
class datsun1_civil_3_open {
|
||||
class datsun1_civil_3_open_DZE {
|
||||
type = "trade_any_vehicle";
|
||||
buy[] = {8,"ItemGoldBar"};
|
||||
sell[] = {4,"ItemGoldBar"};
|
||||
};
|
||||
class hilux1_civil_1_open {
|
||||
class hilux1_civil_1_open_DZE {
|
||||
type = "trade_any_vehicle";
|
||||
buy[] = {8,"ItemGoldBar"};
|
||||
sell[] = {4,"ItemGoldBar"};
|
||||
};
|
||||
class datsun1_civil_2_covered {
|
||||
class datsun1_civil_2_covered_DZE {
|
||||
type = "trade_any_vehicle";
|
||||
buy[] = {8,"ItemGoldBar"};
|
||||
sell[] = {4,"ItemGoldBar"};
|
||||
};
|
||||
class datsun1_civil_1_open {
|
||||
class datsun1_civil_1_open_DZE {
|
||||
type = "trade_any_vehicle";
|
||||
buy[] = {8,"ItemGoldBar"};
|
||||
sell[] = {4,"ItemGoldBar"};
|
||||
};
|
||||
class hilux1_civil_2_covered {
|
||||
class hilux1_civil_2_covered_DZE {
|
||||
type = "trade_any_vehicle";
|
||||
buy[] = {8,"ItemGoldBar"};
|
||||
sell[] = {4,"ItemGoldBar"};
|
||||
|
||||
@@ -29,4 +29,9 @@ class Category_493 {
|
||||
buy[] = {2,"ItemBriefcase100oz"};
|
||||
sell[] = {1,"ItemBriefcase100oz"};
|
||||
};
|
||||
class CH53_DZE {
|
||||
type = "trade_any_vehicle";
|
||||
buy[] = {2,"ItemBriefcase100oz"};
|
||||
sell[] = {1,"ItemBriefcase100oz"};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -1,62 +1,62 @@
|
||||
class Category_659 {
|
||||
class hilux1_civil_3_open_EP1 {
|
||||
class hilux1_civil_3_open_DZE {
|
||||
type = "trade_any_vehicle";
|
||||
buy[] = {8,"ItemGoldBar"};
|
||||
sell[] = {4,"ItemGoldBar"};
|
||||
};
|
||||
class datsun1_civil_3_open {
|
||||
class datsun1_civil_3_open_DZE {
|
||||
type = "trade_any_vehicle";
|
||||
buy[] = {8,"ItemGoldBar"};
|
||||
sell[] = {4,"ItemGoldBar"};
|
||||
};
|
||||
class hilux1_civil_1_open {
|
||||
class hilux1_civil_1_open_DZE {
|
||||
type = "trade_any_vehicle";
|
||||
buy[] = {8,"ItemGoldBar"};
|
||||
sell[] = {4,"ItemGoldBar"};
|
||||
};
|
||||
class datsun1_civil_2_covered {
|
||||
class datsun1_civil_2_covered_DZE {
|
||||
type = "trade_any_vehicle";
|
||||
buy[] = {8,"ItemGoldBar"};
|
||||
sell[] = {4,"ItemGoldBar"};
|
||||
};
|
||||
class datsun1_civil_1_open {
|
||||
class datsun1_civil_1_open_DZE {
|
||||
type = "trade_any_vehicle";
|
||||
buy[] = {8,"ItemGoldBar"};
|
||||
sell[] = {4,"ItemGoldBar"};
|
||||
};
|
||||
class hilux1_civil_2_covered {
|
||||
class hilux1_civil_2_covered_DZE {
|
||||
type = "trade_any_vehicle";
|
||||
buy[] = {8,"ItemGoldBar"};
|
||||
sell[] = {4,"ItemGoldBar"};
|
||||
};
|
||||
};
|
||||
class Category_590 {
|
||||
class hilux1_civil_3_open_EP1 {
|
||||
class hilux1_civil_3_open_DZE {
|
||||
type = "trade_any_vehicle";
|
||||
buy[] = {8,"ItemGoldBar"};
|
||||
sell[] = {4,"ItemGoldBar"};
|
||||
};
|
||||
class datsun1_civil_3_open {
|
||||
class datsun1_civil_3_open_DZE {
|
||||
type = "trade_any_vehicle";
|
||||
buy[] = {8,"ItemGoldBar"};
|
||||
sell[] = {4,"ItemGoldBar"};
|
||||
};
|
||||
class hilux1_civil_1_open {
|
||||
class hilux1_civil_1_open_DZE {
|
||||
type = "trade_any_vehicle";
|
||||
buy[] = {8,"ItemGoldBar"};
|
||||
sell[] = {4,"ItemGoldBar"};
|
||||
};
|
||||
class datsun1_civil_2_covered {
|
||||
class datsun1_civil_2_covered_DZE {
|
||||
type = "trade_any_vehicle";
|
||||
buy[] = {8,"ItemGoldBar"};
|
||||
sell[] = {4,"ItemGoldBar"};
|
||||
};
|
||||
class datsun1_civil_1_open {
|
||||
class datsun1_civil_1_open_DZE {
|
||||
type = "trade_any_vehicle";
|
||||
buy[] = {8,"ItemGoldBar"};
|
||||
sell[] = {4,"ItemGoldBar"};
|
||||
};
|
||||
class hilux1_civil_2_covered {
|
||||
class hilux1_civil_2_covered_DZE {
|
||||
type = "trade_any_vehicle";
|
||||
buy[] = {8,"ItemGoldBar"};
|
||||
sell[] = {4,"ItemGoldBar"};
|
||||
|
||||
@@ -3147,14 +3147,14 @@
|
||||
<Czech>Nelze stavět v boji.</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_PLAYER_44">
|
||||
<Original>Cannot build plot pole within 45m of an existing plot.</Original>
|
||||
<English>Cannot build plot pole within 45m of an existing plot.</English>
|
||||
<German>Grundstück-Markierung kann nicht innerhalb 45m von einem bestehenden Grundstück erbaut werden.</German>
|
||||
<Russian>Нельзя построить столб в пределах 45м. от существующего столба.</Russian>
|
||||
<Original>Cannot build plot pole within %1m of an existing plot.</Original>
|
||||
<English>Cannot build plot pole within %1m of an existing plot.</English>
|
||||
<German>Grundstück-Markierung kann nicht innerhalb %1m von einem bestehenden Grundstück erbaut werden.</German>
|
||||
<Russian>Нельзя построить столб в пределах %1м. от существующего столба.</Russian>
|
||||
<!-- <Spanish></Spanish> -->
|
||||
<Dutch>Kan bouw-paal niet bouwen op minder als 45m afstand van een bestaand bouwterrein.</Dutch>
|
||||
<French>Impossible de construire un panneau de propriété privée à moins de 45m d'un autre panneau du genre.</French>
|
||||
<Czech>Nelze postavit hraniční značku ve vzdálenosti 45 metrů od jiné značky.</Czech>
|
||||
<Dutch>Kan bouw-paal niet bouwen op minder als %1m afstand van een bestaand bouwterrein.</Dutch>
|
||||
<French>Impossible de construire un panneau de propriété privée à moins de %1m d'un autre panneau du genre.</French>
|
||||
<Czech>Nelze postavit hraniční značku ve vzdálenosti %1 metrů od jiné značky.</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_PLAYER_45">
|
||||
<Original>PgUp to raise or PgDn to lower (Hold ALT to raise faster or CTRL slower), Q or E to flip 180. Space-Bar to build.</Original>
|
||||
@@ -4804,7 +4804,7 @@
|
||||
<!-- <Spanish></Spanish> -->
|
||||
<!-- <Dutch>Voeg 1 10oz Goud toe</Dutch> -->
|
||||
<!-- <French></French> -->
|
||||
<!-- <Czech>Přidáno 1 10oz zlata</Czech> -->
|
||||
<Czech>Přidat 1 10oz stříbra</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_PLAYER_S_198">
|
||||
<Original>Add 10 10oz Silver</Original>
|
||||
@@ -4814,7 +4814,7 @@
|
||||
<!-- <Spanish></Spanish> -->
|
||||
<!-- <Dutch>Voeg 10 10oz Goud toe</Dutch> -->
|
||||
<!-- <French></French> -->
|
||||
<!-- <Czech>Přidáno 10 10oz zlata</Czech> -->
|
||||
<Czech>Přidat 10 10oz stříbra</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_PLAYER_S_199">
|
||||
<Original>Add 9 10oz Silver</Original>
|
||||
@@ -4824,7 +4824,7 @@
|
||||
<!-- <Spanish></Spanish> -->
|
||||
<!-- <Dutch>Voeg 9 10oz Goud toe</Dutch> -->
|
||||
<!-- <French></French> -->
|
||||
<!-- <Czech>Přidáno 9 10oz zlata</Czech> -->
|
||||
<Czech>Přidat 9 10oz stříbra</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_PLAYER_S_200">
|
||||
<Original>Remove 1 10oz Silver</Original>
|
||||
@@ -4834,7 +4834,7 @@
|
||||
<!-- <Spanish></Spanish> -->
|
||||
<!-- <Dutch>Verwijder 1 10oz Goud</Dutch> -->
|
||||
<!-- <French></French> -->
|
||||
<!-- <Czech>Odebráno 1 10oz zlato</Czech> -->
|
||||
<Czech>Odebráno 1 10oz stříbra</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_PLAYER_S_202">
|
||||
<Original>Add 8 10oz Silver</Original>
|
||||
@@ -4844,7 +4844,7 @@
|
||||
<!-- <Spanish></Spanish> -->
|
||||
<!-- <Dutch>Voeg 8 10oz Goud toe</Dutch> -->
|
||||
<!-- <French></French> -->
|
||||
<!-- <Czech>Přidáno 8 10oz zlata</Czech> -->
|
||||
<Czech>Přidat 8 10oz stříbra</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_PLAYER_S_203">
|
||||
<Original>Add 7 10oz Silver</Original>
|
||||
@@ -4854,7 +4854,7 @@
|
||||
<!-- <Spanish></Spanish> -->
|
||||
<!-- <Dutch>Voeg 7 10oz Goud toe</Dutch> -->
|
||||
<!-- <French></French> -->
|
||||
<!-- <Czech>Přidáno 7 10oz zlata</Czech> -->
|
||||
<Czech>Přidat 7 10oz stříbra</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_PLAYER_S_204">
|
||||
<Original>Add 6 10oz Silver</Original>
|
||||
@@ -4864,7 +4864,7 @@
|
||||
<!-- <Spanish></Spanish> -->
|
||||
<!-- <Dutch>Voeg 6 10oz Goud toe</Dutch> -->
|
||||
<!-- <French></French> -->
|
||||
<!-- <Czech>Přidáno 6 10oz zlata</Czech> -->
|
||||
<Czech>Přidat 6 10oz stříbra</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_PLAYER_S_205">
|
||||
<Original>Add 5 10oz Silver</Original>
|
||||
@@ -4874,7 +4874,7 @@
|
||||
<!-- <Spanish></Spanish> -->
|
||||
<!-- <Dutch>Voeg 5 10oz Goud toe</Dutch> -->
|
||||
<!-- <French></French> -->
|
||||
<!-- <Czech>Přidáno 5 10oz zlata</Czech> -->
|
||||
<Czech>Přidat 5 10oz stříbra</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_PLAYER_S_206">
|
||||
<Original>Add 4 10oz Silver</Original>
|
||||
@@ -4884,7 +4884,7 @@
|
||||
<!-- <Spanish></Spanish> -->
|
||||
<!-- <Dutch>Voeg 4 10oz Goud toe</Dutch> -->
|
||||
<!-- <French></French> -->
|
||||
<!-- <Czech>Přidat 4 10oz zlata</Czech> -->
|
||||
<Czech>Přidat 4 10oz stříbra</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_PLAYER_S_207">
|
||||
<Original>Add 3 10oz Silver</Original>
|
||||
@@ -4894,7 +4894,7 @@
|
||||
<!-- <Spanish></Spanish> -->
|
||||
<!-- <Dutch>Voeg 3 10oz Goud toe</Dutch> -->
|
||||
<!-- <French></French> -->
|
||||
<!-- <Czech>Prodat 3 10oz zlata</Czech> -->
|
||||
<Czech>Přidat 3 10oz stříbra</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_PLAYER_S_208">
|
||||
<Original>Add 2 10oz Silver</Original>
|
||||
@@ -4904,7 +4904,7 @@
|
||||
<!-- <Spanish></Spanish> -->
|
||||
<!-- <Dutch>Voeg 2 10oz Goud toe</Dutch> -->
|
||||
<!-- <French></French> -->
|
||||
<!-- <Czech>Přidat 2 10oz zlata</Czech> -->
|
||||
<Czech>Přidat 2 10oz stříbra</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_PLAYER_209">
|
||||
<Original>Open %1</Original>
|
||||
@@ -5244,7 +5244,7 @@
|
||||
<!-- <Spanish></Spanish> -->
|
||||
<Dutch>Creëer houten vloer 1/2</Dutch>
|
||||
<!-- <French></French> -->
|
||||
<Czech>Vytvořit Poloviční dřevěnou podlahu</Czech>
|
||||
<Czech>Vytvořit 1/2 dřevěné podlahy</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_PLAYER_233">
|
||||
<Original>Craft Stair Supports</Original>
|
||||
@@ -5444,7 +5444,7 @@
|
||||
<!-- <Spanish></Spanish> -->
|
||||
<!-- <Dutch></Dutch> -->
|
||||
<!-- <French></French> -->
|
||||
<Czech>Vytvořit Poloviční zeď</Czech>
|
||||
<Czech>Vytvořit 1/2 zdi</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_PLAYER_253">
|
||||
<Original>Craft Garage Doorway</Original>
|
||||
@@ -5994,7 +5994,7 @@
|
||||
<!-- <Spanish></Spanish> -->
|
||||
<!-- <Dutch></Dutch> -->
|
||||
<!-- <French></French> -->
|
||||
<!-- <Czech></Czech> -->
|
||||
<Czech>Skombinovat cihly</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_PLAYER_307">
|
||||
<Original>Combined all bars in your inventory to highest denomination.</Original>
|
||||
@@ -6004,7 +6004,7 @@
|
||||
<!-- <Spanish></Spanish> -->
|
||||
<!-- <Dutch></Dutch> -->
|
||||
<!-- <French></French> -->
|
||||
<!-- <Czech></Czech> -->
|
||||
<Czech>Skombinovány cihly ve vašem inventáři na maximum.</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_PLAYER_308">
|
||||
<Original>To driver's seat</Original>
|
||||
@@ -6056,6 +6056,16 @@
|
||||
<!-- <Dutch></Dutch> -->
|
||||
<!-- <German></German> -->
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_PLAYER_312">
|
||||
<Original>\n\nCannot fish while in combat.</Original>
|
||||
<English>\n\nCannot fish while in combat.</English>
|
||||
<German>\n\nSie können nicht im Kampf zu fischen.</German>
|
||||
<Russian>\n\nВы не можете ловить рыбу в то время как в бою.</Russian>
|
||||
<!-- <Spanish></Spanish> -->
|
||||
<Dutch>\n\nVissen is niet mogelijk tijdens een conflictsituatie.</Dutch>
|
||||
<French>\n\nVous ne pouvez pas pêcher pendant les combats.</French>
|
||||
<Czech>\n\nNemůžete rybařit, když jste v boji.</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_PLAYER_REPAIRV">
|
||||
<Original>Repair Vehicle</Original>
|
||||
<English>Repair Vehicle</English>
|
||||
@@ -6214,7 +6224,7 @@
|
||||
<!-- <Spanish></Spanish> -->
|
||||
<!-- <Dutch></Dutch> -->
|
||||
<!-- <French></French> -->
|
||||
<!-- <Czech></Czech> -->
|
||||
<Czech>Vylepšení zbraně na vozidle</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_VEHUP_ARM_DESC">
|
||||
<Original>Weapon install guide.</Original>
|
||||
@@ -6224,7 +6234,7 @@
|
||||
<!-- <Spanish></Spanish> -->
|
||||
<!-- <Dutch></Dutch> -->
|
||||
<!-- <French></French> -->
|
||||
<!-- <Czech></Czech> -->
|
||||
<Czech>Návod na instalaci zbraně na vozidlo.</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_VEHUP_SUCCESS">
|
||||
<Original>Vehicle Upgrade Successful.</Original>
|
||||
@@ -6764,7 +6774,7 @@
|
||||
<!-- <Spanish></Spanish> -->
|
||||
<Dutch></Dutch>
|
||||
<French>Vous avez acheté %3 pour %1 %2, la clé a été ajoutée à votre ceinture.</French>
|
||||
<Czech>Koupeno %3 za 1% 2%, klíč byl přidán do opasku na nářadí.</Czech>
|
||||
<Czech>Koupeno %3 za %1 %2, klíč byl přidán do opasku na nářadí.</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_ACTIONS_12">
|
||||
<Original>Missing %1 more of %2</Original>
|
||||
@@ -6874,7 +6884,7 @@
|
||||
<!-- <Spanish></Spanish> -->
|
||||
<!-- <Dutch></Dutch> -->
|
||||
<!-- <French></French> -->
|
||||
<!-- <Czech></Czech> -->
|
||||
<Czech>Bedna zásob</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_BULK_DESC">
|
||||
<Original>12 x Random Item</Original>
|
||||
@@ -6884,7 +6894,7 @@
|
||||
<!-- <Spanish></Spanish> -->
|
||||
<!-- <Dutch></Dutch> -->
|
||||
<!-- <French></French> -->
|
||||
<!-- <Czech></Czech> -->
|
||||
<Czech>12x Náhodných předmětů</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_BULK_DESC_EMPTY">
|
||||
<Original>Empty Supply Crate</Original>
|
||||
@@ -6894,7 +6904,7 @@
|
||||
<!-- <Spanish></Spanish> -->
|
||||
<!-- <Dutch></Dutch> -->
|
||||
<!-- <French></French> -->
|
||||
<!-- <Czech></Czech> -->
|
||||
<Czech>Prázdná bedna</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_BULK_DESC_SODACOKE_HALF">
|
||||
<Original>6 x ItemSodaCoke</Original>
|
||||
@@ -6904,7 +6914,7 @@
|
||||
<!-- <Spanish></Spanish> -->
|
||||
<!-- <Dutch></Dutch> -->
|
||||
<!-- <French></French> -->
|
||||
<!-- <Czech></Czech> -->
|
||||
<Czech>6x Soda s kolovou příchutí</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_BULK_DESC_SODACOKE_FULL">
|
||||
<Original>12 x ItemSodaCoke</Original>
|
||||
@@ -6914,7 +6924,7 @@
|
||||
<!-- <Spanish></Spanish> -->
|
||||
<!-- <Dutch></Dutch> -->
|
||||
<!-- <French></French> -->
|
||||
<!-- <Czech></Czech> -->
|
||||
<Czech>12x Soda s kolovou příchutí</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_BULK_DESC_SODAPEPSI_HALF">
|
||||
<Original>6 x ItemSodaPepsi</Original>
|
||||
@@ -6924,7 +6934,7 @@
|
||||
<!-- <Spanish></Spanish> -->
|
||||
<!-- <Dutch></Dutch> -->
|
||||
<!-- <French></French> -->
|
||||
<!-- <Czech></Czech> -->
|
||||
<Czech>6x Pepsi</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_BULK_DESC_SODAPEPSI_FULL">
|
||||
<Original>12 x ItemSodaPepsi</Original>
|
||||
@@ -6934,7 +6944,7 @@
|
||||
<!-- <Spanish></Spanish> -->
|
||||
<!-- <Dutch></Dutch> -->
|
||||
<!-- <French></French> -->
|
||||
<!-- <Czech></Czech> -->
|
||||
<Czech>12x Pepsi</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_BULK_DESC_BACON_HALF">
|
||||
<Original>6 x FoodbaconCooked</Original>
|
||||
@@ -6944,7 +6954,7 @@
|
||||
<!-- <Spanish></Spanish> -->
|
||||
<!-- <Dutch></Dutch> -->
|
||||
<!-- <French></French> -->
|
||||
<!-- <Czech></Czech> -->
|
||||
<Czech>6x Vepřové</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_BULK_DESC_BACON_FULL">
|
||||
<Original>12 x FoodbaconCooked</Original>
|
||||
@@ -6954,7 +6964,7 @@
|
||||
<!-- <Spanish></Spanish> -->
|
||||
<!-- <Dutch></Dutch> -->
|
||||
<!-- <French></French> -->
|
||||
<!-- <Czech></Czech> -->
|
||||
<Czech>12x Vepřové</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_BULK_DESC_G17">
|
||||
<Original>12 x 17Rnd_9x19_glock17</Original>
|
||||
@@ -6964,7 +6974,7 @@
|
||||
<!-- <Spanish></Spanish> -->
|
||||
<!-- <Dutch></Dutch> -->
|
||||
<!-- <French></French> -->
|
||||
<!-- <Czech></Czech> -->
|
||||
<Czech>12x 17Rnd_9x19_glock17</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_BULK_DESC_M9SD">
|
||||
<Original>12 x 15Rnd_9x19_M9SD</Original>
|
||||
@@ -6974,7 +6984,7 @@
|
||||
<!-- <Spanish></Spanish> -->
|
||||
<!-- <Dutch></Dutch> -->
|
||||
<!-- <French></French> -->
|
||||
<!-- <Czech></Czech> -->
|
||||
<Czech>12x 15Rnd_9x19_M9SD</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_BULK_DESC_MP5SD">
|
||||
<Original>12 x 30Rnd_9x19_MP5SD</Original>
|
||||
@@ -6984,7 +6994,7 @@
|
||||
<!-- <Spanish></Spanish> -->
|
||||
<!-- <Dutch></Dutch> -->
|
||||
<!-- <French></French> -->
|
||||
<!-- <Czech></Czech> -->
|
||||
<Czech>12x 30Rnd_9x19_MP5SD</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_BULK_DESC_SANDBAG">
|
||||
<Original>12 x SandBag</Original>
|
||||
@@ -6994,7 +7004,7 @@
|
||||
<!-- <Spanish></Spanish> -->
|
||||
<!-- <Dutch></Dutch> -->
|
||||
<!-- <French></French> -->
|
||||
<!-- <Czech></Czech> -->
|
||||
<Czech>12 Pytlů s pískem</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_BULK_DESC_TANKTRAP_HALF">
|
||||
<Original>6 x Tank Trap</Original>
|
||||
@@ -7004,7 +7014,7 @@
|
||||
<!-- <Spanish></Spanish> -->
|
||||
<!-- <Dutch></Dutch> -->
|
||||
<!-- <French></French> -->
|
||||
<!-- <Czech></Czech> -->
|
||||
<Czech>6 Zátaras</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_BULK_DESC_TANKTRAP_FULL">
|
||||
<Original>12 x Tank Trap</Original>
|
||||
@@ -7014,7 +7024,7 @@
|
||||
<!-- <Spanish></Spanish> -->
|
||||
<!-- <Dutch></Dutch> -->
|
||||
<!-- <French></French> -->
|
||||
<!-- <Czech></Czech> -->
|
||||
<Czech>12 Zátaras</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_BULK_DESC_WIREKIT_HALF">
|
||||
<Original>6 x Wire Kit</Original>
|
||||
@@ -7024,7 +7034,7 @@
|
||||
<!-- <Spanish></Spanish> -->
|
||||
<!-- <Dutch></Dutch> -->
|
||||
<!-- <French></French> -->
|
||||
<!-- <Czech></Czech> -->
|
||||
<Czech>6 Drátů</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_BULK_DESC_WIREKIT_FULL">
|
||||
<Original>12 x Wire Kit</Original>
|
||||
@@ -7034,7 +7044,7 @@
|
||||
<!-- <Spanish></Spanish> -->
|
||||
<!-- <Dutch></Dutch> -->
|
||||
<!-- <French></French> -->
|
||||
<!-- <Czech></Czech> -->
|
||||
<Czech>12 Drátů</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_BULK_DESC_GENERIC_HALF">
|
||||
<Original>6 x Scrap Metal</Original>
|
||||
@@ -7044,7 +7054,7 @@
|
||||
<!-- <Spanish></Spanish> -->
|
||||
<!-- <Dutch></Dutch> -->
|
||||
<!-- <French></French> -->
|
||||
<!-- <Czech></Czech> -->
|
||||
<Czech>6x Železný šrot</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_BULK_DESC_GENERIC_FULL">
|
||||
<Original>12 x Scrap Metal</Original>
|
||||
@@ -7054,7 +7064,7 @@
|
||||
<!-- <Spanish></Spanish> -->
|
||||
<!-- <Dutch></Dutch> -->
|
||||
<!-- <French></French> -->
|
||||
<!-- <Czech></Czech> -->
|
||||
<Czech>12x Železný šrot</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_TRADER_ENTER">
|
||||
<Original>Now entering %1</Original>
|
||||
@@ -7064,7 +7074,7 @@
|
||||
<!-- <Spanish></Spanish> -->
|
||||
<!-- <Dutch></Dutch> -->
|
||||
<!-- <French></French> -->
|
||||
<!-- <Czech></Czech> -->
|
||||
<Czech>Vstoupili jste do %1</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_TRADER_LEAVE">
|
||||
<Original>Now leaving %1</Original>
|
||||
@@ -7074,7 +7084,7 @@
|
||||
<!-- <Spanish></Spanish> -->
|
||||
<!-- <Dutch></Dutch> -->
|
||||
<!-- <French></French> -->
|
||||
<!-- <Czech></Czech> -->
|
||||
<Czech>Opustili jste %1</Czech>
|
||||
</Key>
|
||||
<Key ID="R3F_VERSION_WEIGHTED">
|
||||
<Original>1.04</Original>
|
||||
|
||||
@@ -9,13 +9,17 @@ if ((owner _victim) == (owner _attacker)) exitWith {
|
||||
};
|
||||
|
||||
_weapon = weaponState _attacker;
|
||||
if (_weapon select 0 == "Throw") then
|
||||
{
|
||||
_weapon = _weapon select 3;
|
||||
}
|
||||
else
|
||||
{
|
||||
_weapon = _weapon select 0;
|
||||
if (!isNil "_weapon") then {
|
||||
if (count _weapon != 0) then {
|
||||
if (_weapon select 0 == "Throw") then
|
||||
{
|
||||
_weapon = _weapon select 3;
|
||||
}
|
||||
else
|
||||
{
|
||||
_weapon = _weapon select 0;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
_vehicle = typeOf (vehicle _attacker);
|
||||
|
||||
@@ -4,7 +4,7 @@ _playerName = _this select 1;
|
||||
_playerObj = nil;
|
||||
_playerPos = [];
|
||||
{
|
||||
_PUID = if (DayZ_UseSteamID) then {GetPlayerUID _x;} else {GetPlayerUIDOld _x;};
|
||||
_PUID = [_x] call FNC_GetPlayerUID;
|
||||
if (_PUID == _playerUID) exitWith {_playerObj = _x;};
|
||||
} count playableUnits;
|
||||
|
||||
@@ -18,7 +18,7 @@ if (isNil "_playerObj") then {
|
||||
if (isNil "_playerObj") exitWith {
|
||||
diag_log format["%1: nil player object, _this:%2", __FILE__, _this];
|
||||
};
|
||||
_PUID = if (DayZ_UseSteamID) then {GetPlayerUID _playerObj;} else {GetPlayerUIDOld _playerObj;};
|
||||
_PUID = [_playerObj] call FNC_GetPlayerUID;
|
||||
diag_log format["get: %1 (%2), sent: %3 (%4)",typeName _PUID, _PUID, typeName _playerUID, _playerUID];
|
||||
|
||||
if (!isNull _playerObj) then {
|
||||
|
||||
@@ -28,7 +28,7 @@ _isInfected = 0;
|
||||
_model = "";
|
||||
|
||||
if (_playerID == "") then {
|
||||
_playerID = if (DayZ_UseSteamID) then {GetPlayerUID _playerObj;} else {GetPlayerUIDOld _playerObj;};
|
||||
_playerID = [_playerObj] call FNC_GetPlayerUID;
|
||||
};
|
||||
|
||||
if ((_playerID == "") || (isNil "_playerID")) exitWith {
|
||||
|
||||
@@ -4,7 +4,7 @@ private ["_characterID","_playerObj","_playerID","_dummy","_worldspace","_state"
|
||||
|
||||
_characterID = _this select 0;
|
||||
_playerObj = _this select 1;
|
||||
_playerID = if (DayZ_UseSteamID) then {GetPlayerUID _playerObj;} else {GetPlayerUIDOld _playerObj;};
|
||||
_playerID = [_playerObj] call FNC_GetPlayerUID;
|
||||
|
||||
if (isNull _playerObj) exitWith {
|
||||
diag_log ("SETUP INIT FAILED: Exiting, player object null: " + str(_playerObj));
|
||||
@@ -15,7 +15,7 @@ if (isNull _playerObj) exitWith {
|
||||
_playerObj addMPEventHandler ["MPHit", {_this spawn fnc_plyrHit;}];
|
||||
|
||||
if (_playerID == "") then {
|
||||
_playerID = if (DayZ_UseSteamID) then {GetPlayerUID _playerObj;} else {GetPlayerUIDOld _playerObj;};
|
||||
_playerID = [_playerObj] call FNC_GetPlayerUID;
|
||||
};
|
||||
|
||||
if (_playerID == "") exitWith {
|
||||
@@ -23,7 +23,7 @@ if (_playerID == "") exitWith {
|
||||
};
|
||||
|
||||
private["_dummy"];
|
||||
_dummy = if (DayZ_UseSteamID) then {GetPlayerUID _playerObj;} else {GetPlayerUIDOld _playerObj;};
|
||||
_dummy = [_playerObj] call FNC_GetPlayerUID;
|
||||
if ( _playerID != _dummy ) then {
|
||||
diag_log format["DEBUG: _playerID miscompare with UID! _playerID:%1",_playerID];
|
||||
_playerID = _dummy;
|
||||
|
||||
@@ -203,10 +203,9 @@ if (_characterID != "0") then {
|
||||
};
|
||||
|
||||
// Force gear updates for nearby vehicles/tents
|
||||
_pos = _this select 0;
|
||||
{
|
||||
[_x, "gear"] call server_updateObject;
|
||||
} count nearestObjects [_pos, dayz_updateObjects, 10];
|
||||
} count (nearestObjects [_charPos, dayz_updateObjects, 10]);
|
||||
//[_charPos] call server_updateNearbyObjects;
|
||||
|
||||
//Reset timer
|
||||
|
||||
@@ -6,7 +6,7 @@ _worldspace = _this select 2;
|
||||
_class = _this select 3;
|
||||
_obj = _this select 4;
|
||||
_activatingplayer = _this select 5;
|
||||
_activatingplayerUID = if (DayZ_UseSteamID) then {GetPlayerUID _activatingplayer;} else {GetPlayerUIDOld _activatingplayer;};
|
||||
_activatingplayerUID = [_activatingplayer] call FNC_GetPlayerUID;
|
||||
_proceed = false;
|
||||
|
||||
_objectID = "0";
|
||||
|
||||
@@ -10,7 +10,7 @@ _qty = _this select 6;
|
||||
_clientID = owner _player;
|
||||
_price = format ["%2x %1",_currency,_qty];
|
||||
_name = if (alive _player) then { name _player; } else { "Dead Player"; };
|
||||
_PUID = if (DayZ_UseSteamID) then {GetPlayerUID _player;} else {GetPlayerUIDOld _player;};
|
||||
_PUID = [_player] call FNC_GetPlayerUID;
|
||||
|
||||
if (_buyorsell == 0) then { //Buy
|
||||
diag_log format["EPOCH SERVERTRADE: Player: %1 (%2) bought a %3 in/at %4 for %5", _name, _PUID, _classname, _traderCity, _price];
|
||||
|
||||
@@ -1,16 +1,18 @@
|
||||
/*
|
||||
[_object,_type] spawn server_updateObject;
|
||||
USAGE:
|
||||
[_object, _type] spawn server_updateObject;
|
||||
*/
|
||||
|
||||
private ["_object","_type","_objectID","_uid","_lastUpdate","_needUpdate","_object_position","_object_inventory","_object_damage","_isNotOk","_parachuteWest","_firstTime","_object_killed","_object_repair","_isbuildable"];
|
||||
|
||||
_object = _this select 0;
|
||||
_object = _this select 0;
|
||||
|
||||
if(isNull(_object)) exitWith {
|
||||
diag_log format["Skipping Null Object: %1", _object];
|
||||
if (isNull _object) exitWith {
|
||||
diag_log format ["Skipping Null Object: %1", _object];
|
||||
};
|
||||
|
||||
_type = _this select 1;
|
||||
_parachuteWest = ((typeOf _object == "ParachuteWest") || (typeOf _object == "ParachuteC"));
|
||||
_type = _this select 1;
|
||||
_parachuteWest = (typeOf _object) in ["ParachuteWest","ParachuteC"];
|
||||
_isbuildable = (typeOf _object) in dayz_allowedObjects;
|
||||
_isNotOk = false;
|
||||
_firstTime = false;
|
||||
@@ -18,173 +20,163 @@ _firstTime = false;
|
||||
_objectID = _object getVariable ["ObjectID","0"];
|
||||
_uid = _object getVariable ["ObjectUID","0"];
|
||||
|
||||
if ((typeName _objectID != "string") || (typeName _uid != "string")) then
|
||||
{
|
||||
diag_log(format["Non-string Object: ID %1 UID %2", _objectID, _uid]);
|
||||
//force fail
|
||||
if (typeName _objectID != "STRING" || typeName _uid != "STRING") then {
|
||||
diag_log format ["Non-string Object: ID %1 UID %2", _objectID, _uid];
|
||||
_objectID = "0";
|
||||
_uid = "0";
|
||||
};
|
||||
if (!_parachuteWest && !(locked _object)) then {
|
||||
if (_objectID == "0" && _uid == "0") then
|
||||
{
|
||||
|
||||
if (!_parachuteWest && !locked _object) then {
|
||||
if (_objectID == "0" && _uid == "0") then {
|
||||
_object_position = getPosATL _object;
|
||||
_isNotOk = true;
|
||||
_isNotOk = true;
|
||||
};
|
||||
};
|
||||
|
||||
// do not update if buildable && not ok
|
||||
if (_isNotOk && _isbuildable) exitWith { };
|
||||
if (_isNotOk && _isbuildable) exitWith {};
|
||||
if (_isNotOk) exitWith {
|
||||
deleteVehicle _object;
|
||||
diag_log format ["Deleting object %1 with invalid ID at pos [%2,%3,%4]", typeOf _object, _object_position select 0, _object_position select 1, _object_position select 2];
|
||||
};
|
||||
|
||||
// delete if still not ok
|
||||
if (_isNotOk) exitWith { deleteVehicle _object; diag_log(format["Deleting object %1 with invalid ID at pos [%2,%3,%4]",typeOf _object,_object_position select 0,_object_position select 1, _object_position select 2]); };
|
||||
|
||||
|
||||
_lastUpdate = _object getVariable ["lastUpdate",time];
|
||||
_lastUpdate = _object getVariable ["lastUpdate", time];
|
||||
_needUpdate = _object in needUpdate_objects;
|
||||
|
||||
// TODO ----------------------
|
||||
_object_position = {
|
||||
private["_position","_worldspace","_fuel","_key"];
|
||||
_position = getPosATL _object;
|
||||
_worldspace = [
|
||||
round(direction _object),
|
||||
_position
|
||||
];
|
||||
_fuel = 0;
|
||||
if (_object isKindOf "AllVehicles") then {
|
||||
_fuel = fuel _object;
|
||||
};
|
||||
_key = format["CHILD:305:%1:%2:%3:",_objectID,_worldspace,_fuel];
|
||||
//diag_log ("HIVE: WRITE: "+ str(_key));
|
||||
_key call server_hiveWrite;
|
||||
private ["_position","_worldspace","_fuel","_key"];
|
||||
_position = getPosATL _object;
|
||||
_worldspace = [
|
||||
round (getDir _object),
|
||||
_position
|
||||
];
|
||||
_fuel = if (_object isKindOf "AllVehicles") then { fuel _object } else { 0 };
|
||||
_key = format ["CHILD:305:%1:%2:%3:", _objectID, _worldspace, _fuel];
|
||||
_key call server_hiveWrite;
|
||||
};
|
||||
|
||||
_object_inventory = {
|
||||
private["_inventory","_previous","_key"];
|
||||
_inventory = [
|
||||
getWeaponCargo _object,
|
||||
getMagazineCargo _object,
|
||||
getBackpackCargo _object
|
||||
];
|
||||
_previous = str(_object getVariable["lastInventory",[]]);
|
||||
if (str(_inventory) != _previous) then {
|
||||
_object setVariable["lastInventory",_inventory];
|
||||
if (_objectID == "0") then {
|
||||
_key = format["CHILD:309:%1:%2:",_uid,_inventory];
|
||||
} else {
|
||||
_key = format["CHILD:303:%1:%2:",_objectID,_inventory];
|
||||
};
|
||||
//diag_log ("HIVE: WRITE: "+ str(_key));
|
||||
_key call server_hiveWrite;
|
||||
};
|
||||
_inventory = [
|
||||
getWeaponCargo _object,
|
||||
getMagazineCargo _object,
|
||||
getBackpackCargo _object
|
||||
];
|
||||
_previous = str (_object getVariable ["lastInventory", []]);
|
||||
if (str _inventory != _previous) then {
|
||||
_object setVariable ["lastInventory", _inventory];
|
||||
_key = if (_objectID == "0") then { format ["CHILD:309:%1:", _uid] + str _inventory + ":" } else { format ["CHILD:303:%1:", _objectID] + str _inventory + ":" };
|
||||
_key call server_hiveWrite;
|
||||
};
|
||||
};
|
||||
|
||||
_object_damage = {
|
||||
private["_hitpoints","_array","_hit","_selection","_key","_damage"];
|
||||
_hitpoints = _object call vehicle_getHitpoints;
|
||||
_damage = damage _object;
|
||||
_array = [];
|
||||
{
|
||||
_hit = [_object,_x] call object_getHit;
|
||||
_selection = getText (configFile >> "CfgVehicles" >> (typeOf _object) >> "HitPoints" >> _x >> "name");
|
||||
if (_hit > 0) then {_array set [count _array,[_selection,_hit]]};
|
||||
_object setHit ["_selection", _hit];
|
||||
} count _hitpoints;
|
||||
|
||||
_key = format["CHILD:306:%1:%2:%3:",_objectID,_array,_damage];
|
||||
//diag_log ("HIVE: WRITE: "+ str(_key));
|
||||
_key call server_hiveWrite;
|
||||
_object setVariable ["needUpdate",false,true];
|
||||
};
|
||||
|
||||
_object_killed = {
|
||||
private["_hitpoints","_array","_hit","_PUID","_selection","_key","_damage"];
|
||||
private ["_hitpoints","_array","_hit","_selection","_key","_damage"];
|
||||
_hitpoints = _object call vehicle_getHitpoints;
|
||||
//_damage = damage _object;
|
||||
_damage = 1;
|
||||
_damage = damage _object;
|
||||
|
||||
_array = [];
|
||||
{
|
||||
_hit = [_object,_x] call object_getHit;
|
||||
_selection = getText (configFile >> "CfgVehicles" >> (typeOf _object) >> "HitPoints" >> _x >> "name");
|
||||
if (_hit > 0) then {_array set [count _array,[_selection,_hit]]};
|
||||
_hit = 1;
|
||||
_object setHit ["_selection", _hit];
|
||||
_hit = [_object, _x] call object_getHit;
|
||||
_selection = getText (configFile >> "CfgVehicles" >> typeOf _object >> "HitPoints" >> _x >> "name");
|
||||
if (_hit > 0) then {
|
||||
_array set [count _array, [_selection,_hit]];
|
||||
};
|
||||
_object setHit [_selection, _hit];
|
||||
} count _hitpoints;
|
||||
|
||||
if (_objectID == "0") then {
|
||||
_key = format["CHILD:306:%1:%2:%3:",_uid,_array,_damage];
|
||||
} else {
|
||||
_key = format["CHILD:306:%1:%2:%3:",_objectID,_array,_damage];
|
||||
};
|
||||
//diag_log ("HIVE: WRITE: "+ str(_key));
|
||||
|
||||
_key = "CHILD:306:" + _objectID + ":" + str _array + ":" + str _damage + ":";
|
||||
_key call server_hiveWrite;
|
||||
_object setVariable ["needUpdate",false,true];
|
||||
if ((count _this) > 2) then {
|
||||
_object setVariable ["needUpdate", false, true];
|
||||
};
|
||||
|
||||
_object_killed = {
|
||||
private ["_hitpoints","_array","_hit","_PUID","_selection","_key","_damage"];
|
||||
_hitpoints = _object call vehicle_getHitpoints;
|
||||
_damage = 1;
|
||||
|
||||
_array = [];
|
||||
{
|
||||
_hit = [_object, _x] call object_getHit;
|
||||
_selection = getText (configFile >> "CfgVehicles" >> typeOf _object >> "HitPoints" >> _x >> "name");
|
||||
if (_hit > 0) then {
|
||||
_array set [count _array, [_selection, _hit]];
|
||||
};
|
||||
_object setHit [_selection, 1];
|
||||
} count _hitpoints;
|
||||
|
||||
_key = "CHILD:306:" + _objectID + ":" + str _array + ":" + str _damage + ":";
|
||||
_key call server_hiveWrite;
|
||||
|
||||
_object setVariable ["needUpdate", false, true];
|
||||
|
||||
if (count _this > 2) then {
|
||||
_killer = _this select 2;
|
||||
_charID = _object getVariable ['CharacterID','0'];
|
||||
_objID = _object getVariable['ObjectID','0'];
|
||||
_objUID = _object getVariable['ObjectUID','0'];
|
||||
_charID = _object getVariable ["CharacterID", "0"];
|
||||
_objID = _object getVariable ["ObjectID", "0"];
|
||||
_objUID = _object getVariable ["ObjectUID", "0"];
|
||||
_worldSpace = getPosATL _object;
|
||||
_PUID = if (DayZ_UseSteamID) then {GetPlayerUID _killer;} else {GetPlayerUIDOld _killer;};
|
||||
_PUID = [_killer] call FNC_GetPlayerUID;
|
||||
if (_PUID != "") then {
|
||||
_name = if (alive _killer) then { name _killer; } else { format["OBJECT %1", _killer]; };
|
||||
diag_log format["Vehicle killed: Vehicle %1 (TYPE: %2), CharacterID: %3, ObjectID: %4, ObjectUID: %5, Position: %6, Killer: %7 (UID: %8)", _object, (typeOf _object), _charID, _objID, _objUID, _worldSpace, _name, _PUID];
|
||||
_name = if (alive _killer) then { name _killer } else { format["OBJECT %1", _killer] };
|
||||
diag_log format ["Vehicle killed: Vehicle %1 (TYPE: %2), CharacterID: %3, ObjectID: %4, ObjectUID: %5, Position: %6, Killer: %7 (UID: %8)", _object, typeOf _object, _charID, _objID, _objUID, _worldSpace, _name, _PUID];
|
||||
} else {
|
||||
diag_log format["Vehicle killed: Vehicle %1 (TYPE: %2), CharacterID: %3, ObjectID: %4, ObjectUID: %5, Position: %6", _object, (typeOf _object), _charID, _objID, _objUID, _worldSpace];
|
||||
diag_log format ["Vehicle killed: Vehicle %1 (TYPE: %2), CharacterID: %3, ObjectID: %4, ObjectUID: %5, Position: %6", _object, typeOf _object, _charID, _objID, _objUID, _worldSpace];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
_object_repair = {
|
||||
private["_hitpoints","_array","_hit","_selection","_key","_damage"];
|
||||
private ["_hitpoints","_array","_hit","_selection","_key","_damage"];
|
||||
_hitpoints = _object call vehicle_getHitpoints;
|
||||
_damage = damage _object;
|
||||
|
||||
_array = [];
|
||||
{
|
||||
_hit = [_object,_x] call object_getHit;
|
||||
_selection = getText (configFile >> "CfgVehicles" >> (typeOf _object) >> "HitPoints" >> _x >> "name");
|
||||
if (_hit > 0) then {_array set [count _array,[_selection,_hit]]};
|
||||
_object setHit ["_selection", _hit];
|
||||
} count _hitpoints;
|
||||
|
||||
_key = format["CHILD:306:%1:%2:%3:",_objectID,_array,_damage];
|
||||
//diag_log ("HIVE: WRITE: "+ str(_key));
|
||||
_key call server_hiveWrite;
|
||||
_object setVariable ["needUpdate",false,true];
|
||||
};
|
||||
// TODO ----------------------
|
||||
|
||||
_object setVariable ["lastUpdate",time,true];
|
||||
switch (_type) do {
|
||||
case "all": {
|
||||
call _object_position;
|
||||
call _object_inventory;
|
||||
call _object_damage;
|
||||
if (_hit > 0) then {
|
||||
_array set [count _array, [_selection, _hit]];
|
||||
};
|
||||
case "position": {
|
||||
if (!(_object in needUpdate_objects)) then {
|
||||
//diag_log format["DEBUG Position: Added to NeedUpdate=%1",_object];
|
||||
_object setHit [_selection, _hit];
|
||||
} count _hitpoints;
|
||||
|
||||
_key = "CHILD:306:" + _objectID + ":" + str _array + ":" + str _damage + ":";
|
||||
_key call server_hiveWrite;
|
||||
_object setVariable ["needUpdate", false, true];
|
||||
};
|
||||
|
||||
_object setVariable ["lastUpdate", time, true];
|
||||
|
||||
if (_type == "all") exitWith {
|
||||
call _object_position;
|
||||
call _object_inventory;
|
||||
call _object_damage;
|
||||
};
|
||||
|
||||
if (_type == "position") exitWith {
|
||||
if !(_object in needUpdate_objects) then {
|
||||
needUpdate_objects set [count needUpdate_objects, _object];
|
||||
};
|
||||
};
|
||||
|
||||
if (_type == "gear") exitWith {
|
||||
call _object_inventory;
|
||||
};
|
||||
|
||||
if (_type == "damage") exitWith {
|
||||
if (time - _lastUpdate > 5) then {
|
||||
call _object_damage;
|
||||
} else {
|
||||
if !(_object in needUpdate_objects) then {
|
||||
needUpdate_objects set [count needUpdate_objects, _object];
|
||||
};
|
||||
};
|
||||
case "gear": {
|
||||
call _object_inventory;
|
||||
};
|
||||
case "damage": {
|
||||
if ( (time - _lastUpdate) > 5) then {
|
||||
call _object_damage;
|
||||
} else {
|
||||
if (!(_object in needUpdate_objects)) then {
|
||||
//diag_log format["DEBUG Damage: Added to NeedUpdate=%1",_object];
|
||||
needUpdate_objects set [count needUpdate_objects, _object];
|
||||
};
|
||||
};
|
||||
};
|
||||
case "killed": {
|
||||
call _object_killed;
|
||||
};
|
||||
case "repair": {
|
||||
call _object_damage;
|
||||
};
|
||||
};
|
||||
|
||||
if (_type == "killed") exitWith {
|
||||
call _object_killed;
|
||||
};
|
||||
|
||||
if (_type == "repair") exitWith {
|
||||
call _object_damage;
|
||||
};
|
||||
|
||||
@@ -815,7 +815,7 @@ server_checkHackers = {
|
||||
};
|
||||
|
||||
server_spawnCleanFire = {
|
||||
private ["_delQtyFP","_qty","_delQtyNull","_missionFires"];
|
||||
private ["_delQtyFP","_qty","_missionFires"];
|
||||
_missionFires = allMissionObjects "Land_Fire_DZ";
|
||||
_delQtyFP = 0;
|
||||
{
|
||||
@@ -828,7 +828,7 @@ server_spawnCleanFire = {
|
||||
} count _missionFires;
|
||||
if (_delQtyFP > 0) then {
|
||||
_qty = count _missionFires;
|
||||
diag_log (format["CLEANUP: Deleted %1 fireplaces out of %2",_delQtyNull,_qty]);
|
||||
diag_log (format["CLEANUP: Deleted %1 fireplaces out of %2",_delQtyFP,_qty]);
|
||||
};
|
||||
};
|
||||
server_spawnCleanLoot = {
|
||||
@@ -863,7 +863,7 @@ server_spawnCleanLoot = {
|
||||
};
|
||||
};
|
||||
sleep 0.001;
|
||||
} count _missionObjs;
|
||||
} forEach _missionObjs;
|
||||
if (_delQty > 0) then {
|
||||
_qty = count _missionObjs;
|
||||
diag_log (format["CLEANUP: Deleted %1 Loot Piles out of %2",_delQty,_qty]);
|
||||
@@ -894,7 +894,7 @@ server_spawnCleanAnimals = {
|
||||
};
|
||||
};
|
||||
sleep 0.001;
|
||||
} count _missonAnimals;
|
||||
} forEach _missonAnimals;
|
||||
if (_delQtyAnimal > 0) then {
|
||||
_qty = count _missonAnimals;
|
||||
diag_log (format["CLEANUP: Deleted %1 Animals out of %2",_delQtyAnimal,_qty]);
|
||||
@@ -914,7 +914,7 @@ server_logUnlockLockEvent = {
|
||||
[_obj, "gear"] call server_updateObject;
|
||||
_statusText = "LOCKED";
|
||||
};
|
||||
_PUID = if (DayZ_UseSteamID) then {GetPlayerUID _killer;} else {GetPlayerUIDOld _killer;};
|
||||
_PUID = [_player] call FNC_GetPlayerUID;
|
||||
diag_log format["SAFE %5: ID:%1 UID:%2 BY %3(%4)", _objectID, _objectUID, (name _player), _PUID, _statusText];
|
||||
};
|
||||
};
|
||||
|
||||
@@ -11,9 +11,9 @@ AllowedVehiclesList = [
|
||||
["CSJ_GyroC",3],
|
||||
["CSJ_GyroCover",3],
|
||||
["CSJ_GyroP",3],
|
||||
["datsun1_civil_1_open",3],
|
||||
["datsun1_civil_2_covered",3],
|
||||
["datsun1_civil_3_open",3],
|
||||
["datsun1_civil_1_open_DZE",3],
|
||||
["datsun1_civil_2_covered_DZE",3],
|
||||
["datsun1_civil_3_open_DZE",3],
|
||||
["GAZ_Vodnik_DZE",1],
|
||||
["GAZ_Vodnik_MedEvac",1],
|
||||
["GLT_M300_LT",3],
|
||||
@@ -22,9 +22,9 @@ AllowedVehiclesList = [
|
||||
["GNT_C185C",1],
|
||||
["GNT_C185R",1],
|
||||
["GNT_C185U",1],
|
||||
["hilux1_civil_1_open",3],
|
||||
["hilux1_civil_2_covered",3],
|
||||
["hilux1_civil_3_open_EP1",3],
|
||||
["hilux1_civil_1_open_DZE",3],
|
||||
["hilux1_civil_2_covered_DZE",3],
|
||||
["hilux1_civil_3_open_DZE",3],
|
||||
["HMMWV_Ambulance",1],
|
||||
["HMMWV_Ambulance_CZ_DES_EP1",1],
|
||||
["HMMWV_DES_EP1",3],
|
||||
|
||||
@@ -182,6 +182,9 @@ _unit_5 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["TK_CIV_Takistani03_EP1", [1963.8654, 12560.453, 6.1035156e-005], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_5 = _this;
|
||||
_this setDir 404.32175;
|
||||
_this setVehicleInit "this allowDammage false;this disableAI 'FSM';this disableAI 'MOVE';";
|
||||
@@ -211,6 +214,9 @@ _unit_7 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["TK_CIV_Woman03_EP1", [1957.4203, 12568.211, 9.1552734e-005], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_7 = _this;
|
||||
_this setDir 39.660408;
|
||||
_this setVehicleInit "this allowDammage false;this disableAI 'FSM';this disableAI 'MOVE';";
|
||||
@@ -231,6 +237,9 @@ _unit_9 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["TK_CIV_Woman02_EP1", [1953.5016, 12571.835], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_9 = _this;
|
||||
_this setDir 40.850948;
|
||||
_this setVehicleInit "this allowDammage false;this disableAI 'FSM';this disableAI 'MOVE';";
|
||||
@@ -637,6 +646,9 @@ _unit_32 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["Woodlander2", [433.19955, 5568.5366, -3.0517578e-005], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_32 = _this;
|
||||
_this setDir 68.34314;
|
||||
_this setVehicleInit "this allowDammage false;this disableAI 'FSM';this disableAI 'MOVE';";
|
||||
@@ -711,6 +723,9 @@ _unit_35 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["TK_CIV_Takistani05_EP1", [386.61227, 5569.4438, 3.0517578e-005], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_35 = _this;
|
||||
_this setDir 50.112614;
|
||||
_this setVehicleInit "this allowDammage false;this disableAI 'FSM';this disableAI 'MOVE';";
|
||||
@@ -722,6 +737,9 @@ _unit_39 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["Dr_Annie_Baker_EP1", [384.03485, 5573.4668, -3.0517578e-005], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_39 = _this;
|
||||
_this setDir 58.586422;
|
||||
_this setVehicleInit "this allowDammage false;this disableAI 'FSM';this disableAI 'MOVE';";
|
||||
@@ -867,6 +885,9 @@ _unit_40 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["RU_Profiteer3", [417.94049, 5591.2446], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_40 = _this;
|
||||
_this setDir 184.40666;
|
||||
_this setVehicleInit "this allowDammage false;this disableAI 'FSM';this disableAI 'MOVE';";
|
||||
@@ -878,6 +899,9 @@ _unit_42 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["Profiteer1", [423.12558, 5590.04, 3.0517578e-005], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_42 = _this;
|
||||
_this setDir 191.358;
|
||||
_this setVehicleInit "this allowDammage false;this disableAI 'FSM';this disableAI 'MOVE';";
|
||||
@@ -1023,6 +1047,9 @@ _unit_47 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["Functionary1", [431.4043, 5574.6333, 0.091463022], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_47 = _this;
|
||||
_this setDir 89.942528;
|
||||
_this setVehicleInit "this allowDammage false;this disableAI 'FSM';this disableAI 'MOVE';";
|
||||
@@ -1106,6 +1133,9 @@ _unit_52 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["RU_Profiteer2", [10863.553, 6316.834, 7.0390654], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_52 = _this;
|
||||
_this setDir 686.38519;
|
||||
_this setVehicleInit "this allowDammage false;this disableAI 'FSM';this disableAI 'MOVE';";
|
||||
@@ -1117,6 +1147,9 @@ _unit_53 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["RU_Damsel4", [10855.335, 6322.541, 7.0167804], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_53 = _this;
|
||||
_this setDir 470.62384;
|
||||
_this setVehicleInit "this allowDammage false;this disableAI 'FSM';this disableAI 'MOVE';";
|
||||
@@ -1218,6 +1251,9 @@ _unit_55 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["TK_CIV_Takistani06_EP1", [1954.4617, 12580.146, -3.0517578e-005], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_55 = _this;
|
||||
_this setDir -211.49269;
|
||||
_this setVehicleInit "this allowDammage false;this disableAI 'FSM';this disableAI 'MOVE';";
|
||||
@@ -1229,6 +1265,9 @@ _unit_56 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["TK_CIV_Takistani04_EP1", [1959.4484, 12580.087, -6.1035156e-005], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_56 = _this;
|
||||
_this setDir -123.33997;
|
||||
_this setVehicleInit "this allowDammage false;this disableAI 'FSM';this disableAI 'MOVE';";
|
||||
@@ -1321,6 +1360,9 @@ _unit_59 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["TK_CIV_Takistani02_EP1", [10848.938, 6320.2627, 8.0427837], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_59 = _this;
|
||||
_this setDir 77.728821;
|
||||
_this setVehicleInit "this allowDammage false;this disableAI 'FSM';this disableAI 'MOVE';";
|
||||
@@ -1537,6 +1579,9 @@ _unit_65 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["RU_Pilot", [5288.4131, 11156.97, 2.2888184e-005], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_65 = _this;
|
||||
_this setDir 135.34708;
|
||||
_this setVehicleInit "this allowDammage false;this disableAI 'FSM';this disableAI 'MOVE';";
|
||||
@@ -1853,6 +1898,9 @@ _unit_74 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["RU_Sportswoman5", [392.18158, 5563.1147, 3.0517578e-005], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_74 = _this;
|
||||
_this setDir 58.114418;
|
||||
_this setVehicleInit "this allowDammage false;this disableAI 'FSM';this disableAI 'MOVE';";
|
||||
@@ -1873,6 +1921,9 @@ _unit_79 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["RU_Woodlander3", [7408.4741, 96.801483, 0.24309185], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_79 = _this;
|
||||
_this setDir 122.68694;
|
||||
_this setVehicleInit "this allowDammage false;this disableAI 'FSM';this disableAI 'MOVE';";
|
||||
@@ -1920,6 +1971,9 @@ _unit_81 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["RU_Citizen4", [11127.252, 12662.867, -0.010949398], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_81 = _this;
|
||||
_this setDir 198.31847;
|
||||
_this setVehicleInit "this allowDammage false;this disableAI 'FSM';this disableAI 'MOVE';";
|
||||
@@ -2609,6 +2663,9 @@ _unit_119 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["TK_GUE_Soldier_Sniper_EP1", [748.84283, 10485.521, 0.00012207031], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_119 = _this;
|
||||
_this setDir 138.18484;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0; ";
|
||||
@@ -2827,6 +2884,9 @@ _unit_121 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["Soldier_MG_PKM_PMC", [8030.7441, 2005.8091, -3.0517578e-005], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_121 = _this;
|
||||
_this setDir 175.9279;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0; ";
|
||||
|
||||
@@ -11,9 +11,9 @@ AllowedVehiclesList = [
|
||||
["CSJ_GyroC",3],
|
||||
["CSJ_GyroCover",3],
|
||||
["CSJ_GyroP",3],
|
||||
["datsun1_civil_1_open",3],
|
||||
["datsun1_civil_2_covered",3],
|
||||
["datsun1_civil_3_open",3],
|
||||
["datsun1_civil_1_open_DZE",3],
|
||||
["datsun1_civil_2_covered_DZE",3],
|
||||
["datsun1_civil_3_open_DZE",3],
|
||||
["GAZ_Vodnik_DZE",1],
|
||||
["GAZ_Vodnik_MedEvac",1],
|
||||
["GLT_M300_LT",3],
|
||||
@@ -22,9 +22,9 @@ AllowedVehiclesList = [
|
||||
["GNT_C185C",1],
|
||||
["GNT_C185R",1],
|
||||
["GNT_C185U",1],
|
||||
["hilux1_civil_1_open",3],
|
||||
["hilux1_civil_2_covered",3],
|
||||
["hilux1_civil_3_open_EP1",3],
|
||||
["hilux1_civil_1_open_DZE",3],
|
||||
["hilux1_civil_2_covered_DZE",3],
|
||||
["hilux1_civil_3_open_DZE",3],
|
||||
["HMMWV_Ambulance",1],
|
||||
["HMMWV_Ambulance_CZ_DES_EP1",1],
|
||||
["HMMWV_DES_EP1",3],
|
||||
|
||||
@@ -11,9 +11,9 @@ AllowedVehiclesList = [
|
||||
["CSJ_GyroC",3],
|
||||
["CSJ_GyroCover",3],
|
||||
["CSJ_GyroP",3],
|
||||
["datsun1_civil_1_open",3],
|
||||
["datsun1_civil_2_covered",3],
|
||||
["datsun1_civil_3_open",3],
|
||||
["datsun1_civil_1_open_DZE",3],
|
||||
["datsun1_civil_2_covered_DZE",3],
|
||||
["datsun1_civil_3_open_DZE",3],
|
||||
["Fishing_Boat",3],
|
||||
["GAZ_Vodnik_DZE",1],
|
||||
["GAZ_Vodnik_MedEvac",1],
|
||||
@@ -23,9 +23,9 @@ AllowedVehiclesList = [
|
||||
["GNT_C185C",1],
|
||||
["GNT_C185R",1],
|
||||
["GNT_C185U",1],
|
||||
["hilux1_civil_1_open",3],
|
||||
["hilux1_civil_2_covered",3],
|
||||
["hilux1_civil_3_open_EP1",3],
|
||||
["hilux1_civil_1_open_DZE",3],
|
||||
["hilux1_civil_2_covered_DZE",3],
|
||||
["hilux1_civil_3_open_DZE",3],
|
||||
["HMMWV_Ambulance",1],
|
||||
["HMMWV_Ambulance_CZ_DES_EP1",1],
|
||||
["HMMWV_DES_EP1",3],
|
||||
|
||||
@@ -64,6 +64,9 @@ _unit_13 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["Profiteer4", [11449.484, 11341.03, -9.1552734e-005], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_13 = _this;
|
||||
_this setDir 34.525925;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -74,6 +77,9 @@ _unit_17 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["RU_Villager3", [7996.1021, 2899.0759, 0.6355527], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_17 = _this;
|
||||
_this setDir 86.85891;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -139,6 +145,9 @@ _unit_56 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["Worker3", [4041.6206, 11668.891, 0.23954971], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_56 = _this;
|
||||
_this setDir 24.912832;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -149,6 +158,9 @@ _unit_57 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["CIV_EuroMan01_EP1", [4064.0681, 11680.065, -0.038146973], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_57 = _this;
|
||||
_this setDir 231.00745;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -159,6 +171,9 @@ _unit_58 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["RU_WorkWoman5", [4071.9915, 11676.731, 0.54440308], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_58 = _this;
|
||||
_this setDir 566.81744;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -169,6 +184,9 @@ _unit_59 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["TK_GUE_Soldier_5_EP1", [4054.218, 11664.668, -0.51617432], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_59 = _this;
|
||||
_this setDir 422.9967;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -179,6 +197,9 @@ _unit_60 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["CIV_EuroMan02_EP1", [4058.0457, 11678.723, 0.33944702], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_60 = _this;
|
||||
_this setDir 89.890854;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -189,6 +210,9 @@ _unit_62 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["Dr_Hladik_EP1", [6314.0962, 7791.5308, 0.51730686], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_62 = _this;
|
||||
_this setDir 577.32629;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -665,6 +689,9 @@ _unit_73 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["RU_Functionary1", [12946.349, 12766.593, 2.0980835e-005], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_73 = _this;
|
||||
_this setDir 194.24156;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -675,6 +702,9 @@ _unit_74 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["Woodlander1", [11471.179, 11361.226, -9.1552734e-005], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_74 = _this;
|
||||
_this setDir 250.1544;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -685,6 +715,9 @@ _unit_75 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["RU_WorkWoman1", [11463.931, 11351.671, 0.94462103], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_75 = _this;
|
||||
_this setDir 261.27719;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -695,6 +728,9 @@ _unit_78 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["Rocker4", [11465.548, 11354.459], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_78 = _this;
|
||||
_this setDir 310.03851;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -705,6 +741,9 @@ _unit_79 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["RU_Citizen3", [11462.307, 11365.972, 3.0517578e-005], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_79 = _this;
|
||||
_this setDir 125.74001;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -715,6 +754,9 @@ _unit_82 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["Dr_Annie_Baker_EP1", [11472.008, 11370.638], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_82 = _this;
|
||||
_this setDir 208.20467;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -725,6 +767,9 @@ _unit_84 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["TK_CIV_Takistani04_EP1", [6321.0005, 7794.4478, 0.98069924], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_84 = _this;
|
||||
_this setDir 359.64191;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -833,6 +878,9 @@ _unit_90 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["RU_Citizen4", [13530.905, 6356.7388, 1.7166138e-005], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_90 = _this;
|
||||
_this setDir 102.75758;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -843,6 +891,9 @@ _unit_91 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["RU_Citizen1", [4360.6211, 2260.9841, 3.8146973e-006], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_91 = _this;
|
||||
_this setDir 196.69872;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -870,6 +921,9 @@ _unit_94 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["Pilot_EP1", [6317.0498, 7797.918, -0.28563881], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_94 = _this;
|
||||
_this setDir 464.17493;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -880,6 +934,9 @@ _unit_95 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["Rita_Ensler_EP1", [6310.7803, 7794.5054, 0.88001078], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_95 = _this;
|
||||
_this setDir -114.43345;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -1042,6 +1099,9 @@ _unit_97 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["Worker2", [12061.648, 12636.292, 0.020880492], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_97 = _this;
|
||||
_this setDir 19.92712;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -1108,6 +1168,9 @@ _unit_108 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["GUE_Soldier_MG", [1623.1722, 7797.7886, 0.25734121], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_108 = _this;
|
||||
_this setDir 274.59872;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -1242,6 +1305,9 @@ _unit_118 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["RU_Profiteer4", [6300.312, 7800.5874, -0.034530878], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_118 = _this;
|
||||
_this setDir -49.359165;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -1269,6 +1335,9 @@ _unit_122 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["Woodlander3", [6317.9883, 7789.3345, 3.0517578e-005], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_122 = _this;
|
||||
_this setDir -130.79149;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -1299,6 +1368,9 @@ _unit_124 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["HouseWife1", [13468.382, 5439.5752, 2.8821261], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_124 = _this;
|
||||
_this setDir -91.741302;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -1335,6 +1407,9 @@ _unit_128 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["Doctor", [4059.437, 11660.436], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_128 = _this;
|
||||
_this setDir 24.266853;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -1479,6 +1554,9 @@ _unit_132 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["GUE_Woodlander2", [6321.0439, 7781.0288], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_132 = _this;
|
||||
_this setDir 9.6638927;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
|
||||
@@ -11,9 +11,9 @@ AllowedVehiclesList = [
|
||||
["CSJ_GyroC",3],
|
||||
["CSJ_GyroCover",3],
|
||||
["CSJ_GyroP",3],
|
||||
["datsun1_civil_1_open",3],
|
||||
["datsun1_civil_2_covered",3],
|
||||
["datsun1_civil_3_open",3],
|
||||
["datsun1_civil_1_open_DZE",3],
|
||||
["datsun1_civil_2_covered_DZE",3],
|
||||
["datsun1_civil_3_open_DZE",3],
|
||||
["Fishing_Boat",3],
|
||||
["GAZ_Vodnik_DZE",1],
|
||||
["GAZ_Vodnik_MedEvac",1],
|
||||
@@ -23,9 +23,9 @@ AllowedVehiclesList = [
|
||||
["GNT_C185C",1],
|
||||
["GNT_C185R",1],
|
||||
["GNT_C185U",1],
|
||||
["hilux1_civil_1_open",3],
|
||||
["hilux1_civil_2_covered",3],
|
||||
["hilux1_civil_3_open_EP1",3],
|
||||
["hilux1_civil_1_open_DZE",3],
|
||||
["hilux1_civil_2_covered_DZE",3],
|
||||
["hilux1_civil_3_open_DZE",3],
|
||||
["HMMWV_Ambulance",1],
|
||||
["HMMWV_Ambulance_CZ_DES_EP1",1],
|
||||
["HMMWV_DES_EP1",3],
|
||||
|
||||
@@ -2635,6 +2635,9 @@ _unit_45 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["Worker2", [5976.3008, 6163.7275, 1.9073486e-006], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_45 = _this;
|
||||
_this setDir -140.00029;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -2646,6 +2649,9 @@ _unit_47 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["GUE_Soldier_MG", [8414.8604, 3368.6594, -2.8610229e-006], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_47 = _this;
|
||||
_this setDir -27.777979;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -2657,6 +2663,9 @@ _unit_49 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["Soldier_GL_M16A2_PMC", [7222.3716, 2132.9478, 1.5258789e-005], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_49 = _this;
|
||||
_this setDir -293.24121;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -2668,6 +2677,9 @@ _unit_51 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["RU_Villager3", [2648.3003, 7122.5845, -1.9073486e-006], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_51 = _this;
|
||||
_this setDir -22.2006;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -2679,6 +2691,9 @@ _unit_53 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["HouseWife1", [8781.6064, 5191.5684, 4.7326088e-005], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_53 = _this;
|
||||
_this setDir -187.81914;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -2690,6 +2705,9 @@ _unit_55 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["US_Delta_Force_Assault_EP1", [6272.8584, 1274.2034, -1.9073486e-006], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_55 = _this;
|
||||
_this setDir -93.52697;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -2701,6 +2719,9 @@ _unit_57 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["RU_Citizen4", [6286.2813, 1298.1885, 1.9073486e-005], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_57 = _this;
|
||||
_this setDir -108.68906;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -2712,6 +2733,9 @@ _unit_59 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["RU_Citizen1", [8407.6299, 3378.7595, 1.6212463e-005], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_59 = _this;
|
||||
_this setDir -253.03992;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -2739,6 +2763,9 @@ _unit_62 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["RU_Citizen3", [4971.9692, 5114.3472], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_62 = _this;
|
||||
_this setDir -83.308296;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -2750,6 +2777,9 @@ _unit_64 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["Woodlander1", [4979.2168, 5139.1733, 6.6757202e-006], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_64 = _this;
|
||||
_this setDir -181.55573;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -2761,6 +2791,9 @@ _unit_66 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["RU_WorkWoman1", [4965.9014, 5108.644, 1.9073486e-006], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_66 = _this;
|
||||
_this setDir 2.7557797;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -2772,6 +2805,9 @@ _unit_68 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["Dr_Annie_Baker_EP1", [4965.6421, 5115.1631, 1.1444092e-005], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_68 = _this;
|
||||
_this setDir 73.497513;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -2783,6 +2819,9 @@ _unit_70 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["Profiteer4", [4957.1533, 5126.5654, 7.6293945e-006], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_70 = _this;
|
||||
_this setDir 110.76637;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -2794,6 +2833,9 @@ _unit_72 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["Rocker4", [4971.4492, 5109.6177, 9.5367432e-007], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_72 = _this;
|
||||
_this setDir -40.860092;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -2805,6 +2847,9 @@ _unit_74 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["CIV_EuroMan02_EP1", [1277.3499, 9078.915], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_74 = _this;
|
||||
_this setDir 171.43173;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -2816,6 +2861,9 @@ _unit_76 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["Woodlander3", [1288.8369, 9070.9072], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_76 = _this;
|
||||
_this setDir -157.63625;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -2827,6 +2875,9 @@ _unit_78 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["Rita_Ensler_EP1", [1272.0219, 9076.0498, 8.7738037e-005], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_78 = _this;
|
||||
_this setDir 116.10448;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -2838,6 +2889,9 @@ _unit_80 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["Dr_Hladik_EP1", [1271.2402, 9071.4688, 7.6293945e-006], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_80 = _this;
|
||||
_this setDir 66.620392;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -2849,6 +2903,9 @@ _unit_82 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["Worker3", [1289.3068, 9065.6982, 1.9073486e-005], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_82 = _this;
|
||||
_this setDir -110.7572;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -2860,6 +2917,9 @@ _unit_84 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["CIV_EuroMan01_EP1", [1280.7538, 9076.2578, 3.8146973e-006], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_84 = _this;
|
||||
_this setDir -110.97326;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -2871,6 +2931,9 @@ _unit_86 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["Pilot_EP1", [1996.1123, 1202.0564, 2.3841858e-006], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_86 = _this;
|
||||
_this setDir 86.784157;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -2882,6 +2945,9 @@ _unit_88 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["TK_GUE_Soldier_5_EP1", [1995.3817, 1153.9949, 1.7642975e-005], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_88 = _this;
|
||||
_this setDir 56.780041;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -2893,6 +2959,9 @@ _unit_90 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["RU_WorkWoman5", [2002.8221, 1203.0331, -4.529953e-006], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_90 = _this;
|
||||
_this setDir -105.09073;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -2904,6 +2973,9 @@ _unit_92 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["Doctor", [1998.7803, 1197.3105, 3.3378601e-006], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_92 = _this;
|
||||
_this setDir 9.4260817;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -2915,6 +2987,9 @@ _unit_94 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["UN_CDF_Soldier_Pilot_EP1", [1988.5029, 1124.8167, 4.7683716e-007], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_94 = _this;
|
||||
_this setDir 78.213387;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -2926,6 +3001,9 @@ _unit_96 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["TK_CIV_Takistani04_EP1", [1999.0026, 1207.135, 6.1988831e-006], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_96 = _this;
|
||||
_this setDir -170.20198;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -2933,4 +3011,4 @@ if (true) then
|
||||
_this allowDammage false; _this disableAI 'FSM'; _this disableAI 'MOVE'; _this disableAI 'AUTOTARGET'; _this disableAI 'TARGET'; _this setBehaviour 'CARELESS'; _this forceSpeed 0;_this enableSimulation false;
|
||||
};
|
||||
|
||||
processInitCommands;
|
||||
processInitCommands;
|
||||
|
||||
@@ -11,9 +11,9 @@ AllowedVehiclesList = [
|
||||
["CSJ_GyroC",3],
|
||||
["CSJ_GyroCover",3],
|
||||
["CSJ_GyroP",3],
|
||||
["datsun1_civil_1_open",3],
|
||||
["datsun1_civil_2_covered",3],
|
||||
["datsun1_civil_3_open",3],
|
||||
["datsun1_civil_1_open_DZE",3],
|
||||
["datsun1_civil_2_covered_DZE",3],
|
||||
["datsun1_civil_3_open_DZE",3],
|
||||
["Fishing_Boat",3],
|
||||
["GAZ_Vodnik_DZE",1],
|
||||
["GAZ_Vodnik_MedEvac",1],
|
||||
@@ -23,9 +23,9 @@ AllowedVehiclesList = [
|
||||
["GNT_C185C",1],
|
||||
["GNT_C185R",1],
|
||||
["GNT_C185U",1],
|
||||
["hilux1_civil_1_open",3],
|
||||
["hilux1_civil_2_covered",3],
|
||||
["hilux1_civil_3_open_EP1",3],
|
||||
["hilux1_civil_1_open_DZE",3],
|
||||
["hilux1_civil_2_covered_DZE",3],
|
||||
["hilux1_civil_3_open_DZE",3],
|
||||
["HMMWV_Ambulance",1],
|
||||
["HMMWV_Ambulance_CZ_DES_EP1",1],
|
||||
["HMMWV_DES_EP1",3],
|
||||
|
||||
@@ -37,6 +37,9 @@ _unit_112 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["GUE_Soldier_3", [7344.2422, 4301.9624], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_112 = _this;
|
||||
_this setDir 70.416916;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -56,6 +59,9 @@ _unit_128 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["Soldier_Sniper_PMC", [15598.164, 16402.732, -7.6293945e-006], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_128 = _this;
|
||||
_this setDir -94.840897;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -67,6 +73,9 @@ _unit_131 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["GUE_Woodlander3", [15579.386, 16376.245], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_131 = _this;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
_this setUnitAbility 0.60000002;
|
||||
@@ -85,6 +94,9 @@ _unit_133 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["GUE_Soldier_Pilot", [16555.693, 10161.202, -2.6702881e-005], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_133 = _this;
|
||||
_this setDir -4.1776338;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -96,6 +108,9 @@ _unit_140 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["GUE_Worker2", [17503.697, 7155.4609, -1.5258789e-005], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_140 = _this;
|
||||
_this setDir -88.219208;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -107,6 +122,9 @@ _unit_143 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["GUE_Worker2", [4075.8738, 7263.9927, -0.15314865], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_143 = _this;
|
||||
_this setDir -94.388802;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -118,6 +136,9 @@ _unit_145 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["Reynolds_PMC", [9864.4287, 7471.3115, 1.5258789e-005], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_144 = _this;
|
||||
_this setDir -76.576241;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -142,6 +163,9 @@ _unit_100 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["Doctor", [11710.82, 15222.83, 4.5776367e-005], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_27 = _this;
|
||||
_this setDir 230.87508;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -153,6 +177,9 @@ _unit_101 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["Soldier_Sniper_KSVK_PMC", [11686.63, 15193.147, -2.2888184e-005], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_101 = _this;
|
||||
_this setDir 19.652651;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -164,6 +191,9 @@ _unit_102 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["Soldier_GL_PMC", [11684.132, 15195.753, 2.2888184e-005], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_102 = _this;
|
||||
_this setDir -299.2114;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -175,6 +205,9 @@ _unit_103 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["Citizen3", [11707.938, 15225.799], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_103 = _this;
|
||||
_this setDir 222.93503;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -186,6 +219,9 @@ _unit_104 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["RU_Worker4", [11701.782, 15231.117, 7.6293945e-006], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_104 = _this;
|
||||
_this setDir 222.73032;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -197,6 +233,9 @@ _unit_105 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["RU_Woodlander4", [11687.524, 15226.847, 1.5258789e-005], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_105 = _this;
|
||||
_this setDir -50.854939;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -216,6 +255,9 @@ _unit_106 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["RU_Woodlander4", [5552.4077, 8770.1514, -3.8146973e-006], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_106 = _this;
|
||||
_this setDir -379.36389;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -227,6 +269,9 @@ _unit_107 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["RU_Worker4", [5542.8452, 8758.9189, 3.0517578e-005], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_107 = _this;
|
||||
_this setDir -20.602602;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -238,6 +283,9 @@ _unit_108 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["Citizen3", [5538.1587, 8755.9873, -2.2888184e-005], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_108 = _this;
|
||||
_this setDir -25.471672;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -249,6 +297,9 @@ _unit_109 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["Soldier_Sniper_KSVK_PMC", [5531.3525, 8754.4307, 1.1444092e-005], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_109 = _this;
|
||||
_this setDir -55.216373;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -260,6 +311,9 @@ _unit_110 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["Soldier_GL_PMC", [5528.4814, 8753.5547, 1.1444092e-005], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_110 = _this;
|
||||
_this setDir 16.056473;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -271,6 +325,9 @@ _unit_111 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["Doctor", [5523.5796, 8750.2285, 3.8146973e-006], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_111 = _this;
|
||||
_this setDir -18.214668;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -290,6 +347,9 @@ _unit_113 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["Citizen3", [7357.0015, 4325.874, 3.8146973e-006], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_113 = _this;
|
||||
_this setDir 27.519766;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -301,6 +361,9 @@ _unit_114 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["RU_Worker4", [7350.311, 4331.0913, 7.6293945e-006], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_114 = _this;
|
||||
_this setDir 51.095901;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -312,6 +375,9 @@ _unit_115 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["Soldier_GL_PMC", [7361.0786, 4331.8047, -3.8146973e-006], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_115 = _this;
|
||||
_this setDir -158.64336;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -323,6 +389,9 @@ _unit_116 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["Soldier_Sniper_KSVK_PMC", [7358.4722, 4332.5903, 3.8146973e-006], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_116 = _this;
|
||||
_this setDir 170.36325;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -334,6 +403,9 @@ _unit_117 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["Doctor", [7398.853, 4296.9365, -7.6293945e-006], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_117 = _this;
|
||||
_this setDir -106.97213;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -353,6 +425,9 @@ _unit_118 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["Doctor", [15295.845, 9287.3516, 1.7166138e-005], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_118 = _this;
|
||||
_this setDir 82.842331;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -364,6 +439,9 @@ _unit_119 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["Soldier_Sniper_KSVK_PMC", [15318.384, 9304.9199, -4.7683716e-005], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_119 = _this;
|
||||
_this setDir 186.42917;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -375,6 +453,9 @@ _unit_120 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["Soldier_GL_PMC", [15313.905, 9304.9209, -5.7220459e-006], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_120 = _this;
|
||||
_this setDir -180.25139;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -386,6 +467,9 @@ _unit_121 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["RU_Woodlander4", [15318.999, 9260.8164, 1.7166138e-005], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_121 = _this;
|
||||
_this setDir -92.110161;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -397,6 +481,9 @@ _unit_122 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["Citizen3", [15299.092, 9303.5088, 1.6212463e-005], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_122 = _this;
|
||||
_this setDir 180.97282;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -408,6 +495,9 @@ _unit_123 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["RU_Worker4", [15306.199, 9303.7803, 2.9563904e-005], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_123 = _this;
|
||||
_this setDir -179.09961;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -427,6 +517,9 @@ _unit_124 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["GUE_Woodlander1", [10938.677, 651.23663, -3.0517578e-005], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_124 = _this;
|
||||
_this setDir 28.1598;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -438,6 +531,9 @@ _unit_125 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["RU_Worker1", [10966.954, 654.58276, 0.97554183], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_125 = _this;
|
||||
_this setDir 224.19429;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -449,6 +545,9 @@ _unit_126 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["RU_Farmwife5", [10954.223, 658.16821, 0.22649978], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_126 = _this;
|
||||
_this setDir 124.9443;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -460,6 +559,9 @@ _unit_127 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["Dr_Hladik_EP1", [10958.092, 663.19617, 2.0027161e-005], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_127 = _this;
|
||||
_this setDir 138.0876;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -479,6 +581,9 @@ _unit_129 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["RU_Damsel5", [15595.011, 16378.547, 0.10890254], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_129 = _this;
|
||||
_this setDir -43.61562;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -490,6 +595,9 @@ _unit_130 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["RU_Doctor", [15576.031, 16377.422, 1.1444092e-005], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_130 = _this;
|
||||
_this setDir 33.437065;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -509,6 +617,9 @@ _unit_132 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["UN_CDF_Soldier_Pilot_EP1", [6813.0103, 8539.0498, 0.24721491], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_132 = _this;
|
||||
_this setDir -139.99222;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -520,6 +631,9 @@ _unit_134 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["Profiteer2_EP1", [5418.9609, 9503.3301, -8.1300735e-005], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_134 = _this;
|
||||
_this setDir 96.513527;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -531,6 +645,9 @@ _unit_135 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["Worker4", [10577.302, 16777.303, 0.00029063225], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_135 = _this;
|
||||
_this setDir 30.918655;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -542,6 +659,9 @@ _unit_136 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["Worker4", [17331.977, 12930.315, 0.026711226], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_136 = _this;
|
||||
_this setDir -50.771896;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -553,6 +673,9 @@ _unit_137 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["Profiteer2_EP1", [10698.253, 5983.9556, 1.2587931], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_137 = _this;
|
||||
_this setDir -40.017792;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -564,6 +687,9 @@ _unit_138 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["GUE_Commander", [17503.266, 7163.0801], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_138 = _this;
|
||||
_this setDir -120.11973;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -575,6 +701,9 @@ _unit_139 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["GUE_Soldier_CO", [17503.395, 7159.9517, -3.0517578e-005], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_139 = _this;
|
||||
_this setDir -70.523041;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -586,6 +715,9 @@ _unit_141 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["GUE_Commander", [4073.061, 7257.9731, 1.1444092e-005], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_141 = _this;
|
||||
_this setDir -36.958515;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -597,6 +729,9 @@ _unit_142 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["GUE_Soldier_CO", [4074.7593, 7260.0825, -0.062282562], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_142 = _this;
|
||||
_this setDir -83.040123;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
@@ -608,6 +743,9 @@ _unit_144 = objNull;
|
||||
if (true) then
|
||||
{
|
||||
_this = createAgent ["GUE_Soldier_2", [13340.847, 8610.9043], [], 0, "CAN_COLLIDE"];
|
||||
{_this removeMagazine _x;} count magazines _this;
|
||||
removeAllWeapons _this;
|
||||
_this switchMove "";
|
||||
_unit_144 = _this;
|
||||
_this setDir 38.779274;
|
||||
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user