From 7b9ad23a76ca89860095a571a5e07c83f2361dbe Mon Sep 17 00:00:00 2001 From: He-Man Date: Wed, 6 Jun 2018 19:57:22 +0200 Subject: [PATCH] Prepared (not used) more custom EH's --- .../customs/EPOCH_custom_EH_FiredNear.sqf | 15 +++++++++++++++ .../epoch_code/customs/EPOCH_custom_EH_Hit.sqf | 15 +++++++++++++++ .../customs/EPOCH_custom_EH_SeatSwitchedMan.sqf | 15 +++++++++++++++ .../epoch_config/Configs/CfgClientFunctions.hpp | 3 +++ Sources/epoch_config/Configs/CfgEpochClient.hpp | 4 +++- 5 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 Sources/epoch_code/customs/EPOCH_custom_EH_FiredNear.sqf create mode 100644 Sources/epoch_code/customs/EPOCH_custom_EH_Hit.sqf create mode 100644 Sources/epoch_code/customs/EPOCH_custom_EH_SeatSwitchedMan.sqf diff --git a/Sources/epoch_code/customs/EPOCH_custom_EH_FiredNear.sqf b/Sources/epoch_code/customs/EPOCH_custom_EH_FiredNear.sqf new file mode 100644 index 00000000..750dcfb4 --- /dev/null +++ b/Sources/epoch_code/customs/EPOCH_custom_EH_FiredNear.sqf @@ -0,0 +1,15 @@ +/* + Author: He-Man - EpochMod.com + + Contributors: + + Description: + Custom A3 Epoch FiredNear Eventhandler + + Licence: + Arma Public License Share Alike (APL-SA) - https://www.bistudio.com/community/licenses/arma-public-license-share-alike + + Github: + https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/custom/EPOCH_custom_EH_FiredNear.sqf +*/ +params ["_unit", "_firer", "_distance", "_weapon", "_muzzle", "_mode", "_ammo", "_gunner"]; diff --git a/Sources/epoch_code/customs/EPOCH_custom_EH_Hit.sqf b/Sources/epoch_code/customs/EPOCH_custom_EH_Hit.sqf new file mode 100644 index 00000000..886b2ba9 --- /dev/null +++ b/Sources/epoch_code/customs/EPOCH_custom_EH_Hit.sqf @@ -0,0 +1,15 @@ +/* + Author: He-Man - EpochMod.com + + Contributors: + + Description: + Custom A3 Epoch Hit Eventhandler + + Licence: + Arma Public License Share Alike (APL-SA) - https://www.bistudio.com/community/licenses/arma-public-license-share-alike + + Github: + https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/custom/EPOCH_custom_EH_Hit.sqf +*/ +params ["_unit", "_source", "_damage", "_instigator"]; diff --git a/Sources/epoch_code/customs/EPOCH_custom_EH_SeatSwitchedMan.sqf b/Sources/epoch_code/customs/EPOCH_custom_EH_SeatSwitchedMan.sqf new file mode 100644 index 00000000..c8007c9c --- /dev/null +++ b/Sources/epoch_code/customs/EPOCH_custom_EH_SeatSwitchedMan.sqf @@ -0,0 +1,15 @@ +/* + Author: He-Man - EpochMod.com + + Contributors: + + Description: + Custom A3 Epoch SeatSwitchedMan Eventhandler + + Licence: + Arma Public License Share Alike (APL-SA) - https://www.bistudio.com/community/licenses/arma-public-license-share-alike + + Github: + https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/custom/EPOCH_custom_EH_SeatSwitchedMan.sqf +*/ +params ["_unit1", "_unit2", "_vehicle"]; diff --git a/Sources/epoch_config/Configs/CfgClientFunctions.hpp b/Sources/epoch_config/Configs/CfgClientFunctions.hpp index 581803bf..95e76c85 100644 --- a/Sources/epoch_config/Configs/CfgClientFunctions.hpp +++ b/Sources/epoch_config/Configs/CfgClientFunctions.hpp @@ -225,14 +225,17 @@ class CfgClientFunctions { file = "epoch_code\customs"; class custom_EH_FiredMan {}; + class custom_EH_FiredNear {}; class custom_EH_GetInMan {}; class custom_EH_GetOutMan {}; + class custom_EH_Hit {}; class custom_EH_InventoryClosed {}; class custom_EH_InventoryOpened {}; class custom_EH_KeyDown {}; class custom_EH_KeyUp {}; class custom_EH_Killed {}; class custom_EH_Put {}; + class custom_EH_SeatSwitchedMan {}; class custom_EH_Take {}; class custom_KeyMap {}; class custom_OnEachFrame {}; diff --git a/Sources/epoch_config/Configs/CfgEpochClient.hpp b/Sources/epoch_config/Configs/CfgEpochClient.hpp index 9e1450a5..eccb757f 100644 --- a/Sources/epoch_config/Configs/CfgEpochClient.hpp +++ b/Sources/epoch_config/Configs/CfgEpochClient.hpp @@ -178,10 +178,12 @@ class CfgEpochClient HandleDamage = ""; HandleHeal = ""; Dammaged = ""; - Hit = ""; + Hit = "_this call EPOCH_custom_EH_Hit"; HitPart = ""; GetInMan = "_this call EPOCH_getInMan;_this call Epoch_custom_EH_GetInMan"; GetOutMan = "_this call EPOCH_getOutMan;_this call Epoch_custom_EH_GetOutMan"; + SeatSwitchedMan = "_this call EPOCH_custom_EH_SeatSwitchedMan"; + FiredNear = "_this call EPOCH_custom_EH_FiredNear"; // suppress these units from spawning near Jammer or Traders nonJammerAI[] = {"B_Heli_Transport_01_F","PHANTOM","EPOCH_Sapper_F","Epoch_SapperG_F","Epoch_SapperB_F","I_UAV_01_F","EPOCH_RyanZombie_1"}; nonTraderAI[] = {"B_Heli_Transport_01_F","PHANTOM","EPOCH_Sapper_F","Epoch_SapperG_F","Epoch_SapperB_F","I_UAV_01_F","Epoch_Cloak_F","GreatWhite_F","EPOCH_RyanZombie_1"};