H

hmarcbower

Member

Last active 6 years ago

  1. 7 years ago
    Thu Nov 3 22:13:48 2016
    H hmarcbower posted in addAction on transport helicopters.

    Surely. :) Thanks to RitterNZ I was able to piece it together. The code block to do all the ACE Healing I found on Armaholic in a post by Foffy.

    description.ext:

    //ALiVE spawned medevac ACE Heal addaction
    class Extended_Init_EventHandlers
    {
    	class RHS_UH60M_MEV
    	{
    		init = "_this call (compile preprocessFileLineNumbers 'scripts\medevac_addAction_ACEHeal.sqf')";
    	};
    	class RHS_UH60M_MEV2
    	{
    		init = "_this call (compile preprocessFileLineNumbers 'scripts\medevac_addAction_ACEHeal.sqf')";
    	};
    };

    scripts\medevac_addAction_ACEHeal.sqf:

    _medevac = _this select 0;
    _medevac addAction ["<t color=""#FF0000"">ACE Heal</t>","scripts\bb_mb_ACEHeal.sqf"];
    sleep 1;

    bb_mb_ACEHeal.sqf:

    #include "\z\ace\addons\medical\script_component.hpp"
    _injured = _this select 1; 
    // if calling from a trigger, onAct is  {[_x,_x] spawn bb_mb_healunit_fnc} forEach thisList;
    // because calling from an addAction has the "caller" as the second array element
    if (alive _injured) then
    {
    		_injured setVariable [QGVAR(pain), 0, true];
    		_injured setVariable [QGVAR(morphine), 0, true];
    		_injured setVariable [QGVAR(bloodVolume), 100, true];
    		_injured setVariable ["ACE_isUnconscious", false, true];
    		_injured setvariable [QGVAR(tourniquets), [0,0,0,0,0,0], true];
    		_injured setvariable [QGVAR(openWounds), [], true];
    		_injured setvariable [QGVAR(bandagedWounds), [], true];
    		_injured setVariable [QGVAR(internalWounds), [], true];
    		_injured setvariable [QGVAR(lastUniqueWoundID), 1, true];
    		_injured setVariable [QGVAR(heartRate), 80];
    		_injured setvariable [QGVAR(heartRateAdjustments), []];
    		_injured setvariable [QGVAR(bloodPressure), [80, 120]];
    		_injured setVariable [QGVAR(peripheralResistance), 100];
    		_injured setVariable [QGVAR(fractures), [], true];
    		_injured setvariable [QGVAR(triageLevel), 0, true];
    		_injured setvariable [QGVAR(triageCard), [], true];
    		_injured setVariable [QGVAR(salineIVVolume), 0, true];
    		_injured setVariable [QGVAR(plasmaIVVolume), 0, true];
    		_injured setVariable [QGVAR(bloodIVVolume), 0, true];
    		_injured setvariable [QGVAR(bodyPartStatus), [0,0,0,0,0,0], true];
    		_injured setvariable [QGVAR(airwayStatus), 100];
    		_injured setVariable [QGVAR(airwayOccluded), false];
    		_injured setvariable [QGVAR(airwayCollapsed), false];
    		_injured setvariable [QGVAR(addedToUnitLoop), false, true];
    		_injured setvariable [QGVAR(inCardiacArrest), false, true];
    		_injured setvariable [QGVAR(hasLostBlood), 0, true];
    		_injured setvariable [QGVAR(isBleeding), false, true];
    		_injured setvariable [QGVAR(hasPain), false, true];
    		_injured setvariable [QGVAR(amountOfReviveLives), GVAR(amountOfReviveLives), true];
    		_injured setvariable [QGVAR(painSuppress), 0, true];
    		_injured setDamage 0;
    };

    I also had this set up when I had a medical facility that auto-healed units who entered so I could call the function from a trigger. It's not needed if you're just going to use the addAction as I did above. I just set up a trigger that fit inside the area of the medical facility so that as soon as someone walked into the trigger area, they were fully healed. YOu can see the On Activation command above if you want to set up one of those, too. This is what I started with, so it might be completely extraneous. :)

    init.sqf:

    // Functions
    bb_mb_healunit_fnc = compile preprocessFileLineNumbers "scripts\bb_mb_ACEHeal.sqf";

    If you wanted to do some more fancy things around the healing, you could add it into the code. Basically I just wanted the player to be able to walk up to the chopper (in my case I set up an ALiVE combat support transport and used one of the two classnames listed above in the description.ext; you should be able to use any object so long as you add its classname into the description.ext file, I would think) and use the wheel menu to be fully healed without any fanfare.

  2. Sat Oct 29 05:38:00 2016
    H hmarcbower posted in addAction on transport helicopters.

    Thanks, RitterNZ - this was exactly what I needed to solve my similar problem and it worked great putting the section in the description.ext. :)

    My addAction was to run a script that will fire off a complete ACE Medical heal... I attached it to the RHS medevac chopper, set up as a transport combat support object.

  3. 8 years ago
    Fri Apr 1 03:03:56 2016
    H hmarcbower posted in Optional Server PBOs.

    OK, good - I didn't actually explain what step I was at :) We have it working, mostly, with the module in the mission. I was wondering if just using the optional ones would track player stats without the addition of the module by the mission creator.

    Sounds like we're better to go with adding the module if we want everything reporting. :)

  4. Thu Mar 31 01:00:48 2016
    H hmarcbower posted in Optional Server PBOs.

    Will it handle player stat tracking as well, or is it only for Perfmon and OS Perfmon?

  5. Wed Mar 30 13:14:46 2016
    H hmarcbower started the conversation Optional Server PBOs.

    I see on the wiki page that we can enable tracking on any mission, even without the ALiVE Data module placed, by adding the optional pbo's to the addons folder.

    Does this need to be done on the server only, or do the clients need to add these PBOs as well?

  6. Wed Mar 30 05:44:44 2016

    Any thoughts on when or if the War Room and ACE will play nicely together?

    EDIT: Found the answer, sort of, after reading through the forums. :)
    http://alivemod.com/forum/1553-no-recording-with-ace/0#p6564

  7. Wed Mar 30 05:40:14 2016
    H hmarcbower posted in @ALiVEServer Issue (SOLVED).

    FWIW, I was having the exact same error and it was because, even though I was pointing to it, my mod folder wasn't in the game root folder.

    I use Arma3Sync to launch the server, and because there isn't an addons folder inside the @AliveServer folder, it won't see it. I pointed to it specifically in the "Additional Parameters" section of the launcher on the Launcher Options tab. (e.g.: -mod=C:\Games\ArmA3\A3Master\@AliveServer as the first thing in that box, followed by my config file and other parameters for the server)

  8. Mon Aug 10 01:50:31 2015
    H hmarcbower joined the forum.