Skip to content

Commit

Permalink
Update KPLIB_staticsConfigs.sqf with new types
Browse files Browse the repository at this point in the history
  • Loading branch information
PiG13BR authored Nov 30, 2024
1 parent e3b0e6a commit 036b11a
Showing 1 changed file with 23 additions and 22 deletions.
45 changes: 23 additions & 22 deletions Missionframework/KPLIB_staticsConfigs.sqf
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/*
- Place here the structures that you want the enemy static weapons to spawn. For that, you need:
The classname of the building [STRING], followed by an bigger array;
The type of the static weapon ("HMG", "AT", "AA") [ARRAY], related to ones in the presets. Can be more than one. Recommended: one type per position;
The type of the static weapon ("RAISED-HMG", "LOWERED-HMG", "RAISED-GMG", "LOWERED-GMG", "AT", "AA") [ARRAY], related to ones in the presets. Can be more than one. Recommended: one type per position;
The PositionRelative coordinates [ARRAY] where the static weapon will spawn, relative to the structure;
The direction of the weapon [NUMBER] (it will be relative to the object).
- Example:
- [STRING, [[[STRING], ARRAY, NUMBER]]]
- ["static_weapon_classname", [[["type"], [relative position], relative direction], [["HMG", "AT", "AA"], [x,y,z], (+/- dir)], [["HMG"], [-1.14307,-1.2998,-0.55952], (180)]]]
- ["building_classname", [[["type"], [relative position], relative direction], [["RAISED-HMG", "AT", "AA"], [x,y,z], (+/- dir)], [["RAISED-HMG"], [-1.14307,-1.2998,-0.55952], (180)]]]
- To get positionRelative, stand your character where you want to static weapon to spawn and run the code below in debug, it will return a [x,y,z] array.
(varNameOfTheObject or cursorObject) worldToModel ASLToAGL getPosASL player
- Using modded static weapons may require small adjustments in relative positions.
Expand All @@ -18,28 +18,29 @@

KPLIB_staticsConfigs = [
// Vanilla
["Land_Cargo_Patrol_V1_F", [[["HMG"], [-1.14307,-1.2998,-0.55952], (180)]]],
["Land_Cargo_Patrol_V2_F", [[["HMG"], [-1,-1.3,-0.5], (180)]]],
["Land_Cargo_Patrol_V3_F", [[["HMG"], [-1,-1.3,-0.5], (180)]]],
["Land_Cargo_HQ_V1_F", [[["AA"], [1.54492,0.740723,-0.747444], (0)], [["HMG"], [-1.57813,-4.04639,-0.747444], (180)], [["HMG"], [-2.64551,3.2,-0.747444], (- 45)], [["HMG"], [5.88232,1.84473,-0.747444], (- 45)]]],
["Land_Cargo_HQ_V2_F", [[["AA"], [1.54492,0.740723,-0.747444], (0)], [["HMG"], [-1.57813,-4.04639,-0.747444], (180)], [["HMG"], [-2.64551,3.2,-0.747444], (- 45)], [["HMG"], [5.88232,1.84473,-0.747444], (- 45)]]],
["Land_Cargo_HQ_V3_F", [[["AA"], [1.54492,0.740723,-0.747444], (0)], [["HMG"], [-1.57813,-4.04639,-0.747444], (180)], [["HMG"], [-2.64551,3.2,-0.747444], (- 45)], [["HMG"], [5.88232,1.84473,-0.747444], (- 45)]]],
["Land_Cargo_Tower_V1_F", [[["HMG"], [4.61279,3.98389,5.00471], (45)], [["HMG"], [4.8584,-2.90234,5.00471], (140)], [["HMG"], [-4.18359,-3.16211,5.00471], (- 90)], [["HMG"], [-3.07178,4.40283,5.00471], (0)]]],
["Land_Cargo_Tower_V2_F", [[["HMG"], [4.61279,3.98389,5.00471], (45)], [["HMG"], [4.8584,-2.90234,5.00471], (140)], [["HMG"], [-4.18359,-3.16211,5.00471], (- 90)], [["HMG"], [-3.07178,4.40283,5.00471], (0)]]],
["Land_Cargo_Tower_V3_F", [[["HMG"], [4.61279,3.98389,5.00471], (45)], [["HMG"], [4.8584,-2.90234,5.00471], (140)], [["HMG"], [-4.18359,-3.16211,5.00471], (- 90)], [["HMG"], [-3.07178,4.40283,5.00471], (0)]]],
["Land_Cargo_Tower_V1_No1_F", [[["HMG"], [4.61279,3.98389,5.00471], (45)], [["HMG"], [4.8584,-2.90234,5.00471], (140)], [["HMG"], [-4.18359,-3.16211,5.00471], (- 90)], [["HMG"], [-3.07178,4.40283,5.00471], (0)]]],
["Land_Cargo_Tower_V1_No2_F", [[["HMG"], [4.61279,3.98389,5.00471], (45)], [["HMG"], [4.8584,-2.90234,5.00471], (140)], [["HMG"], [-4.18359,-3.16211,5.00471], (- 90)], [["HMG"], [-3.07178,4.40283,5.00471], (0)]]],
["Land_Cargo_Tower_V1_No3_F", [[["HMG"], [4.61279,3.98389,5.00471], (45)], [["HMG"], [4.8584,-2.90234,5.00471], (140)], [["HMG"], [-4.18359,-3.16211,5.00471], (- 90)], [["HMG"], [-3.07178,4.40283,5.00471], (0)]]],
["Land_Cargo_Tower_V1_No4_F", [[["HMG"], [4.61279,3.98389,5.00471], (45)], [["HMG"], [4.8584,-2.90234,5.00471], (140)], [["HMG"], [-4.18359,-3.16211,5.00471], (- 90)], [["HMG"], [-3.07178,4.40283,5.00471], (0)]]],
["Land_Cargo_Tower_V1_No5_F", [[["HMG"], [4.61279,3.98389,5.00471], (45)], [["HMG"], [4.8584,-2.90234,5.00471], (140)], [["HMG"], [-4.18359,-3.16211,5.00471], (- 90)], [["HMG"], [-3.07178,4.40283,5.00471], (0)]]],
["Land_Cargo_Tower_V1_No6_F", [[["HMG"], [4.61279,3.98389,5.00471], (45)], [["HMG"], [4.8584,-2.90234,5.00471], (140)], [["HMG"], [-4.18359,-3.16211,5.00471], (- 90)], [["HMG"], [-3.07178,4.40283,5.00471], (0)]]],
["Land_Cargo_Tower_V1_No7_F", [[["HMG"], [4.61279,3.98389,5.00471], (45)], [["HMG"], [4.8584,-2.90234,5.00471], (140)], [["HMG"], [-4.18359,-3.16211,5.00471], (- 90)], [["HMG"], [-3.07178,4.40283,5.00471], (0)]]],
["Land_Cargo_Patrol_V1_F", [[["RAISED-HMG"], [-1.14307,-1.2998,-0.55952], (180)]]],
["Land_Cargo_Patrol_V2_F", [[["RAISED-HMG"], [-1,-1.3,-0.5], (180)]]],
["Land_Cargo_Patrol_V3_F", [[["RAISED-HMG"], [-1,-1.3,-0.5], (180)]]],
["Land_Cargo_HQ_V1_F", [[["AA"], [1.54492,0.740723,-0.747444], (0)], [["RAISED-HMG"], [-1.57813,-4.04639,-0.747444], (180)], [["RAISED-HMG"], [-2.64551,3.2,-0.747444], (- 45)], [["RAISED-HMG"], [5.88232,1.84473,-0.747444], (- 45)]]],
["Land_Cargo_HQ_V2_F", [[["AA"], [1.54492,0.740723,-0.747444], (0)], [["RAISED-HMG"], [-1.57813,-4.04639,-0.747444], (180)], [["RAISED-HMG"], [-2.64551,3.2,-0.747444], (- 45)], [["RAISED-HMG"], [5.88232,1.84473,-0.747444], (- 45)]]],
["Land_Cargo_HQ_V3_F", [[["AA"], [1.54492,0.740723,-0.747444], (0)], [["RAISED-HMG"], [-1.57813,-4.04639,-0.747444], (180)], [["RAISED-HMG"], [-2.64551,3.2,-0.747444], (- 45)], [["RAISED-HMG"], [5.88232,1.84473,-0.747444], (- 45)]]],
["Land_Cargo_Tower_V1_F", [[["RAISED-HMG"], [4.61279,3.98389,5.00471], (45)], [["RAISED-HMG"], [4.8584,-2.90234,5.00471], (140)], [["RAISED-HMG"], [-4.18359,-3.16211,5.00471], (- 90)], [["RAISED-HMG"], [-3.07178,4.40283,5.00471], (0)]]],
["Land_Cargo_Tower_V2_F", [[["RAISED-HMG"], [4.61279,3.98389,5.00471], (45)], [["RAISED-HMG"], [4.8584,-2.90234,5.00471], (140)], [["RAISED-HMG"], [-4.18359,-3.16211,5.00471], (- 90)], [["RAISED-HMG"], [-3.07178,4.40283,5.00471], (0)]]],
["Land_Cargo_Tower_V3_F", [[["RAISED-HMG"], [4.61279,3.98389,5.00471], (45)], [["RAISED-HMG"], [4.8584,-2.90234,5.00471], (140)], [["RAISED-HMG"], [-4.18359,-3.16211,5.00471], (- 90)], [["RAISED-HMG"], [-3.07178,4.40283,5.00471], (0)]]],
["Land_Cargo_Tower_V1_No1_F", [[["RAISED-HMG"], [4.61279,3.98389,5.00471], (45)], [["RAISED-HMG"], [4.8584,-2.90234,5.00471], (140)], [["RAISED-HMG"], [-4.18359,-3.16211,5.00471], (- 90)], [["RAISED-HMG"], [-3.07178,4.40283,5.00471], (0)]]],
["Land_Cargo_Tower_V1_No2_F", [[["RAISED-HMG"], [4.61279,3.98389,5.00471], (45)], [["RAISED-HMG"], [4.8584,-2.90234,5.00471], (140)], [["RAISED-HMG"], [-4.18359,-3.16211,5.00471], (- 90)], [["RAISED-HMG"], [-3.07178,4.40283,5.00471], (0)]]],
["Land_Cargo_Tower_V1_No3_F", [[["RAISED-HMG"], [4.61279,3.98389,5.00471], (45)], [["RAISED-HMG"], [4.8584,-2.90234,5.00471], (140)], [["RAISED-HMG"], [-4.18359,-3.16211,5.00471], (- 90)], [["RAISED-HMG"], [-3.07178,4.40283,5.00471], (0)]]],
["Land_Cargo_Tower_V1_No4_F", [[["RAISED-HMG"], [4.61279,3.98389,5.00471], (45)], [["RAISED-HMG"], [4.8584,-2.90234,5.00471], (140)], [["RAISED-HMG"], [-4.18359,-3.16211,5.00471], (- 90)], [["RAISED-HMG"], [-3.07178,4.40283,5.00471], (0)]]],
["Land_Cargo_Tower_V1_No5_F", [[["RAISED-HMG"], [4.61279,3.98389,5.00471], (45)], [["RAISED-HMG"], [4.8584,-2.90234,5.00471], (140)], [["RAISED-HMG"], [-4.18359,-3.16211,5.00471], (- 90)], [["RAISED-HMG"], [-3.07178,4.40283,5.00471], (0)]]],
["Land_Cargo_Tower_V1_No6_F", [[["RAISED-HMG"], [4.61279,3.98389,5.00471], (45)], [["RAISED-HMG"], [4.8584,-2.90234,5.00471], (140)], [["RAISED-HMG"], [-4.18359,-3.16211,5.00471], (- 90)], [["RAISED-HMG"], [-3.07178,4.40283,5.00471], (0)]]],
["Land_Cargo_Tower_V1_No7_F", [[["RAISED-HMG"], [4.61279,3.98389,5.00471], (45)], [["RAISED-HMG"], [4.8584,-2.90234,5.00471], (140)], [["RAISED-HMG"], [-4.18359,-3.16211,5.00471], (- 90)], [["RAISED-HMG"], [-3.07178,4.40283,5.00471], (0)]]],
["Land_BagFence_Round_F", [[["AT"], [0,1.5,0], (180)]]],
["Land_BagFence_Long_F", [[["AA"], [0,1.5,0], (180)]]],
["Land_HBarrierTower_F", [[["HMG"], [0,-1.2793,0.0967188], (180)]]],
["Land_BagBunker_Small_F", [[["HMG"], [0,0,-0.9], (180)]]],
["Land_BagBunker_Large_F", [[["HMG"], [0.0717773,-3.24316,-0.709913], (180)], [["HMG"], [2.7627,-1.0293,-0.709913], (90)]]],
["Land_BagBunker_Tower_F", [[["AA", "AT"], [0.163086,1.16992,0.571415], (0)], [["HMG"], [-0.599121,-1.44092,0.571415], (180)]]]
["Land_HBarrierTower_F", [[["RAISED-HMG"], [0,-1.2793,0.0967188], (180)]]],
["Land_BagBunker_Small_F", [[["RAISED-HMG"], [0,0,-0.9], (180)]]],
["Land_BagBunker_Large_F", [[["RAISED-HMG"], [0.0717773,-3.24316,-0.709913], (180)], [["RAISED-HMG"], [2.7627,-1.0293,-0.709913], (90)]]],
["Land_BagBunker_Tower_F", [[["AA", "AT"], [0.163086,1.16992,0.571415], (0)], [["RAISED-HMG", "RAISED-GMG"], [-0.599121,-1.44092,0.571415], (180)]]],
["Land_ClutterCutter_medium_F", [[["LOWERED-HMG", "LOWERED-GMG"], [0,0,0], (0)]]]
];

KPLIB_staticConfigs_classes = KPLIB_staticsConfigs apply { _x select 0 };

0 comments on commit 036b11a

Please sign in to comment.