Skip to content

Commit

Permalink
updated misc
Browse files Browse the repository at this point in the history
  • Loading branch information
Schwaggot committed Mar 26, 2019
1 parent f67dd9c commit 9be36da
Show file tree
Hide file tree
Showing 43 changed files with 533 additions and 586 deletions.
2 changes: 1 addition & 1 deletion addons/acemisc/$PBOPREFIX$
Original file line number Diff line number Diff line change
@@ -1 +1 @@
kat_acemisc
x\kat_aceAdvMedical\addons\acemisc
32 changes: 32 additions & 0 deletions addons/acemisc/ACE_Medical_Actions.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
class ACE_Medical_Actions {
class Advanced {
class SalineIV;
class SalineIV_Stand: SalineIV {
displayName = CSTRING(Display_IVStand);
requiredMedic = 0;
condition = QUOTE(params ['_player']; [ARR_2(_player, 1000)] call FUNC(conditionIV));
items[] = {};
callbackSuccess = QUOTE([ARR_5(_player, _target, _selectionName, 'SalineIV', ['ACE_salineIV'])] call FUNC(treatmentIV));
itemConsumed = 0;
};
class SalineIV_Stand_500: SalineIV_Stand {
displayName = CSTRING(Display_IVStand_500);
condition = QUOTE(params ['_player']; [ARR_2(_player, 500)] call FUNC(conditionIV));
callbackSuccess = QUOTE([ARR_5(_player, _target, _selectionName, 'SalineIV_500', ['ACE_salineIV_500'])] call FUNC(treatmentIV));
};
class SalineIV_Stand_250: SalineIV_Stand {
displayName = CSTRING(Display_IVStand_250);
condition = QUOTE(params ['_player']; [ARR_2(_player, 250)] call FUNC(conditionIV));
callbackSuccess = QUOTE([ARR_5(_player, _target, _selectionName, 'SalineIV_250', ['ACE_salineIV_250'])] call FUNC(treatmentIV));
};
class PersonalAidKit;
class LimitWounds: PersonalAidKit {
displayName = CSTRING(LIMITWOUNDS_Display);
displayNameProgress = CSTRING(LIMITWOUNDS_Display);
patientStateCondition = QGVAR(limitWounds_condition);
condition = QUOTE(([_target] call FUNC(getNumOpenWounds) > 5) && GVAR(limitWounds_enable));
treatmentTime = 8;
callbackSuccess = QUOTE([_target] call FUNC(limitWounds));
};
};
};
4 changes: 0 additions & 4 deletions addons/acemisc/BIS_AddonInfo.hpp

This file was deleted.

34 changes: 34 additions & 0 deletions addons/acemisc/CfgEventHandlers.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
class Extended_PreInit_EventHandlers {
class ADDON {
init = QUOTE(call COMPILE_FILE(XEH_preInit));
disableModuload = true;
};
};

class Extended_Init_EventHandlers {
class CAManBase {
class ADDON {
init = QUOTE(_this call COMPILE_FILE(XEH_init));
};
};
class Land_IntravenStand_01_empty_F {
class ADDON {
init = QUOTE((_this select 0) setVariable [ARR_3(QQGVAR(stand), [], true)]);
};
};
class Land_IntravenStand_01_1bag_F {
class ADDON {
init = QUOTE((_this select 0) setVariable [ARR_3(QQGVAR(stand), [1000], true)]);
};
};
class Land_IntravenStand_01_2bags_F {
class ADDON {
init = QUOTE((_this select 0) setVariable [ARR_3(QQGVAR(stand), [ARR_2(1000, 1000)], true)]);
};
};
};
class Extended_PostInit_EventHandlers {
class ADDON {
init = QUOTE(call COMPILE_FILE(XEH_postInit));
};
};
11 changes: 11 additions & 0 deletions addons/acemisc/CfgFunctions.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
class CfgFunctions {
class ADDON {
tag = "ace_interaction";
class ace_interaction {
class addPassengersActions {
file = QPATHTOF(functions\fnc_addPassengersActions.sqf);
};
};
};

};
17 changes: 17 additions & 0 deletions addons/acemisc/CfgMoves.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
class CfgMovesBasic {
class ManActions {
kat_stretcher = "kat_stretcher";
};
};

class CfgMovesMaleSdr: CfgMovesBasic {
class States {
class Crew;
class kat_stretcher: crew {
file = "a3\anims_f\data\anim\sdr\inj\ainjppnemstpsnonwnondnon.rtm";
interpolateTo[] = {"Unconscious", 0.02};
leftHandIKCurve[] = {};
rightHandIKCurve[] = {};
};
};
};
277 changes: 277 additions & 0 deletions addons/acemisc/CfgVehicles.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,277 @@
class CfgVehicles {
#include "vehicle_stretcher.hpp"
class Land_IntravenStand_01_base_F;

class Land_IntravenStand_01_empty_F: Land_IntravenStand_01_base_F {
ace_cargo_size = 2;
ace_cargo_canLoad = 1;

// Dragging
ace_dragging_canDrag = 1;
ace_dragging_dragPosition[] = {0, 1.2, 1};
ace_dragging_dragDirection = 0;

// Carrying
ace_dragging_canCarry = 1;
ace_dragging_carryPosition[] = {0, 1.2, 1};
ace_dragging_carryDirection = 0;
};
class Land_IntravenStand_01_1bag_F: Land_IntravenStand_01_base_F {
ace_cargo_size = 2;
ace_cargo_canLoad = 1;

// Dragging
ace_dragging_canDrag = 1;
ace_dragging_dragPosition[] = {0, 1.2, 1};
ace_dragging_dragDirection = 0;

// Carrying
ace_dragging_canCarry = 1;
ace_dragging_carryPosition[] = {0, 1.2, 1};
ace_dragging_carryDirection = 0;
};
class Land_IntravenStand_01_2bags_F: Land_IntravenStand_01_base_F {
ace_cargo_size = 2;
ace_cargo_canLoad = 1;

// Dragging
ace_dragging_canDrag = 1;
ace_dragging_dragPosition[] = {0, 1.2, 1};
ace_dragging_dragDirection = 0;

// Carrying
ace_dragging_canCarry = 1;
ace_dragging_carryPosition[] = {0, 1.2, 1};
ace_dragging_carryDirection = 0;
};

class weapon_bag_base;
class kat_stretcherBag: weapon_bag_base {
class assembleInfo {
displayName = "Stretcher";
assembleTo = "kat_stretcher";
base = "";
primary = 1;
dissasembleTo[] = {};
};
author = "Katalam";
scope = 2;
editorCategory = "EdCat_Equipment";
editorSubcategory = "EdSubcat_DismantledWeapons";
displayName = "Stretcher (Packed)";
mass = 60;
};

class Tank_F;
class kat_stretcher: Tank_F {
explosionEffect = "";
fuelExplosionPower = 0;
editorForceEmpty = 1;
editorSubcategory = "edSubcat_Storage";
crew = "C_man_1";
icon = "iconObject_1x1";
hasDriver = 0;
scope = 2;
side = 3;
faction = "CIV_F";
accuracy = 0.001;
camouflage = 10;
armor = 20;
displayName = "Stretcher";
model = QPATHTOF(models\stretcher\vurtual_stretcher.p3d);
simulation = "tankX";
crewVulnerable = 1;
explosionShielding = 0;
irTarget = 0;
allowTabLock = 0;
memoryPointsGetInCargo = "pos cargo";
memoryPointsGetInCargoDir = "pos cargo dir";
cargoAction[] = {"kat_stretcher"};
tf_isolatedAmount = 0;
numberPhysicalWheels = 0;
hideProxyInCombat = 0;
hideWeaponsCargo = true;
ejectDeadCargo = 0;
class Damage {
tex[] = {};
mat[] = {
QPATHTOF(models\stretcher\seat.rvmat),
QPATHTOF(models\stretcher\seat_destruct.rvmat)
};
};
class animationSources {
class seat_hide {
source = "user";
initPhase = 0;
animPeriod = 0.1;
displayName = "Hide Stretcher";
forceAnimatePhase = 1;
forceAnimate[] = {"legs_hide", 1};
};
};
maximumLoad = 0;
transportMaxBackpacks = 0;
transportMaxMagazines = 64;
class TransportItems;
class CargoTurret;
class Turrets {
class MainTurret: CargoTurret {
gunnerAction = "passenger_inside_2";
gunnerInAction = "passenger_inside_2"; //fixes standing up in steat
memoryPointsGetInGunner = "pos cargo";
memoryPointsGetInGunnerDir = "pos cargo dir";
gunnerName = "Armchair Warrior";
gunnerCompartments = "Compartment1";
proxyIndex = 1;
isPersonTurret = 1;
forceHideGunner = 1; //fixes being turned out in seat
maxElev = 75;
minElev = -75;
maxTurn = 95;
minTurn = -95;
stabilizedInAxes = 3;
primaryGunner = 1;
dontCreateAI = 0;
ejectDeadGunner = 0;
};
};
transportSoldier = 1;
ace_cargo_canLoad = 0;
ace_Cargo_hasCargo = 0;
ace_dragging_canDrag = 1;
ace_dragging_canCarry = 1;
ace_dragging_dragPosition[] = {0,1.7,0};
ace_dragging_carryPosition[] = {0, 1.7, 0};
ace_dragging_dragDirection = 0;
ace_Carry_carryDirection = 0;
ace_cookoff_probability = 0;
slingLoadCargoMemoryPoints[] = {"SlingLoadCargo1", "SlingLoadCargo2", "SlingLoadCargo3", "SlingLoadCargo4"};
destrType = "destructDefault";
fuelCapacity = 0;

//pretend static weapon since some mods don't like unconscious people in static weapons
nameSound = "veh_static_s";
vehicleClass = "static";
unitInfoType = "RscUnitInfoStatic";
crewExplosionProtection = 0;
class DestructionEffects {};
class VehicleTransport {
class Cargo {
parachuteClass = "B_Parachute_02_F";
parachuteHeightLimit = 5;
canBeTransported = 1;
dimensions[] = {"VTV_Cargo_Base", "VTV_Cargo_Corner"};
};
};
class EventHandlers {
init = QUOTE(_this call FUNC(stretcher));
};
};
class Land_Stretcher_01_base_F;
class Land_Stretcher_01_olive_F: Land_Stretcher_01_base_F {
ace_cargo_canLoad = 1;
ace_Cargo_hasCargo = 0;
ace_dragging_canDrag = 1;
ace_dragging_canCarry = 1;
ace_dragging_dragPosition[] = {0,1.7,0};
ace_dragging_carryPosition[] = {0, 1.7, 0};
ace_dragging_dragDirection = 0;
ace_Carry_carryDirection = 0;
ace_cookoff_probability = 0;
class VehicleTransport {
class Cargo {
parachuteClass = "B_Parachute_02_F";
parachuteHeightLimit = 5;
canBeTransported = 1;
dimensions[] = {"VTV_Cargo_Base", "VTV_Cargo_Corner"};
};
};
};

class Man;
class CAManBase: Man {
class ACE_Actions {
class ACE_Torso {
class FieldDressing;
class LimitWounds {
displayName = CSTRING(LIMITWOUNDS_Display);
condition = "[_player, _target, 'hand_l', 'LimitWounds'] call ace_medical_fnc_canTreatCached";
statement = "[_player, _target, 'hand_l', 'LimitWounds'] call ace_medical_fnc_treatment";
icon = "";
};
};
class ACE_ArmLeft {
class SalineIV;
class SalineIV_Stand: SalineIV {
displayName = CSTRING(Display_IVStand);
condition = "[_player, _target, 'hand_l', 'SalineIV_Stand'] call ace_medical_fnc_canTreatCached";
statement = "[_player, _target, 'hand_l', 'SalineIV_Stand'] call ace_medical_fnc_treatment";
};
class SalineIV_Stand_500: SalineIV {
displayName = CSTRING(Display_IVStand_500);
condition = "[_player, _target, 'hand_l', 'SalineIV_Stand_500'] call ace_medical_fnc_canTreatCached";
statement = "[_player, _target, 'hand_l', 'SalineIV_Stand_500'] call ace_medical_fnc_treatment";
};
class SalineIV_Stand_250: SalineIV {
displayName = CSTRING(Display_IVStand_250);
condition = "[_player, _target, 'hand_l', 'SalineIV_Stand_250'] call ace_medical_fnc_canTreatCached";
statement = "[_player, _target, 'hand_l', 'SalineIV_Stand_250'] call ace_medical_fnc_treatment";
};
};
class ACE_ArmRight {
class SalineIV;
class SalineIV_Stand: SalineIV {
displayName = CSTRING(Display_IVStand);
condition = "[_player, _target, 'hand_r', 'SalineIV_Stand'] call ace_medical_fnc_canTreatCached";
statement = "[_player, _target, 'hand_r', 'SalineIV_Stand'] call ace_medical_fnc_treatment";
};
class SalineIV_Stand_500: SalineIV {
displayName = CSTRING(Display_IVStand_500);
condition = "[_player, _target, 'hand_r', 'SalineIV_Stand_500'] call ace_medical_fnc_canTreatCached";
statement = "[_player, _target, 'hand_r', 'SalineIV_Stand_500'] call ace_medical_fnc_treatment";
};
class SalineIV_Stand_250: SalineIV {
displayName = CSTRING(Display_IVStand_250);
condition = "[_player, _target, 'hand_r', 'SalineIV_Stand_250'] call ace_medical_fnc_canTreatCached";
statement = "[_player, _target, 'hand_r', 'SalineIV_Stand_250'] call ace_medical_fnc_treatment";
};
};
class ACE_LegLeft {
class SalineIV;
class SalineIV_Stand: SalineIV {
displayName = CSTRING(Display_IVStand);
condition = "[_player, _target, 'leg_l', 'SalineIV_Stand'] call ace_medical_fnc_canTreatCached";
statement = "[_player, _target, 'leg_l', 'SalineIV_Stand'] call ace_medical_fnc_treatment";
};
class SalineIV_Stand_500: SalineIV {
displayName = CSTRING(Display_IVStand_500);
condition = "[_player, _target, 'leg_l', 'SalineIV_Stand_500'] call ace_medical_fnc_canTreatCached";
statement = "[_player, _target, 'leg_l', 'SalineIV_Stand_500'] call ace_medical_fnc_treatment";
};
class SalineIV_Stand_250: SalineIV {
displayName = CSTRING(Display_IVStand_250);
condition = "[_player, _target, 'leg_l', 'SalineIV_Stand_250'] call ace_medical_fnc_canTreatCached";
statement = "[_player, _target, 'leg_l', 'SalineIV_Stand_250'] call ace_medical_fnc_treatment";
};
};
class ACE_LegRight {
class SalineIV;
class SalineIV_Stand: SalineIV {
displayName = CSTRING(Display_IVStand);
condition = "[_player, _target, 'leg_r', 'SalineIV_Stand'] call ace_medical_fnc_canTreatCached";
statement = "[_player, _target, 'leg_r', 'SalineIV_Stand'] call ace_medical_fnc_treatment";
};
class SalineIV_Stand_500: SalineIV {
displayName = CSTRING(Display_IVStand_500);
condition = "[_player, _target, 'leg_r', 'SalineIV_Stand_500'] call ace_medical_fnc_canTreatCached";
statement = "[_player, _target, 'leg_r', 'SalineIV_Stand_500'] call ace_medical_fnc_treatment";
};
class SalineIV_Stand_250: SalineIV {
displayName = CSTRING(Display_IVStand_250);
condition = "[_player, _target, 'leg_r', 'SalineIV_Stand_250'] call ace_medical_fnc_canTreatCached";
statement = "[_player, _target, 'leg_r', 'SalineIV_Stand_250'] call ace_medical_fnc_treatment";
};
};
};
};
};
12 changes: 12 additions & 0 deletions addons/acemisc/XEH_PREP.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
PREP(addIVbag);
PREP(addPassengersActions);
PREP(attachStretcher);
PREP(bandageRandomWound);
PREP(conditionIV);
PREP(conditionIVstand);
PREP(getNumOpenWounds);
PREP(init);
PREP(limitWounds);
PREP(removeIVbag);
PREP(stretcher);
PREP(treatmentIV);
Loading

0 comments on commit 9be36da

Please sign in to comment.