Commit Graph

37 Commits

Author SHA1 Message Date
Glowbal
b489750d5b Minor optimizations using private, params, and isEqualType (#4323)
* Optimizations with private, params, and isEqualType

* Fixed tab being used instead of space

* Fixed tabs inserted by notepad++

* More usage of new private syntax and params

- changed a few checks for an array being empty to `_arr isEqualTo []`
rather than `count _arr == 0`
- added more uses of `private` on the same line as the variable is
declared
- added more uses of params to assign variables passed as parameters
- removed unnecessary parentheses
- removed several unnecessary variable declarations with private array
syntax

* clean up and formatting
2016-09-04 16:44:22 +02:00
Glowbal
4251831e2e Merge pull request #4009 from acemod/fixRearmEvents
Fix rearm events
2016-06-28 20:33:56 +02:00
PabstMirror
8bd3332b0e rearm - Skip selectWeapon on nil
Should fix #4006
2016-06-27 00:00:25 -05:00
PabstMirror
8ecd8a49cc Fix rearm events 2016-06-26 23:37:23 -05:00
Glowbal
12a1f10a29 Merge pull request #3944 from acemod/funcHeaders
Cleanup Function Headers Titles
2016-06-18 11:57:43 +02:00
jonpas
03e923aa68 Cleanup Function Headers titles 2016-06-18 11:50:41 +02:00
Githawk
0723df7dea Replace execRemoteFnc with CBA events in rearm 2016-06-18 11:44:36 +02:00
SilentSpike
90ebf9638b Update common event names to meet new standard 2016-06-04 11:12:56 +01:00
jonpas
331c3c70cb Verify and fix cargo, nametags, rearm, reload, repair, ui, Convert infoDisplayChanged in common and mk6mortar Rsc's 2016-05-24 18:58:27 +02:00
SilentSpike
108ff4f644 Replace ACE event system calls with CBA counterparts
Regex used:

\[(.+?),(.+?),(.+?)\]\s+call\s+E?FUNC\((common,)?(target|object)Event\)
[$1,$3,$2] call CBA_fnc_targetEvent

E?FUNC\((common,)?(server|global|local)Event\)
CBA_fnc_$2Event

E?FUNC\((common,)?(add|remove)EventHandler\)
CBA_fnc_$2EventHandler
2016-05-22 16:47:39 +01:00
BaerMitUmlaut
82f8eb758c Removed remaining usage of player (#3710) 2016-05-07 22:27:33 +02:00
GitHawk
6deecb0559 Add missing bracket 2016-02-25 10:25:57 +01:00
GitHawk
2f183548b6 Added API 2016-02-25 10:18:31 +01:00
Thomas Kooi
427b14e3ba Merge pull request #3245 from GitHawk/rearm_fix
Fixing setVehicleAmmo for rearm
2016-02-20 17:08:37 +01:00
Githawk
c38b028c3a Fixing driver gun
Magazines from driver gun don't get removed
2016-02-11 19:06:37 +01:00
Githawk
475351fcfa Some bracket errors 2016-02-01 20:21:20 +01:00
Githawk
cc624f58dd Fixes and updates 2016-02-01 20:05:53 +01:00
PabstMirror
04bccf47d7 Replace all use of deprecated commands 2016-01-19 09:39:07 -06:00
IngoKauffmann
763df43fbc Added possibility to disallow rearm
> vehicle setVariable ["ace_rearm_disabled", true, true];
Also added ammo compatibility for RHS Mi24 with turret
2015-11-23 17:08:06 +01:00
IngoKauffmann
5a453a7074 Fixed flying
Moved attached ammo further away
2015-10-18 13:11:28 +02:00
IngoKauffmann
01c20d4544 Minor formating and docu 2015-08-21 22:57:14 +02:00
IngoKauffmann
9162789579 Manny things
Added dummy objects
Added carrying
Added dropping
Added storing
Added more progress bars
...
2015-08-20 19:51:22 +02:00
IngoKauffmann
dd1917464d Preliminary carrying and dropping of carried ammo
Could not use ace_dragging since it block interact menu
2015-08-20 01:20:31 +02:00
IngoKauffmann
a37608b9b1 Added generic dummy 2015-08-20 00:03:16 +02:00
IngoKauffmann
bdc5e54f55 Fixed turret locality and driver empty magazine issues 2015-08-19 17:33:32 +02:00
IngoKauffmann
cf9c49f13c Attempt to fix turret locality issues 2015-08-18 18:09:37 +02:00
IngoKauffmann
3072bd9d22 Fixed rearm sucess hint and collision with dummy 2015-08-18 17:38:50 +02:00
IngoKauffmann
463309db2d Small cleanup 2015-08-18 16:20:11 +02:00
jonpas
7244a583d6 Removed unnecessary ACE_Action calls parameters and changed others to _this 2015-08-18 03:37:02 +02:00
jonpas
33e92f8ca0 Fixed SmokeLauncherMag rearming on level 0 when empty 2015-08-18 02:57:39 +02:00
jonpas
c8c6488125 Cleaned, improved, fixed, changed - entire rearm 2015-08-18 02:32:10 +02:00
IngoKauffmann
0fcf692d36 Moved dummies to CfgVehicles 2015-08-16 23:52:37 +02:00
IngoKauffmann
1a22c4d85a Many things
Added dummy objects
Added carrying
Added display names for a few magazines, that didn't have any
2015-08-16 18:16:38 +02:00
IngoKauffmann
3eaaca84fb Added different rearm levels 2015-08-16 02:18:53 +02:00
IngoKauffmann
a8c263b6cc More fixes
Thanks guys
2015-08-15 19:23:02 +02:00
IngoKauffmann
26c54b352a Fixed some logistics remnants 2015-08-15 19:00:28 +02:00
IngoKauffmann
0c4924259d Initial code 2015-08-15 18:43:13 +02:00