Jump to content
Zak161

ACE Medical serialised state JSONs

Recommended Posts

So, I'm working on a mission for my group, and one of the objectives is to rescue a captive held by opfor. I want the captive to be injured, but in a way so that whilst they won't die, medics will need to treat them and they'll need a medevac sooner rather than later. I'm thinking severe bloodloss, severe pain, some bandaged wounds, a broken leg and a major wound TQ'd should do the trick.

Rather than fuck about with trying to use ace_medical_fnc_addDamageToUnit to get sorta the right wounds, I've decided it would be simplest to just build the medical state I want as a JSON, and use ace_medical_gnc_deserializeState to apply said state to the unit. Most parts of the JSON file are fairly self explanitory, but I'm having trouble figuring out what the 4 numeric values for ace_medical_openwounds / ace_medical_stitchedwounds / ace_medical_bandagedwounds correspond to, and what those values represent, as there seems to be no documentation on it (at least, I've not been able to find any. maybe I'm just an idiot). I'm slowly "trial / error"ing my way through, but I'm wondering if anyone else knows / can explain these values, as it would save me a considerable amount of time.

Share this post


Link to post
Share on other sites

Figured it out by trial and error:

// Data Model
{
    "ace_medical_openwounds": {
        "leftleg": [ ["_xClassID", "_xAmountOf", "_xBleeding", "_xDamage"] ]
    },
    "ace_medical_bloodpressure": [79, 119],
    "ace_medical_ivbags": null,
    "ace_medical_inpain": false,
    "ace_medical_medications": [],
    "ace_medical_tourniquets": [0, 0, 0, 0, 0, 0],
    "ace_medical_heartrate": 79.4762,
    "ace_medical_pain": 0.568085,
    "ace_medical_bloodvolume": 6,
    "ace_medical_stitchedwounds": {},
    "ace_medical_fractures": [0, 0, leftArm, 0, 0, rightLeg],
    "ace_medical_triagelevel": 0,
    "ace_medical_bodypartdamage": [ head, body, leftArm, rightArm, leftLeg, rightLeg ],
    "ace_medical_hemorrhage": 0,
    "ace_medical_occludedmedications": null,
    "ace_medical_triagecard": [],
    "ace_medical_bandagedwounds": {},
    "ace_medical_peripheralresistance": 100,
    "ace_medical_painsuppress": 0,
    "ace_medical_statemachinestate": "Injured"
}

Injury types

11 - Mediom Avultion
12 - Large Avultion
61 - Medium Velocity Wound
62 - (large?) Velocity Wound

 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×