Dayz Explorer CPP 1.28.160049
Loading...
Searching...
No Matches
config.cpp
Go to the documentation of this file.
1class CfgPatches
2{
3 class DZ_Animals
4 {
5 units[]={};
6 weapons[]={};
7 requiredVersion=0.1;
8 requiredAddons[]=
9 {
10 "DZ_Data"
11 };
12 };
13};
14class CfgVehicles
15{
16 class DZ_LightAI;
17 class AnimalBase: DZ_LightAI
18 {
19 scope=0;
20 vehicleClass="Animals";
21 simulation="animal";
22 storageCategory=2;
23 icon="\dz\animals\data\mapicon_animals_ca.paa";
24 displayName="$STR_DN_ANIMAL";
25 nameSound="veh_animal";
26 accuracy=0.25;
27 faceType="Default";
28 memoryPointHeadAxis="head_axis";
29 memoryPointAim="aimPoint";
30 memoryPointCameraTarget="camera";
31 agentTasks[]=
32 {
33 "AnimalMainTask"
34 };
35 attackSounds="";
36 spottedSounds="";
37 chaseSounds="";
38 idleSounds="";
39 varTemperatureInit=38;
40 varTemperatureMin=-100;
41 varTemperatureMax=1000;
42 varTemperatureFreezePoint=-2;
43 varTemperatureThawPoint=-2;
44 varTemperatureFreezeTime=7920;
45 varTemperatureThawTime=7920;
46 class VariablesScalar
47 {
48 _threatMaxRadius=50;
49 _runDistanceMax=100;
50 _movePrefer=0.69999999;
51 _formationPrefer=0.1;
52 _scareLimit=0.2;
53 _dangerLimit=1;
54 };
55 class VariablesString
56 {
57 _expSafe="(0.5 * meadow) * (0.5 * trees) * (1 - forest) * (1 - houses) * (1 - sea)";
58 _expDanger="(trees) * (forest) * (1 - meadow)";
59 };
60 htMin=60;
61 htMax=1800;
62 afMax=30;
63 mfMax=0;
64 mFact=1;
65 tBody=37;
66 };
67 class AnimalsHoofsMedium: AnimalBase
68 {
69 };
70};
72{
73 class AnimalMainTask
74 {
75 name="Animal Main Task";
76 fsm="\dz\animals\Data\scripts\main.fsm";
77 condition="\dz\animals\Data\scripts\createSingleTask.sqf";
78 description="Animal master task";
79 destination="";
80 resources[]={};
81 };
82};
84{
85 class Dragonfly
86 {
87 class States
88 {
89 class Random_Move
90 {
91 name="Random_Move";
92 class Init
93 {
94 function="randomMove";
95 parameters[]={1,-0.1,1.2,5};
96 thresholds[]={};
97 };
98 class Links
99 {
100 class MoveCompleted
101 {
102 priority=1;
103 to="SetRandom3";
104 class Condition
105 {
106 function="moveCompleted";
107 parameters[]={};
108 threshold=0;
109 };
110 class Action
111 {
112 function="nothing";
113 parameters[]={};
114 thresholds[]={};
115 };
116 };
117 class TimeElapsed
118 {
119 priority=0;
120 to="SetRandom2";
121 class Condition
122 {
123 function="timeElapsed";
124 parameters[]={};
125 threshold=0;
126 };
127 class Action
128 {
129 function="nothing";
130 parameters[]={};
131 thresholds[]={};
132 };
133 };
134 };
135 };
136 class LongerWait
137 {
138 name="LongerWait";
139 class Init
140 {
141 function="wait";
142 parameters[]={0.80000001,2};
143 thresholds[]={};
144 };
145 class Links
146 {
147 class WaitCompleted
148 {
149 priority=0;
150 to="SetTimerRandom";
151 class Condition
152 {
153 function="waitCompleted";
154 parameters[]={};
155 threshold=0;
156 };
157 class Action
158 {
159 function="nothing";
160 parameters[]={};
161 thresholds[]={};
162 };
163 };
164 };
165 };
166 class Init
167 {
168 name="Init";
169 class Init
170 {
171 function="setNoBackwards";
172 parameters[]={1};
173 thresholds[]=
174 {
175 {0,0.5,0.5}
176 };
177 };
178 class Links
179 {
180 class Always
181 {
182 priority=0;
183 to="SetTimerRandom";
184 class Condition
185 {
186 function="true";
187 parameters[]={};
188 threshold=0;
189 };
190 class Action
191 {
192 function="nothing";
193 parameters[]={};
194 thresholds[]={};
195 };
196 };
197 };
198 };
199 class SetTimerRandom
200 {
201 name="SetTimerRandom";
202 class Init
203 {
204 function="setTimer";
205 parameters[]={0.5,2};
206 thresholds[]={};
207 };
208 class Links
209 {
210 class Always
211 {
212 priority=0;
213 to="SetRandom";
214 class Condition
215 {
216 function="true";
217 parameters[]={};
218 threshold=0;
219 };
220 class Action
221 {
222 function="nothing";
223 parameters[]={};
224 thresholds[]={};
225 };
226 };
227 };
228 };
229 class ShortWait
230 {
231 name="ShortWait";
232 class Init
233 {
234 function="wait";
235 parameters[]={0.60000002,1.5};
236 thresholds[]={};
237 };
238 class Links
239 {
240 class WaitCompleted
241 {
242 priority=0;
243 to="SetTimerRandom";
244 class Condition
245 {
246 function="waitCompleted";
247 parameters[]={};
248 threshold=0;
249 };
250 class Action
251 {
252 function="nothing";
253 parameters[]={};
254 thresholds[]={};
255 };
256 };
257 };
258 };
259 class SetRandom2
260 {
261 name="SetRandom2";
262 class Init
263 {
264 function="nothing";
265 parameters[]={};
266 thresholds[]=
267 {
268 {1,0,1}
269 };
270 };
271 class Links
272 {
273 class constProbability
274 {
275 priority=1;
276 to="LongWait";
277 class Condition
278 {
279 function="const";
280 parameters[]={0.1};
281 threshold=1;
282 };
283 class Action
284 {
285 function="nothing";
286 parameters[]={};
287 thresholds[]={};
288 };
289 };
290 class Always
291 {
292 priority=0;
293 to="LongerWait";
294 class Condition
295 {
296 function="true";
297 parameters[]={};
298 threshold=0;
299 };
300 class Action
301 {
302 function="nothing";
303 parameters[]={};
304 thresholds[]={};
305 };
306 };
307 };
308 };
309 class SetRandom3
310 {
311 name="SetRandom3";
312 class Init
313 {
314 function="nothing";
315 parameters[]={};
316 thresholds[]=
317 {
318 {1,0,1}
319 };
320 };
321 class Links
322 {
323 class constProbability
324 {
325 priority=1;
326 to="LongWait";
327 class Condition
328 {
329 function="const";
330 parameters[]={0.15000001};
331 threshold=1;
332 };
333 class Action
334 {
335 function="nothing";
336 parameters[]={};
337 thresholds[]={};
338 };
339 };
340 class Always
341 {
342 priority=0;
343 to="ShortWait";
344 class Condition
345 {
346 function="true";
347 parameters[]={};
348 threshold=0;
349 };
350 class Action
351 {
352 function="nothing";
353 parameters[]={};
354 thresholds[]={};
355 };
356 };
357 };
358 };
359 class LongWait
360 {
361 name="LongWait";
362 class Init
363 {
364 function="wait";
365 parameters[]={4,8};
366 thresholds[]={};
367 };
368 class Links
369 {
370 class WaitCompleted
371 {
372 priority=0;
373 to="SetTimerRandom";
374 class Condition
375 {
376 function="waitCompleted";
377 parameters[]={};
378 threshold=0;
379 };
380 class Action
381 {
382 function="nothing";
383 parameters[]={};
384 thresholds[]={};
385 };
386 };
387 };
388 };
389 class SetRandom
390 {
391 name="SetRandom";
392 class Init
393 {
394 function="nothing";
395 parameters[]={};
396 thresholds[]=
397 {
398 {1,0,1}
399 };
400 };
401 class Links
402 {
403 class constProbability
404 {
405 priority=1;
406 to="LongMove";
407 class Condition
408 {
409 function="const";
410 parameters[]={0.1};
411 threshold=1;
412 };
413 class Action
414 {
415 function="nothing";
416 parameters[]={};
417 thresholds[]={};
418 };
419 };
420 class Always
421 {
422 priority=0;
423 to="Random_Move";
424 class Condition
425 {
426 function="true";
427 parameters[]={};
428 threshold=0;
429 };
430 class Action
431 {
432 function="nothing";
433 parameters[]={};
434 thresholds[]={};
435 };
436 };
437 };
438 };
439 class LongMove
440 {
441 name="LongMove";
442 class Init
443 {
444 function="randomMove";
445 parameters[]={2.5,-0.1,1.2,5};
446 thresholds[]={};
447 };
448 class Links
449 {
450 class MoveCompleted
451 {
452 priority=1;
453 to="SetRandom3";
454 class Condition
455 {
456 function="moveCompleted";
457 parameters[]={};
458 threshold=0;
459 };
460 class Action
461 {
462 function="nothing";
463 parameters[]={};
464 thresholds[]={};
465 };
466 };
467 class TimeElapsed
468 {
469 priority=0;
470 to="SetRandom2";
471 class Condition
472 {
473 function="timeElapsed";
474 parameters[]={};
475 threshold=0;
476 };
477 class Action
478 {
479 function="nothing";
480 parameters[]={};
481 thresholds[]={};
482 };
483 };
484 };
485 };
486 };
487 initState="Init";
488 finalStates[]={};
489 };
490 class Butterfly
491 {
492 class States
493 {
494 class Init
495 {
496 name="Init";
497 class Init
498 {
499 function="nothing";
500 parameters[]={};
501 thresholds[]=
502 {
503 {0,0.5,0.5}
504 };
505 };
506 class Links
507 {
508 class Always
509 {
510 priority=0;
511 to="SetTimer";
512 class Condition
513 {
514 function="true";
515 parameters[]={};
516 threshold=0;
517 };
518 class Action
519 {
520 function="nothing";
521 parameters[]={};
522 thresholds[]={};
523 };
524 };
525 };
526 };
527 class MoveLand
528 {
529 name="MoveLand";
530 class Init
531 {
532 function="randomMoveLand";
533 parameters[]={2};
534 thresholds[]={};
535 };
536 class Links
537 {
538 class MoveCompleted
539 {
540 priority=1;
541 to="SetTimer3";
542 class Condition
543 {
544 function="moveCompletedVertical";
545 parameters[]={};
546 threshold=0;
547 };
548 class Action
549 {
550 function="wait";
551 parameters[]={5,15};
552 thresholds[]={};
553 };
554 };
555 class TimeElapsed
556 {
557 priority=0;
558 to="Land";
559 class Condition
560 {
561 function="timeElapsed";
562 parameters[]={};
563 threshold=0;
564 };
565 class Action
566 {
567 function="nothing";
568 parameters[]={};
569 thresholds[]={};
570 };
571 };
572 };
573 };
574 class SetTimer3
575 {
576 name="SetTimer3";
577 class Init
578 {
579 function="setTimer";
580 parameters[]={4,6};
581 thresholds[]={};
582 };
583 class Links
584 {
585 class TimeElapsed
586 {
587 priority=0;
588 to="checkWait";
589 class Condition
590 {
591 function="timeElapsed";
592 parameters[]={};
593 threshold=0;
594 };
595 class Action
596 {
597 function="switchAction";
598 parameters[]={1};
599 thresholds[]={};
600 };
601 };
602 };
603 };
604 class checkWait
605 {
606 name="checkWait";
607 class Init
608 {
609 function="nothing";
610 parameters[]={};
611 thresholds[]={};
612 };
613 class Links
614 {
615 class WaitCompleted
616 {
617 priority=1;
618 to="SetTimer";
619 class Condition
620 {
621 function="waitCompleted";
622 parameters[]={};
623 threshold=0;
624 };
625 class Action
626 {
627 function="switchAction";
628 parameters[]={0};
629 thresholds[]={};
630 };
631 };
632 class Always
633 {
634 priority=0;
635 to="SetTimer3";
636 class Condition
637 {
638 function="true";
639 parameters[]={};
640 threshold=0;
641 };
642 class Action
643 {
644 function="nothing";
645 parameters[]={};
646 thresholds[]={};
647 };
648 };
649 };
650 };
651 class SetTimer
652 {
653 name="SetTimer";
654 class Init
655 {
656 function="setTimer";
657 parameters[]={10,25};
658 thresholds[]={};
659 };
660 class Links
661 {
662 class Always
663 {
664 priority=0;
665 to="Move";
666 class Condition
667 {
668 function="true";
669 parameters[]={};
670 threshold=0;
671 };
672 class Action
673 {
674 function="nothing";
675 parameters[]={};
676 thresholds[]={};
677 };
678 };
679 };
680 };
681 class Land
682 {
683 name="Land";
684 class Init
685 {
686 function="Land";
687 parameters[]={};
688 thresholds[]={};
689 };
690 class Links
691 {
692 class Always
693 {
694 priority=0;
695 to="Wait";
696 class Condition
697 {
698 function="true";
699 parameters[]={};
700 threshold=0;
701 };
702 class Action
703 {
704 function="nothing";
705 parameters[]={};
706 thresholds[]={};
707 };
708 };
709 };
710 };
711 class Wait
712 {
713 name="Wait";
714 class Init
715 {
716 function="wait";
717 parameters[]={3,10};
718 thresholds[]={};
719 };
720 class Links
721 {
722 class Always
723 {
724 priority=0;
725 to="SetTimer3";
726 class Condition
727 {
728 function="true";
729 parameters[]={};
730 threshold=0;
731 };
732 class Action
733 {
734 function="nothing";
735 parameters[]={};
736 thresholds[]={};
737 };
738 };
739 };
740 };
741 class Move
742 {
743 name="Move";
744 class Init
745 {
746 function="randomMove";
747 parameters[]={3};
748 thresholds[]={};
749 };
750 class Links
751 {
752 class MoveCompleted
753 {
754 priority=1;
755 to="Continue";
756 class Condition
757 {
758 function="moveCompleted";
759 parameters[]={};
760 threshold=0;
761 };
762 class Action
763 {
764 function="nothing";
765 parameters[]={};
766 thresholds[]={};
767 };
768 };
769 class TimeElapsed
770 {
771 priority=0;
772 to="SetTimer2";
773 class Condition
774 {
775 function="timeElapsed";
776 parameters[]={};
777 threshold=0;
778 };
779 class Action
780 {
781 function="nothing";
782 parameters[]={};
783 thresholds[]={};
784 };
785 };
786 };
787 };
788 class SetTimer2
789 {
790 name="SetTimer2";
791 class Init
792 {
793 function="setTimer";
794 parameters[]={3,6};
795 thresholds[]={};
796 };
797 class Links
798 {
799 class Always
800 {
801 priority=0;
802 to="MoveLand";
803 class Condition
804 {
805 function="true";
806 parameters[]={};
807 threshold=0;
808 };
809 class Action
810 {
811 function="nothing";
812 parameters[]={};
813 thresholds[]={};
814 };
815 };
816 };
817 };
818 class Continue
819 {
820 name="Continue";
821 class Init
822 {
823 function="nothing";
824 parameters[]={};
825 thresholds[]={};
826 };
827 class Links
828 {
829 class Always
830 {
831 priority=0;
832 to="Move";
833 class Condition
834 {
835 function="true";
836 parameters[]={};
837 threshold=0;
838 };
839 class Action
840 {
841 function="nothing";
842 parameters[]={};
843 thresholds[]={};
844 };
845 };
846 };
847 };
848 };
849 initState="Init";
850 finalStates[]={};
851 };
852 class HoneyBee
853 {
854 class States
855 {
856 class ShortMove
857 {
858 name="ShortMove";
859 class Init
860 {
861 function="randomMove";
862 parameters[]={0.2};
863 thresholds[]={};
864 };
865 class Links
866 {
867 class MoveCompleted
868 {
869 priority=1;
870 to="SetRandom";
871 class Condition
872 {
873 function="moveCompleted";
874 parameters[]={};
875 threshold=0;
876 };
877 class Action
878 {
879 function="nothing";
880 parameters[]={};
881 thresholds[]={};
882 };
883 };
884 class TimeElapsed
885 {
886 priority=0;
887 to="SetRandom";
888 class Condition
889 {
890 function="timeElapsed";
891 parameters[]={};
892 threshold=0;
893 };
894 class Action
895 {
896 function="nothing";
897 parameters[]={};
898 thresholds[]={};
899 };
900 };
901 };
902 };
903 class Break
904 {
905 name="Break";
906 class Init
907 {
908 function="break";
909 parameters[]={50};
910 thresholds[]={};
911 };
912 class Links
913 {
914 class Always
915 {
916 priority=0;
917 to="SetTimer";
918 class Condition
919 {
920 function="true";
921 parameters[]={};
922 threshold=0;
923 };
924 class Action
925 {
926 function="nothing";
927 parameters[]={};
928 thresholds[]={};
929 };
930 };
931 };
932 };
933 class Init
934 {
935 name="Init";
936 class Init
937 {
938 function="setNoBackwards";
939 parameters[]={0};
940 thresholds[]=
941 {
942 {0,0.5,0.5}
943 };
944 };
945 class Links
946 {
947 class Always
948 {
949 priority=0;
950 to="SetTimerRandom";
951 class Condition
952 {
953 function="true";
954 parameters[]={};
955 threshold=0;
956 };
957 class Action
958 {
959 function="nothing";
960 parameters[]={};
961 thresholds[]={};
962 };
963 };
964 };
965 };
966 class SetTimerRandom
967 {
968 name="SetTimerRandom";
969 class Init
970 {
971 function="setTimer";
972 parameters[]={0.5,2};
973 thresholds[]={};
974 };
975 class Links
976 {
977 class Always
978 {
979 priority=0;
980 to="SetRandom_1";
981 class Condition
982 {
983 function="true";
984 parameters[]={};
985 threshold=0;
986 };
987 class Action
988 {
989 function="nothing";
990 parameters[]={};
991 thresholds[]={};
992 };
993 };
994 };
995 };
996 class SetTimer
997 {
998 name="SetTimer";
999 class Init
1000 {
1001 function="setTimer";
1002 parameters[]={0.1,0.30000001};
1003 thresholds[]={};
1004 };
1005 class Links
1006 {
1007 class TimeElapsed
1008 {
1009 priority=0;
1010 to="SetTimerRandom";
1011 class Condition
1012 {
1013 function="timeElapsed";
1014 parameters[]={};
1015 threshold=0;
1016 };
1017 class Action
1018 {
1019 function="nothing";
1020 parameters[]={};
1021 thresholds[]={};
1022 };
1023 };
1024 };
1025 };
1026 class SetRandom
1027 {
1028 name="SetRandom";
1029 class Init
1030 {
1031 function="nothing";
1032 parameters[]={};
1033 thresholds[]=
1034 {
1035 {1,0,1}
1036 };
1037 };
1038 class Links
1039 {
1040 class constProbability
1041 {
1042 priority=1;
1043 to="SetRandom_1";
1044 class Condition
1045 {
1046 function="const";
1047 parameters[]={0.5};
1048 threshold=1;
1049 };
1050 class Action
1051 {
1052 function="nothing";
1053 parameters[]={};
1054 thresholds[]={};
1055 };
1056 };
1057 class Always
1058 {
1059 priority=0;
1060 to="Break";
1061 class Condition
1062 {
1063 function="true";
1064 parameters[]={};
1065 threshold=0;
1066 };
1067 class Action
1068 {
1069 function="nothing";
1070 parameters[]={};
1071 thresholds[]={};
1072 };
1073 };
1074 };
1075 };
1076 class SetRandom_1
1077 {
1078 name="SetRandom_1";
1079 class Init
1080 {
1081 function="nothing";
1082 parameters[]={};
1083 thresholds[]=
1084 {
1085 {1,0,1}
1086 };
1087 };
1088 class Links
1089 {
1090 class constProbability
1091 {
1092 priority=1;
1093 to="LongMove";
1094 class Condition
1095 {
1096 function="const";
1097 parameters[]={0.1};
1098 threshold=1;
1099 };
1100 class Action
1101 {
1102 function="nothing";
1103 parameters[]={};
1104 thresholds[]={};
1105 };
1106 };
1107 class Always
1108 {
1109 priority=0;
1110 to="ShortMove";
1111 class Condition
1112 {
1113 function="true";
1114 parameters[]={};
1115 threshold=0;
1116 };
1117 class Action
1118 {
1119 function="nothing";
1120 parameters[]={};
1121 thresholds[]={};
1122 };
1123 };
1124 };
1125 };
1126 class LongMove
1127 {
1128 name="LongMove";
1129 class Init
1130 {
1131 function="randomMove";
1132 parameters[]={1.5};
1133 thresholds[]={};
1134 };
1135 class Links
1136 {
1137 class MoveCompleted
1138 {
1139 priority=1;
1140 to="SetRandom";
1141 class Condition
1142 {
1143 function="moveCompleted";
1144 parameters[]={};
1145 threshold=0;
1146 };
1147 class Action
1148 {
1149 function="nothing";
1150 parameters[]={};
1151 thresholds[]={};
1152 };
1153 };
1154 class TimeElapsed
1155 {
1156 priority=0;
1157 to="SetRandom";
1158 class Condition
1159 {
1160 function="timeElapsed";
1161 parameters[]={};
1162 threshold=0;
1163 };
1164 class Action
1165 {
1166 function="nothing";
1167 parameters[]={};
1168 thresholds[]={};
1169 };
1170 };
1171 };
1172 };
1173 };
1174 initState="Init";
1175 finalStates[]={};
1176 };
1177};