mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
ffaa195fe5
* Fixed headers to work with silentspike python script * Fixed rest of the files * Fixed ace-team
31 lines
688 B
Plaintext
31 lines
688 B
Plaintext
/*
|
|
* Author: KoffeinFlummi
|
|
* Local callback when the morphine treatment is complete
|
|
*
|
|
* Arguments:
|
|
* 0: The medic <OBJECT>
|
|
* 1: The patient <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [bob, kevin] call ACE_medical_fnc_treatmentBasic_morphineLocal
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
#define MORPHINEHEAL 0.4
|
|
|
|
params ["_target"];
|
|
|
|
// reduce pain, pain sensitivity
|
|
private _morphine = ((_target getVariable [QGVAR(morphine), 0]) + MORPHINEHEAL) min 1;
|
|
_target setVariable [QGVAR(morphine), _morphine, true];
|
|
|
|
private _pain = ((_target getVariable [QGVAR(pain), 0]) - MORPHINEHEAL) max 0;
|
|
_target setVariable [QGVAR(pain), _pain, true];
|
|
|
|
// @todo overdose
|