-
Notifications
You must be signed in to change notification settings - Fork 739
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from acemod/master
Update
- Loading branch information
Showing
189 changed files
with
7,653 additions
and
4,781 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ Walter Pearce <[email protected]> | |
# CONTRIBUTORS | ||
11RDP-LoupVert <[email protected]> | ||
[BIG]Bull | ||
ACCtomeek | ||
ACCtomeek <[email protected]> | ||
Adanteh | ||
aeroson | ||
Aggr094 <[email protected]> | ||
|
@@ -40,18 +40,19 @@ Falke75 | |
Ferenczi | ||
Ferenzi | ||
Filip Basara <[email protected]> (Logo) | ||
FreeZbe <[email protected]> | ||
geraldbolso1899 | ||
Ghost | ||
gienkov | ||
GieNkoV <gienkov[email protected]> | ||
gpgpgpgp | ||
Grzegorz | ||
Hamburger SV | ||
havena <[email protected]> | ||
Hawkins | ||
jokoho48 | ||
Jonpas <[email protected]> | ||
Legolasindar | ||
licht-im-Norden87 | ||
Legolasindar "Viper" <[email protected]> | ||
licht-im-Norden87 <[email protected]> | ||
MarcBook | ||
Michail Nikolaev | ||
nic547 <[email protected]> | ||
|
@@ -62,6 +63,9 @@ Raspu86 | |
Riccardo Petricca <[email protected]> | ||
Robert Boklahánics <[email protected]> | ||
simon84 | ||
Sniperwolf572 <[email protected]> | ||
Tonic | ||
Tourorist <[email protected]> | ||
Valentin Torikian <[email protected]> | ||
zGuba | ||
Aleksey EpMAK Yermakov <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,37 @@ | ||
/** | ||
* fn_disableAI_f.sqf | ||
* @Descr: N/A | ||
* @Author: Glowbal | ||
/* | ||
* Author: Glowbal, KoffeinFlummi | ||
* Disables/Enables AI | ||
* | ||
* @Arguments: [] | ||
* @Return: | ||
* @PublicAPI: false | ||
* Arguments: | ||
* 0: Unit <OBJECT> | ||
* 1: Disable AI <BOOL> | ||
* | ||
* Return Value: | ||
* None | ||
* | ||
* Example: | ||
* [bob, true] call ace_common_fnc_disableAI; | ||
* | ||
* Public: No | ||
*/ | ||
#include "script_component.hpp" | ||
private ["_unit","_disable"]; | ||
_unit = [_this, 0,ObjNull,[ObjNull]] call BIS_fnc_Param; | ||
_disable = [_this, 1,false,[false]] call BIS_fnc_Param; | ||
|
||
if (local _unit && !(IsPlayer _unit)) then { | ||
PARAMS_2(_unit,_disable); | ||
|
||
if ((local _unit) && {!([_unit] call EFUNC(common,isPlayer))}) then { | ||
if (_disable) then { | ||
_unit disableAI "Move"; | ||
_unit disableAI "MOVE"; | ||
_unit disableAI "TARGET"; | ||
_unit disableAI "AUTOTARGET"; | ||
_unit disableAI "FSM"; | ||
_unit disableConversation true; | ||
} else { | ||
_unit enableAI "Move"; | ||
//Sanity check to make sure we don't enable unconsious AI | ||
if (_unit getVariable ["ace_isunconscious", false]) exitWith {ERROR("Enabling AI for unconsious unit");}; | ||
_unit enableAI "MOVE"; | ||
_unit enableAI "TARGET"; | ||
_unit enableAI "AUTOTARGET"; | ||
_unit enableAI "FSM"; | ||
_unit disableConversation false; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* Author: commy2 | ||
* | ||
* Drops a backback. Also returns the ground wepaon holder object of the dropped backpack. | ||
* | ||
* Argument: | ||
* 0: Unit that has a backpack (Object) | ||
* | ||
* Return value: | ||
* Ground wepaon holder with backpack (Object) | ||
* | ||
*/ | ||
#include "script_component.hpp" | ||
|
||
private "_unit"; | ||
|
||
_unit = _this select 0; | ||
|
||
private "_backpackObject"; | ||
_backpackObject = backpackContainer _unit; | ||
|
||
_unit addBackpack "Bag_Base"; | ||
removeBackpack _unit; | ||
|
||
private "_holder"; | ||
_holder = objNull; | ||
|
||
{ | ||
if (_backpackObject in everyBackpack _x) exitWith { | ||
_holder = _x; | ||
}; | ||
} forEach (position _unit nearObjects ["WeaponHolder", 5]); | ||
|
||
_holder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.