Compare commits

..

8 Commits

Author SHA1 Message Date
38d03353b3 Merge branch 'develop' into Campaign-Updates-Nov-13-2024 2024-12-23 00:09:22 -06:00
ca478ab08d Merge pull request 'ingame_chat_options' (#59) from ingame_chat_options into develop
All checks were successful
Generate testing snapshot / Create testing release (push) Successful in 2m55s
Reviewed-on: #59
2024-12-23 00:07:53 -06:00
f6703e7dd4 Merge branch 'develop' into ingame_chat_options 2024-12-23 00:07:10 -06:00
hizumi
ea64f8e63c Update fn_logRespawnButtonUse.sqf
All checks were successful
Generate testing snapshot / Create testing release (push) Successful in 3m6s
add triagelevel status to respawn message
2024-12-23 00:01:43 -06:00
3308cdc5ba Update defines/DisallowedEquipment.hpp
Added Restricted Item Check for MRH Satcom / Satellite
2024-11-16 17:42:14 -06:00
a35c39721e Update defines/BattalionInfo.hpp
Commented out unused Units
Updated Command Callsigns
2024-11-13 19:53:11 -06:00
dba0a0e57c Update framework/client/functions/fn_bindEventHandlers.sqf
Added Chat Handler Mission Space Variable Checks
2024-08-11 12:01:01 -05:00
888a688f56 Update framework/common/functions/fn_addCBASettings.sqf
Added CBA Settings for Chat Handler as well as Defaults
2024-08-11 11:57:29 -05:00
5 changed files with 141 additions and 29 deletions

View File

@@ -4,11 +4,11 @@
// Define the callsigns for the Battalion // Define the callsigns for the Battalion
#define COMMAND_CALLSIGN STORMSURGE #define COMMAND_CALLSIGN POWERLINE
#define RRC_CALLSIGN TIGER //#define RRC_CALLSIGN TIGER
#define MEDIC_CALLSIGN LIFELINE //#define MEDIC_CALLSIGN LIFELINE
#define ALPHA_CALLSIGN SAVAGE #define ALPHA_CALLSIGN NOMAD
#define ECHO_CALLSIGN NIGHTFALL #define ECHO_CALLSIGN WARLORD
#define WPN_CALLSIGN BLACKFOOT #define WPN_CALLSIGN BLACKFOOT
// Define the frequencies for the Battalion // Define the frequencies for the Battalion
@@ -73,26 +73,26 @@ class BattalionInfo {
}; };
class RRC { // WIP // class RRC { // WIP
callsign = RRC_CALLSIGN; // callsign = RRC_CALLSIGN;
shortDescription = "RRC"; // shortDescription = "RRC";
textColor = LVL2_TEXT_COLOR; // textColor = LVL2_TEXT_COLOR;
frequencies[] = { // frequencies[] = {
{"Contact", {}, {FREQ_BATTALION}}, // {"Contact", {}, {FREQ_BATTALION}},
{"Actual", {}, {FREQ_BATTALION, FREQ_ECHO_FLIGHT_CAS}} // {"Actual", {}, {FREQ_BATTALION, FREQ_ECHO_FLIGHT_CAS}}
}; // };
}; // };
class BattalionMedical { // WIP // class BattalionMedical { // WIP
callsign = MEDIC_CALLSIGN; // callsign = MEDIC_CALLSIGN;
shortDescription = "Battalion Medical"; // shortDescription = "Battalion Medical";
textColor = LVL2_TEXT_COLOR; // textColor = LVL2_TEXT_COLOR;
frequencies[] = { // frequencies[] = {
{"Contact", {FREQ_ALL_MEDICAL_SR}, {FREQ_BATTALION}}, // {"Contact", {FREQ_ALL_MEDICAL_SR}, {FREQ_BATTALION}},
{"Actual", {FREQ_BATTALION_MEDICAL_INTERCOM, FREQ_ALL_MEDICAL_SR}, {FREQ_BATTALION, FREQ_ECHO_FLIGHT_LOGISTICS}}, // {"Actual", {FREQ_BATTALION_MEDICAL_INTERCOM, FREQ_ALL_MEDICAL_SR}, {FREQ_BATTALION, FREQ_ECHO_FLIGHT_LOGISTICS}},
{"General", {FREQ_BATTALION_MEDICAL_INTERCOM, FREQ_ALL_MEDICAL_SR}, {}} // {"General", {FREQ_BATTALION_MEDICAL_INTERCOM, FREQ_ALL_MEDICAL_SR}, {}}
}; // };
}; // };
class WeaponsSquad { // WIP class WeaponsSquad { // WIP
callsign = WPN_CALLSIGN; callsign = WPN_CALLSIGN;

View File

@@ -141,7 +141,9 @@ class DisallowedEquipment {
"Tier1_ATACR18_Geissele_Docter_Black", //Nightforce Series Optic "Tier1_ATACR18_Geissele_Docter_Black", //Nightforce Series Optic
"Tier1_ATACR18_Geissele_Docter_Desert_Vanilla", //Nightforce Series Optic "Tier1_ATACR18_Geissele_Docter_Desert_Vanilla", //Nightforce Series Optic
"Tier1_ATACR18_Geissele_Docter_Desert", //Nightforce Series Optic "Tier1_ATACR18_Geissele_Docter_Desert", //Nightforce Series Optic
"sps_black_hornet_01_Static_F" // Black Hornet Drone Mod "sps_black_hornet_01_Static_F", // Black Hornet Drone Mod
"MRH_TacticalDisplay", //MRH Satellite Display Tablet
"MRH_FoldedSatcomAntenna" //MRH Satellite Satcom
}; };
}; };

View File

@@ -15,7 +15,13 @@ addMissionEventHandler ["HandleChatMessage",
{ {
params ["_channel", "_owner", "_from", "_text", "_person", "_name", "_strID", "_forcedDisplay", "_isPlayerMessage", "_sentenceType", "_chatMessageType"]; params ["_channel", "_owner", "_from", "_text", "_person", "_name", "_strID", "_forcedDisplay", "_isPlayerMessage", "_sentenceType", "_chatMessageType"];
if ( missionNamespace getVariable ["milsim_globalChat", false] ) exitWith{ false };
if ( missionNamespace getVariable ["milsim_sideChat", false] ) exitWith{ false }; if ( missionNamespace getVariable ["milsim_sideChat", false] ) exitWith{ false };
if ( missionNamespace getVariable ["milsim_commandChat", false] ) exitWith{ false };
if ( missionNamespace getVariable ["milsim_groupChat", false] ) exitWith{ false };
if ( missionNamespace getVariable ["milsim_vehicleChat", false] ) exitWith{ false };
if ( missionNamespace getVariable ["milsim_directChat", false] ) exitWith{ false };
if (_channel != 1) exitWith { false }; if (_channel != 1) exitWith { false };

View File

@@ -8,6 +8,7 @@ if ( !hasInterface ) exitWith {};
if (not (local _unit)) exitWith {}; if (not (local _unit)) exitWith {};
private _causeOfDeath = _unit getVariable ["ace_medical_causeOfDeath", "#scripted"]; private _causeOfDeath = _unit getVariable ["ace_medical_causeOfDeath", "#scripted"];
private _triageLevel = _unit call ace_medical_treatment_fnc_getTriageStatus;
if (_causeOfDeath != "respawn_button") exitWith {}; if (_causeOfDeath != "respawn_button") exitWith {};
private _timeWentUnconscious = _unit getVariable [QGVARMAIN(lastTimeKnockedOut), -1]; private _timeWentUnconscious = _unit getVariable [QGVARMAIN(lastTimeKnockedOut), -1];
@@ -15,13 +16,13 @@ if ( !hasInterface ) exitWith {};
if (_timeWentUnconscious isEqualTo -1) exitWith {}; if (_timeWentUnconscious isEqualTo -1) exitWith {};
_durationSpentUnconscious = diag_tickTime - _timeWentUnconscious; _durationSpentUnconscious = diag_tickTime - _timeWentUnconscious;
[ [
LEVEL_INFO, LEVEL_INFO,
QUOTE(COMPONENT), QUOTE(COMPONENT),
"RESPAWNED WHILE UNCONSCIOUS", "RESPAWNED WHILE UNCONSCIOUS",
[_unit, [ [_unit, [
["durationSpentUnconscious", _durationSpentUnconscious] ["durationSpentUnconscious", _durationSpentUnconscious],
["triageLevel", _triageLevel#1]
]] call EFUNC(common,addPlayerInfoToArray) ]] call EFUNC(common,addPlayerInfoToArray)
] remoteExec [QEFUNC(common,log), 2]; ] remoteExec [QEFUNC(common,log), 2];
// format["%1 was unconscious then clicked the respawn button", name _unit] remoteExec["systemChat", 0]; // format["%1 was unconscious then clicked the respawn button", name _unit] remoteExec["systemChat", 0];

View File

@@ -1,15 +1,33 @@
#include "..\script_component.hpp" #include "..\script_component.hpp"
//---------------------
// Global Chat
//---------------------
[
QGVARMAIN(globalChat),
"CHECKBOX",
"Global Chat Text Enabled",
[QUOTE(SETTINGS_GROUP_NAME), QUOTE(COMPONENT_BEAUTIFIED)],
true, // default value
true, // requires restart
{
params ["_value"];
[
QGVARMAIN(globalChat),
_value
] call EFUNC(common,logSettingChanged);
}
] call CBA_fnc_addSetting;
//--------------------- //---------------------
// Side Chat // Side Chat
//--------------------- //---------------------
[ [
QGVARMAIN(sideChat), QGVARMAIN(sideChat),
"CHECKBOX", "CHECKBOX",
"Side Chat Text Enabled", "Side Chat Text Enabled",
[QUOTE(SETTINGS_GROUP_NAME), QUOTE(COMPONENT_BEAUTIFIED)], [QUOTE(SETTINGS_GROUP_NAME), QUOTE(COMPONENT_BEAUTIFIED)],
false, // default value true, // default value
true, // requires restart true, // requires restart
{ {
params ["_value"]; params ["_value"];
@@ -20,7 +38,92 @@
} }
] call CBA_fnc_addSetting; ] call CBA_fnc_addSetting;
//---------------------
// Command Chat
//---------------------
[
QGVARMAIN(commandChat),
"CHECKBOX",
"Command Chat Text Enabled",
[QUOTE(SETTINGS_GROUP_NAME), QUOTE(COMPONENT_BEAUTIFIED)],
true, // default value
true, // requires restart
{
params ["_value"];
[
QGVARMAIN(commandChat),
_value
] call EFUNC(common,logSettingChanged);
}
] call CBA_fnc_addSetting;
//---------------------
// Group Chat
//---------------------
[
QGVARMAIN(groupChat),
"CHECKBOX",
"Group Chat Text Enabled",
[QUOTE(SETTINGS_GROUP_NAME), QUOTE(COMPONENT_BEAUTIFIED)],
true, // default value
true, // requires restart
{
params ["_value"];
[
QGVARMAIN(groupChat),
_value
] call EFUNC(common,logSettingChanged);
}
] call CBA_fnc_addSetting;
//---------------------
// Vehicle Chat
//---------------------
[
QGVARMAIN(vehicleChat),
"CHECKBOX",
"Vehicle Chat Text Enabled",
[QUOTE(SETTINGS_GROUP_NAME), QUOTE(COMPONENT_BEAUTIFIED)],
true, // default value
true, // requires restart
{
params ["_value"];
[
QGVARMAIN(vehicleChat),
_value
] call EFUNC(common,logSettingChanged);
}
] call CBA_fnc_addSetting;
//---------------------
// Vehicle Chat
//---------------------
[
QGVARMAIN(directChat),
"CHECKBOX",
"Direct Chat Text Enabled",
[QUOTE(SETTINGS_GROUP_NAME), QUOTE(COMPONENT_BEAUTIFIED)],
true, // default value
true, // requires restart
{
params ["_value"];
[
QGVARMAIN(directChat),
_value
] call EFUNC(common,logSettingChanged);
}
] call CBA_fnc_addSetting;
[QGVARMAIN(globalChat), false] call CBA_settings_fnc_set;
[QGVARMAIN(sideChat), false] call CBA_settings_fnc_set; [QGVARMAIN(sideChat), false] call CBA_settings_fnc_set;
[QGVARMAIN(commandChat), false] call CBA_settings_fnc_set;
[QGVARMAIN(groupChat), false] call CBA_settings_fnc_set;
[QGVARMAIN(vehicleChat), false] call CBA_settings_fnc_set;
[QGVARMAIN(directChat), false] call CBA_settings_fnc_set;
diag_log text "[MILSIM] (settings) Custom CBA settings initialized"; diag_log text "[MILSIM] (settings) Custom CBA settings initialized";