
This commit fixes an issue where interaction conditions were incorrectly using `companyGenerals` instead of `companyShareholders`. This change ensures that the correct group of players can interact with company assets like the CPOF, garage, and locker. The following changes were made: * Updated `fnc_initInteraction.sqf` to use `companyShareholders` in the interaction conditions for CPOF and garage access. * Updated `CfgVehicles.hpp` to use `companyShareholders` in the interaction conditions for company garage and locker access.
129 lines
5.4 KiB
C++
129 lines
5.4 KiB
C++
class CfgVehicles {
|
|
class Man;
|
|
class CAManBase: Man {
|
|
class ACE_MainActions {
|
|
class giveCash {
|
|
displayName = "Give Cash";
|
|
condition = "isPlayer cursorObject && (player distance cursorObject) <= 5";
|
|
exceptions[] = {};
|
|
statement = QUOTE([cursorObject] spawn EFUNC(money,giveCash));
|
|
// icon = "";
|
|
};
|
|
class addContact {
|
|
displayName = "Add Contact";
|
|
condition = "isPlayer cursorObject && (player distance cursorObject) <= 5";
|
|
exceptions[] = {};
|
|
statement = QUOTE([cursorObject] spawn EFUNC(phone,addContact));
|
|
// icon = "";
|
|
};
|
|
class openATM {
|
|
displayName = "Access ATM";
|
|
condition = "!(isNil {cursorObject getVariable 'isBank'}) && (player distance cursorObject) <= 5";
|
|
exceptions[] = {};
|
|
statement = QUOTE([cursorObject] spawn EFUNC(bank,openBank));
|
|
// icon = "";
|
|
};
|
|
class openCPOF {
|
|
displayName = "Access CPOF";
|
|
condition = "!(isNil {cursorObject getVariable 'isCPOF'}) && (player distance cursorObject) <= 5";
|
|
exceptions[] = {};
|
|
statement = QUOTE([cursorObject] spawn EFUNC(admin,openAdmin));
|
|
// icon = "";
|
|
};
|
|
class openGarage {
|
|
displayName = "Open Garage";
|
|
condition = "!(isNil {cursorObject getVariable 'isGarage'}) && (player distance cursorObject) <= 5 && FORGE_Team_Coord == 0";
|
|
exceptions[] = {};
|
|
statement = QUOTE([cursorObject] spawn EFUNC(garage,openGarage));
|
|
// icon = "";
|
|
};
|
|
// class openCompanyGarage {
|
|
// displayName = "Open Company Garage";
|
|
// condition = "!(isNil {cursorObject getVariable 'isGarage'}) && (player distance cursorObject) <= 5 && FORGE_Team_Coord == 1 && (getPlayerUID player) in companyShareholders";
|
|
// exceptions[] = {};
|
|
// statement = "[cursorObject] spawn forge_client_garage_fnc_openGarage";
|
|
// icon = "";
|
|
// };
|
|
class openVirtualGarage {
|
|
displayName = "Virtual Garage";
|
|
condition = "!(isNil {cursorObject getVariable 'isGarage'}) && (player distance cursorObject) <= 5 && FORGE_VA_Enable == 1 && FORGE_Team_Coord == 0";
|
|
exceptions[] = {};
|
|
statement = QUOTE([cursorObject] spawn EFUNC(arsenal,openGarage));
|
|
// icon = "";
|
|
};
|
|
// class openVirtualCompanyGarage {
|
|
// displayName = "Virtual Company Garage";
|
|
// condition = "!(isNil {cursorObject getVariable 'isGarage'}) && (player distance cursorObject) <= 5 && FORGE_VA_Enable == 1 && FORGE_Team_Coord == 1 && (getPlayerUID player) in companyShareholders";
|
|
// exceptions[] = {};
|
|
// statement = "[cursorObject] spawn forge_client_arsenal_fnc_openGarage";
|
|
// icon = "";
|
|
// };
|
|
class takeCash {
|
|
displayName = "Take Cash";
|
|
condition = "!(isNil {cursorObject getVariable 'isCash'}) && (player distance cursorObject) <= 5";
|
|
exceptions[] = {};
|
|
statement = QUOTE([cursorObject] spawn EFUNC(money,takeCash));
|
|
// icon = "";
|
|
};
|
|
class openLocker {
|
|
displayName = "Open Locker";
|
|
condition = "!(isNil {cursorObject getVariable 'isLocker'}) && (player distance cursorObject) <= 5";
|
|
exceptions[] = {};
|
|
statement = QUOTE([cursorObject] spawn EFUNC(locker,openLocker));
|
|
// icon = "";
|
|
};
|
|
// class openCompanyLocker {
|
|
// displayName = "Open Company Locker";
|
|
// condition = "!(isNil {cursorObject getVariable 'isLocker'}) && (player distance cursorObject) <= 5 && FORGE_Team_Coord == 1 && (getPlayerUID player) in companyShareholders";
|
|
// exceptions[] = {};
|
|
// statement = "[cursorObject] spawn forge_client_locker_fnc_openLocker";
|
|
// icon = "";
|
|
// };
|
|
class openVirtualArmory {
|
|
displayName = "Virtual Armory";
|
|
condition = "!(isNil {cursorObject getVariable 'isLocker'}) && (player distance cursorObject) <= 5 && FORGE_VA_Enable == 1";
|
|
exceptions[] = {};
|
|
statement = QUOTE([cursorObject] spawn EFUNC(arsenal,openArmory));
|
|
// icon = "";
|
|
};
|
|
// class openVirtualCompanyArmory {
|
|
// displayName = "Virtual Company Armory";
|
|
// condition = "!(isNil {cursorObject getVariable 'isLocker'}) && (player distance cursorObject) <= 5 && FORGE_VA_Enable == 1 && FORGE_Team_Coord == 1 && (getPlayerUID player) in companyShareholders";
|
|
// exceptions[] = {};
|
|
// statement = "[cursorObject] spawn forge_client_arsenal_fnc_openArmory";
|
|
// icon = "";
|
|
// };
|
|
class openStore {
|
|
displayName = "Access Store";
|
|
condition = "!(isNil {cursorObject getVariable 'isStore'}) && (player distance cursorObject) <= 5";
|
|
exceptions[] = {};
|
|
statement = QUOTE([cursorObject] spawn EFUNC(store,openStore));
|
|
// icon = "";
|
|
};
|
|
};
|
|
class ACE_SelfActions {
|
|
class getacF110 {
|
|
displayName = "Getac F110";
|
|
condition = "('FORGE_Tablet' in (items player))";
|
|
// icon = "";
|
|
class getacOpen {
|
|
displayName = "Open";
|
|
condition = "true";
|
|
exceptions[] = {};
|
|
statement = "[] execVM 'CoalaOs\CoalaOsMain.sqf'";
|
|
};
|
|
};
|
|
class phone {
|
|
displayName = "Phone";
|
|
condition = "('FORGE_Phone' in (items player))";
|
|
// icon = "";
|
|
class phoneOpen {
|
|
displayName = "Open";
|
|
condition = "true";
|
|
exceptions[] = {};
|
|
statement = QUOTE([] spawn EFUNC(phone,openPhone));
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}; |