-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
43 changed files
with
533 additions
and
586 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
kat_acemisc | ||
x\kat_aceAdvMedical\addons\acemisc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)); | ||
}; | ||
}; | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)); | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
}; | ||
}; | ||
}; | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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[] = {}; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | ||
}; | ||
}; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
Oops, something went wrong.