mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-04-17 01:43:21 +03:00
private arrays part 2
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
private["_hasMeds","_med","_effect"];
|
||||
private ["_hasMeds","_med"];
|
||||
_med = "ItemAntibiotic";
|
||||
_hasMeds = _med in magazines player;
|
||||
if (_hasMeds) then {
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
// bleed.sqf
|
||||
|
||||
private ["_started","_finished","_animState","_isMedic","_id","_unit"];
|
||||
|
||||
_unit = (_this select 3) select 0;
|
||||
player removeMagazine "ItemBandage";
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
Start carry.sqf
|
||||
*/
|
||||
|
||||
private ["_unit","_dragee","_pos","_dir"];
|
||||
private ["_unit","_dragee","_anim_name","_can_be_revived","_can_be_revived_2"];
|
||||
_dragee = _this select 3;
|
||||
_can_be_revived = NORRN_revive_array select 20;
|
||||
_can_be_revived_2 = NORRN_revive_array select 21;
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
Start carry.sqf
|
||||
*/
|
||||
|
||||
private ["_unit","_dragee","_pos","_dir"];
|
||||
private ["_unit","_dragee","_anim_name","_can_be_revived","_can_be_revived_2"];
|
||||
_dragee = _this select 3;
|
||||
_can_be_revived = NORRN_revive_array select 20;
|
||||
_can_be_revived_2 = NORRN_revive_array select 21;
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
Start drag.sqf
|
||||
*/
|
||||
|
||||
private ["_unit","_dragee","_pos","_dir"];
|
||||
private ["_unit","_dragee","_unconscious"];
|
||||
_dragee = _this select 3;
|
||||
_unit = player;
|
||||
_unconscious = _dragee getVariable ["NORRN_unconscious", false];
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
Start drop_body.sqf
|
||||
*/
|
||||
|
||||
private ["_dragee","_unit"];
|
||||
_dragee = _this select 3;
|
||||
|
||||
player removeAction NORRN_dropAction;
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// bleed.sqf
|
||||
|
||||
private ["_unit","_isDead"];
|
||||
_unit = (_this select 3) select 0;
|
||||
_isDead = _unit getVariable["USEC_isDead",false];
|
||||
call fnc_usec_medic_removeActions;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// init_related_scripts.sqf ArmA2 revive
|
||||
// © AUGUST 2010 - norrin
|
||||
// <EFBFBD> AUGUST 2010 - norrin
|
||||
|
||||
// Functions
|
||||
|
||||
@@ -9,6 +9,8 @@
|
||||
#include "\ca\editor\Data\Scripts\dikCodes.h"
|
||||
|
||||
//Settings
|
||||
|
||||
private ["_id","_rnd","_lowBlood"];
|
||||
usec_bandage_recovery = 5; //time to recover after bandaging
|
||||
|
||||
//"colorCorrections" ppEffectEnable true;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Load_wounded.sqf
|
||||
// OCTOBER 2010 - norrin
|
||||
|
||||
private ["_wounded","_vcl","_group"];
|
||||
private ["_wounded","_vcl"];
|
||||
|
||||
_wounded = _this select 0;
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// unLoad_act.sqf
|
||||
// AUGUST 2010 - norrin
|
||||
|
||||
private ["_args","_dragger","_vcl","_wounded"];
|
||||
private ["_args","_vcl","_loop","_position","_isOnDeck","_unit","_name","_crewVcl"];
|
||||
|
||||
_args = _this select 3;
|
||||
_name = _args select 0;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Load_wounded.sqf
|
||||
// OCTOBER 2010 - norrin
|
||||
|
||||
private ["_wounded","_vcl","_group"];
|
||||
private ["_wounded","_vcl"];
|
||||
|
||||
_wounded = _this select 0;
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// bleed.sqf
|
||||
|
||||
private ["_started","_finished","_animState","_isMedic","_id","_num_removed","_unit"];
|
||||
_unit = (_this select 3) select 0;
|
||||
|
||||
_unit setVariable ["hit_legs",0];
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// bleed.sqf
|
||||
|
||||
private ["_id","_unit"];
|
||||
private ["_id","_unit","_num_removed"];
|
||||
_unit = (_this select 3) select 0;
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// allowDamage.sqf
|
||||
|
||||
private ["_unit"];
|
||||
_unit = _this select 0;
|
||||
|
||||
_unit switchMove "AmovPpneMstpSnonWnonDnon_healed";
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// animDrag.sqf
|
||||
|
||||
private ["_dragee"];
|
||||
_dragee = _this select 0;
|
||||
|
||||
_dragee switchmove "ainjppnemstpsnonwrfldb_still";
|
||||
@@ -1,5 +1,6 @@
|
||||
// animHealed.sqf
|
||||
|
||||
private ["_unit"];
|
||||
_unit = _this select 0;
|
||||
|
||||
_unit switchMove "AmovPpneMstpSnonWnonDnon_healed";
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
//carriedUp.sqf
|
||||
|
||||
private ["_dragee"];
|
||||
_dragee = _this select 0;
|
||||
_dragee switchmove "ainjpfalmstpsnonwrfldnon_carried_up";
|
||||
@@ -1,6 +1,6 @@
|
||||
//deadState.sqf
|
||||
|
||||
private ["_unit"];
|
||||
_unit = _this select 0;
|
||||
|
||||
_unit switchMove "deadState";
|
||||
|
||||
_unit switchMove "deadState";
|
||||
@@ -1,6 +1,6 @@
|
||||
//lieStill.sqf
|
||||
|
||||
private ["_dragee"];
|
||||
_dragee = _this select 0;
|
||||
|
||||
_dragee playMoveNow "ainjppnemstpsnonwrfldnon";
|
||||
|
||||
_dragee playMoveNow "ainjppnemstpsnonwrfldnon";
|
||||
@@ -1,5 +1,6 @@
|
||||
// load_wounded.sqf
|
||||
|
||||
private ["_unit"];
|
||||
_unit = _this select 0;
|
||||
|
||||
_unit switchMove "kia_hmmwv_driver";
|
||||
@@ -1,5 +1,5 @@
|
||||
// medBreakLegs.sqf
|
||||
private["_array","_unit","_attacker","_display","_control","_hitLegs","_hitArms"];
|
||||
private ["_array","_unit","_attacker","_cnt","_index","_hit","_damage","_wound","_isInjured","_lowBlood"];
|
||||
disableserialization;
|
||||
_array = _this; //_this select 0;
|
||||
_unit = _array select 0;
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// animHealed.sqf
|
||||
|
||||
private ["_array","_unit","_medic","_isDead"];
|
||||
_array = _this; //_this select 0;
|
||||
_unit = _array select 0;
|
||||
_medic = _array select 1;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// animHealed.sqf
|
||||
private["_array","_unit","_medic","_display","_control","_hitLegs","_hitArms"];
|
||||
private ["_array","_unit","_medic","_display","_control","_id"];
|
||||
disableserialization;
|
||||
_array = _this; //_this select 0;
|
||||
_unit = _array select 0;
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// animHealed.sqf
|
||||
|
||||
private ["_array","_unit","_medic"];
|
||||
_array = _this; //_this select 0;
|
||||
_unit = _array select 0;
|
||||
_medic = _array select 1;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// animHealed.sqf
|
||||
private["_array","_unit","_medic","_display","_control","_lowBlood"];
|
||||
private ["_array","_unit","_medic","_display","_control","_rndInfection","_TransfusionInfection"];
|
||||
disableserialization;
|
||||
_array = _this; //_this select 0;
|
||||
_unit = _array select 0;
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// animHealed.sqf
|
||||
|
||||
private ["_array","_unit","_medic","_item"];
|
||||
_array = _this; //_this select 0;
|
||||
_unit = _array select 0;
|
||||
_medic = _array select 1;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
//noAnim.sqf
|
||||
|
||||
private ["_unit"];
|
||||
_unit = _this select 0;
|
||||
|
||||
_unit switchMove "";
|
||||
@@ -1,8 +1,9 @@
|
||||
// noDamage.sqf
|
||||
|
||||
private ["_unit"];
|
||||
_unit = _this select 0;
|
||||
|
||||
_unit setCaptive 3;
|
||||
_unit switchMove "AmovPpneMstpSnonWnonDnon_healed";
|
||||
_unit allowDamage false;
|
||||
sleep 0.01;
|
||||
sleep 0.01;
|
||||
@@ -1,5 +1,6 @@
|
||||
// pickUp.sqf
|
||||
|
||||
private ["_unit"];
|
||||
_unit = _this select 0;
|
||||
|
||||
_unit switchMove "acinpknlmstpsraswrfldnon_acinpercmrunsraswrfldnon";
|
||||
@@ -1,5 +1,6 @@
|
||||
// promptRName.sqf
|
||||
|
||||
private ["_unit"];
|
||||
_unit = _this select 0;
|
||||
|
||||
call compile format ["server globalChat reviver_%1", _unit];
|
||||
@@ -1,6 +1,6 @@
|
||||
// rolltoback.sqf
|
||||
|
||||
private ["_unit"];
|
||||
_unit = _this select 0;
|
||||
|
||||
_unit switchMove "ainjppnemstpsnonwrfldnon_rolltoback";
|
||||
|
||||
_unit switchMove "ainjppnemstpsnonwrfldnon_rolltoback";
|
||||
@@ -1,6 +1,6 @@
|
||||
// rolltofront.sqf
|
||||
|
||||
private ["_unit"];
|
||||
_unit = _this select 0;
|
||||
|
||||
_unit switchMove "ainjppnemstpsnonwrfldnon_rolltofront";
|
||||
|
||||
_unit switchMove "ainjppnemstpsnonwrfldnon_rolltofront";
|
||||
@@ -1,5 +1,6 @@
|
||||
// set180.sqf
|
||||
|
||||
private ["_dragee"];
|
||||
_dragee = _this select 0;
|
||||
|
||||
_dragee setDir 180;
|
||||
@@ -1,4 +1,6 @@
|
||||
// bleed.sqf
|
||||
|
||||
private ["_unit","_isDead","_isCardiac"];
|
||||
_unit = (_this select 3);
|
||||
_isDead = _unit getVariable["USEC_isDead",false];
|
||||
_isCardiac = _unit getVariable["USEC_isCardiac",false];
|
||||
|
||||
@@ -4,7 +4,7 @@ fnc_usec_damageHandle = {
|
||||
- Function
|
||||
- [unit] call fnc_usec_damageHandle;
|
||||
************************************************************/
|
||||
private["_unit","_eh"];
|
||||
private ["_unit"];
|
||||
_unit = _this select 0;
|
||||
|
||||
// Remove handle damage override
|
||||
@@ -16,6 +16,8 @@ fnc_usec_damageHandle = {
|
||||
};
|
||||
|
||||
fnc_usec_pitchWhine = {
|
||||
|
||||
private ["_visual","_sound"];
|
||||
_visual = _this select 0;
|
||||
_sound = _this select 1;
|
||||
//affect the player
|
||||
@@ -33,14 +35,12 @@ fnc_usec_pitchWhine = {
|
||||
};
|
||||
|
||||
fnc_usec_damageUnconscious = {
|
||||
private["_unit","_damage"];
|
||||
private ["_unit","_damage","_inVehicle"];
|
||||
_unit = _this select 0;
|
||||
_damage = _this select 1;
|
||||
_inVehicle = (vehicle _unit != _unit);
|
||||
if (_unit == player) then {
|
||||
r_player_timeout = round(((random 2) * _damage) * 40);
|
||||
if (_type == 1) then {r_player_timeout = r_player_timeout + 90};
|
||||
if (_type == 2) then {r_player_timeout = r_player_timeout + 60};
|
||||
r_player_timeout = round((((random 2) max 0.1) * _damage) * 20);
|
||||
r_player_unconscious = true;
|
||||
player setVariable["medForceUpdate",true,true];
|
||||
player setVariable ["unconsciousTime", r_player_timeout, true];
|
||||
@@ -104,6 +104,8 @@ fnc_usec_damageGetWound = {
|
||||
};
|
||||
|
||||
fnc_usec_medic_removeActions = {
|
||||
|
||||
private ["_obj"];
|
||||
_obj = player;
|
||||
{
|
||||
_obj = _x;
|
||||
@@ -131,7 +133,7 @@ fnc_med_publicBlood = {
|
||||
};
|
||||
|
||||
fnc_usec_playerBleed = {
|
||||
private["_bleedTime","_bleedPerSec","_total","_bTime","_myBleedTime"];
|
||||
private ["_bleedTime","_bleedPerSec","_total","_bTime","_myBleedTime","_id"];
|
||||
_bleedTime = 400; //seconds
|
||||
_bleedPerSec = (r_player_bloodTotal / _bleedTime);
|
||||
_total = r_player_bloodTotal;
|
||||
@@ -170,7 +172,7 @@ fnc_usec_damageBleed = {
|
||||
- Function
|
||||
- [_unit, _wound, _injury] call fnc_usec_damageBleed;
|
||||
************************************************************/
|
||||
private["_unit","_wound","_injury","_modelPos","_point","_source"];
|
||||
private ["_unit","_wound","_injury","_modelPos","_point","_source","_rndX"];
|
||||
_unit = _this select 0;
|
||||
_wound = _this select 1;
|
||||
_injury = _this select 2;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
private ["_started","_finished","_animState","_isMedic","_num_removed","_unit","_lastused","_text"];
|
||||
private ["_started","_finished","_animState","_isMedic","_num_removed","_unit","_lastused"];
|
||||
// bleed.sqf
|
||||
_unit = (_this select 3) select 0;
|
||||
//_lowBlood = _unit getVariable ["USEC_lowBlood", false];
|
||||
|
||||
Reference in New Issue
Block a user