private arrays part 2

This commit is contained in:
[VB]AWOL
2013-10-22 10:16:20 -05:00
parent af4b876cde
commit 207f4e3b88
58 changed files with 91 additions and 62 deletions

View File

@@ -1,4 +1,4 @@
private["_hasMeds","_med","_effect"];
private ["_hasMeds","_med"];
_med = "ItemAntibiotic";
_hasMeds = _med in magazines player;
if (_hasMeds) then {

View File

@@ -1,4 +1,7 @@
// bleed.sqf
private ["_started","_finished","_animState","_isMedic","_id","_unit"];
_unit = (_this select 3) select 0;
player removeMagazine "ItemBandage";

View File

@@ -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;

View File

@@ -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;

View File

@@ -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];

View File

@@ -8,6 +8,7 @@
Start drop_body.sqf
*/
private ["_dragee","_unit"];
_dragee = _this select 3;
player removeAction NORRN_dropAction;

View File

@@ -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;

View File

@@ -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;

View File

@@ -1,7 +1,7 @@
// Load_wounded.sqf
// OCTOBER 2010 - norrin
private ["_wounded","_vcl","_group"];
private ["_wounded","_vcl"];
_wounded = _this select 0;

View File

@@ -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;

View File

@@ -1,7 +1,7 @@
// Load_wounded.sqf
// OCTOBER 2010 - norrin
private ["_wounded","_vcl","_group"];
private ["_wounded","_vcl"];
_wounded = _this select 0;

View File

@@ -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];

View File

@@ -1,6 +1,6 @@
// bleed.sqf
private ["_id","_unit"];
private ["_id","_unit","_num_removed"];
_unit = (_this select 3) select 0;

View File

@@ -1,5 +1,6 @@
// allowDamage.sqf
private ["_unit"];
_unit = _this select 0;
_unit switchMove "AmovPpneMstpSnonWnonDnon_healed";

View File

@@ -1,5 +1,6 @@
// animDrag.sqf
private ["_dragee"];
_dragee = _this select 0;
_dragee switchmove "ainjppnemstpsnonwrfldb_still";

View File

@@ -1,5 +1,6 @@
// animHealed.sqf
private ["_unit"];
_unit = _this select 0;
_unit switchMove "AmovPpneMstpSnonWnonDnon_healed";

View File

@@ -1,4 +1,5 @@
//carriedUp.sqf
private ["_dragee"];
_dragee = _this select 0;
_dragee switchmove "ainjpfalmstpsnonwrfldnon_carried_up";

View File

@@ -1,6 +1,6 @@
//deadState.sqf
private ["_unit"];
_unit = _this select 0;
_unit switchMove "deadState";
_unit switchMove "deadState";

View File

@@ -1,6 +1,6 @@
//lieStill.sqf
private ["_dragee"];
_dragee = _this select 0;
_dragee playMoveNow "ainjppnemstpsnonwrfldnon";
_dragee playMoveNow "ainjppnemstpsnonwrfldnon";

View File

@@ -1,5 +1,6 @@
// load_wounded.sqf
private ["_unit"];
_unit = _this select 0;
_unit switchMove "kia_hmmwv_driver";

View File

@@ -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;

View File

@@ -1,4 +1,6 @@
// animHealed.sqf
private ["_array","_unit","_medic","_isDead"];
_array = _this; //_this select 0;
_unit = _array select 0;
_medic = _array select 1;

View File

@@ -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;

View File

@@ -1,4 +1,6 @@
// animHealed.sqf
private ["_array","_unit","_medic"];
_array = _this; //_this select 0;
_unit = _array select 0;
_medic = _array select 1;

View File

@@ -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;

View File

@@ -1,4 +1,6 @@
// animHealed.sqf
private ["_array","_unit","_medic","_item"];
_array = _this; //_this select 0;
_unit = _array select 0;
_medic = _array select 1;

View File

@@ -1,5 +1,6 @@
//noAnim.sqf
private ["_unit"];
_unit = _this select 0;
_unit switchMove "";

View File

@@ -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;

View File

@@ -1,5 +1,6 @@
// pickUp.sqf
private ["_unit"];
_unit = _this select 0;
_unit switchMove "acinpknlmstpsraswrfldnon_acinpercmrunsraswrfldnon";

View File

@@ -1,5 +1,6 @@
// promptRName.sqf
private ["_unit"];
_unit = _this select 0;
call compile format ["server globalChat reviver_%1", _unit];

View File

@@ -1,6 +1,6 @@
// rolltoback.sqf
private ["_unit"];
_unit = _this select 0;
_unit switchMove "ainjppnemstpsnonwrfldnon_rolltoback";
_unit switchMove "ainjppnemstpsnonwrfldnon_rolltoback";

View File

@@ -1,6 +1,6 @@
// rolltofront.sqf
private ["_unit"];
_unit = _this select 0;
_unit switchMove "ainjppnemstpsnonwrfldnon_rolltofront";
_unit switchMove "ainjppnemstpsnonwrfldnon_rolltofront";

View File

@@ -1,5 +1,6 @@
// set180.sqf
private ["_dragee"];
_dragee = _this select 0;
_dragee setDir 180;

View File

@@ -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];

View File

@@ -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;

View File

@@ -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];