initial files

This commit is contained in:
Samuele Lorefice
2025-05-24 16:17:33 +02:00
commit 9e023649ac
477 changed files with 118566 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
class KPLIB_Tasks_Tutorial_Main {
title = $STR_TUTORIAL_TASK_MAIN_TITLE;
description = $STR_TUTORIAL_TASK_MAIN_DESC;
};
class KPLIB_Tasks_Tutorial_Fob {
title = $STR_TUTORIAL_TASK_FOB_TITLE;
description = $STR_TUTORIAL_TASK_FOB_DESC;
};
class KPLIB_Tasks_Tutorial_Fob_01a {
title = $STR_TUTORIAL_TASK_FOB_01A_TITLE;
description = $STR_TUTORIAL_TASK_FOB_01A_DESC;
};
class KPLIB_Tasks_Tutorial_Fob_01b {
title = $STR_TUTORIAL_TASK_FOB_01B_TITLE;
description = $STR_TUTORIAL_TASK_FOB_01B_DESC;
};
class KPLIB_Tasks_Tutorial_Fob_02 {
title = $STR_TUTORIAL_TASK_FOB_02_TITLE;
description = $STR_TUTORIAL_TASK_FOB_02_DESC;
};
class KPLIB_Tasks_Tutorial_Fob_03 {
title = $STR_TUTORIAL_TASK_FOB_03_TITLE;
description = $STR_TUTORIAL_TASK_FOB_03_DESC;
};
class KPLIB_Tasks_Tutorial_Sector {
title = $STR_TUTORIAL_TASK_SECTOR_TITLE;
description = $STR_TUTORIAL_TASK_SECTOR_DESC;
};
class KPLIB_Tasks_Tutorial_Sector_01 {
title = $STR_TUTORIAL_TASK_SECTOR_01_TITLE;
description = $STR_TUTORIAL_TASK_SECTOR_01_DESC;
};
class KPLIB_Tasks_Tutorial_Sector_02 {
title = $STR_TUTORIAL_TASK_SECTOR_02_TITLE;
description = $STR_TUTORIAL_TASK_SECTOR_02_DESC;
};
class KPLIB_Tasks_Tutorial_Sector_03 {
title = $STR_TUTORIAL_TASK_SECTOR_03_TITLE;
description = $STR_TUTORIAL_TASK_SECTOR_03_DESC;
};
class KPLIB_Tasks_Tutorial_Sector_04 {
title = $STR_TUTORIAL_TASK_SECTOR_04_TITLE;
description = $STR_TUTORIAL_TASK_SECTOR_04_DESC;
};
class KPLIB_Tasks_Tutorial_Sector_05 {
title = $STR_TUTORIAL_TASK_SECTOR_05_TITLE;
description = $STR_TUTORIAL_TASK_SECTOR_05_DESC;
};

View File

@@ -0,0 +1,43 @@
/*
File: fn_handleCrateStorageTask.sqf
Author: KP Liberation Dev Team - https://github.com/KillahPotatoes
Date: 2020-05-09
Last Update: 2020-05-09
License: MIT License - http://www.opensource.org/licenses/MIT
Description:
Handles the monitoring for the store crate tutorial task.
Parameter(s):
_taskId - Task ID of the task to handle [STRING, defaults to ""]
_obj - Object connected to the task [OBJECT, defaults to objNull]
Returns:
Function reached the end [BOOL]
*/
params [
["_taskId", "", [""]],
["_obj", objNull, [objNull]]
];
if (_taskId isEqualTo "" || isNull _obj) exitWith {["Invalid parameters given"] call BIS_fnc_error; false};
if (!canSuspend) exitWith {_this spawn KPLIB_fnc_handleCrateStorageTask};
[
allPlayers,
[_taskId, "KPLIB_Tasks_Tutorial_Fob_03"],
["", localize "STR_TUTORIAL_CRATE"],
[_obj, true],
"CREATED",
-1,
false,
"default",
true
] call BIS_fnc_taskCreate;
waitUntil {sleep 0.1; (toLower (typeOf (attachedTo _obj))) in KPLIB_storageBuildings};
[_taskId, "SUCCEEDED", false] call BIS_fnc_taskSetState;
true

View File

@@ -0,0 +1,43 @@
/*
File: fn_handleHealCivTask.sqf
Author: KP Liberation Dev Team - https://github.com/KillahPotatoes
Date: 2020-05-09
Last Update: 2020-05-09
License: MIT License - http://www.opensource.org/licenses/MIT
Description:
Handles the monitoring for the heal civilian tutorial task.
Parameter(s):
_taskId - Task ID of the task to handle [STRING, defaults to ""]
_obj - Object connected to the task [OBJECT, defaults to objNull]
Returns:
Function reached the end [BOOL]
*/
params [
["_taskId", "", [""]],
["_obj", objNull, [objNull]]
];
if (_taskId isEqualTo "" || isNull _obj) exitWith {["Invalid parameters given"] call BIS_fnc_error; false};
if (!canSuspend) exitWith {_this spawn KPLIB_fnc_handleHealCivTask};
[
allPlayers,
[_taskId, "KPLIB_Tasks_Tutorial_Sector_03"],
["", localize "STR_TUTORIAL_CIVILIAN"],
[_obj, true],
"CREATED",
-1,
false,
"heal",
true
] call BIS_fnc_taskCreate;
waitUntil {sleep 0.1; !(alive _obj && (damage _obj) > 0.4)};
[_taskId, "SUCCEEDED"] call BIS_fnc_taskSetState;
true

View File

@@ -0,0 +1,43 @@
/*
File: fn_handleTakePowTask.sqf
Author: KP Liberation Dev Team - https://github.com/KillahPotatoes
Date: 2020-05-09
Last Update: 2020-05-09
License: MIT License - http://www.opensource.org/licenses/MIT
Description:
Handles the monitoring for the capture POW tutorial task.
Parameter(s):
_taskId - Task ID of the task to handle [STRING, defaults to ""]
_obj - Object connected to the task [OBJECT, defaults to objNull]
Returns:
Function reached the end [BOOL]
*/
params [
["_taskId", "", [""]],
["_obj", objNull, [objNull]]
];
if (_taskId isEqualTo "" || isNull _obj) exitWith {["Invalid parameters given"] call BIS_fnc_error; false};
if (!canSuspend) exitWith {_this spawn KPLIB_fnc_handleTakePowTask};
[
allPlayers,
[_taskId, "KPLIB_Tasks_Tutorial_Sector_03"],
["", localize "STR_TUTORIAL_SOLDIER"],
[_obj, true],
"CREATED",
-1,
false,
"danger",
true
] call BIS_fnc_taskCreate;
waitUntil {sleep 0.1; !(alive _obj && captive _obj)};
[_taskId, "SUCCEEDED"] call BIS_fnc_taskSetState;
true

File diff suppressed because it is too large Load Diff