ACE3/tools/cba/addons/main/script_macros_common.hpp

1469 lines
50 KiB
C++
Raw Normal View History

2015-04-04 14:33:53 +00:00
/*
2015-08-26 04:11:52 +00:00
Header: script_macros_common.hpp
2015-04-04 14:33:53 +00:00
2015-08-26 04:11:52 +00:00
Description:
A general set of useful macro functions for use by CBA itself or by any module that uses CBA.
2015-04-04 14:33:53 +00:00
2015-08-26 04:11:52 +00:00
Authors:
Sickboy <sb_at_dev-heaven.net> and Spooner
2015-04-04 14:33:53 +00:00
*/
/* ****************************************************
New - Should be exported to general addon
Aim:
- Simplify (shorten) the amount of characters required for repetitive tasks
- Provide a solid structure that can be dynamic and easy editable (Which sometimes means we cannot adhere to Aim #1 ;-)
An example is the path that is built from defines. Some available in this file, others in mods and addons.
Follows Standard:
Object variables: PREFIX_COMPONENT
Main-object variables: PREFIX_main
Paths: MAINPREFIX\PREFIX\SUBPREFIX\COMPONENT\SCRIPTNAME.sqf
e.g: x\six\addons\sys_menu\fDate.sqf
Usage:
define PREFIX and COMPONENT, then include this file
(Note, you could have a main addon for your mod, define the PREFIX in a macros.hpp,
and include this script_macros_common.hpp file.
Then in your addons, add a component.hpp, define the COMPONENT,
and include your mod's script_macros.hpp
In your scripts you can then include the addon's component.hpp with relative path)
TODO:
- Try only to use 1 string type " vs '
- Evaluate double functions, and simplification
- Evaluate naming scheme; current = prototype
- Evaluate "Debug" features..
- Evaluate "create mini function per precompiled script, that will load the script on first usage, rather than on init"
- Also saw "Namespace" typeName, evaluate which we need :P
- Single/Multi player gamelogics? (Incase of MP, you would want only 1 gamelogic per component, which is pv'ed from server, etc)
*/
#ifndef MAINPREFIX
2015-08-26 04:11:52 +00:00
#define MAINPREFIX x
2015-04-04 14:33:53 +00:00
#endif
#ifndef SUBPREFIX
2015-08-26 04:11:52 +00:00
#define SUBPREFIX addons
2015-04-04 14:33:53 +00:00
#endif
#ifndef MAINLOGIC
2015-08-26 04:11:52 +00:00
#define MAINLOGIC main
2015-04-04 14:33:53 +00:00
#endif
#ifndef VERSION
2015-08-26 04:11:52 +00:00
#define VERSION 0
2015-04-04 14:33:53 +00:00
#endif
#ifndef VERSION_AR
2015-08-26 04:11:52 +00:00
#define VERSION_AR VERSION
2015-04-04 14:33:53 +00:00
#endif
#ifndef VERSION_CONFIG
2015-08-26 04:11:52 +00:00
#define VERSION_CONFIG version = VERSION; versionStr = QUOTE(VERSION); versionAr[] = {VERSION_AR}
2015-04-04 14:33:53 +00:00
#endif
#define ADDON DOUBLES(PREFIX,COMPONENT)
#define MAIN_ADDON DOUBLES(PREFIX,main)
/* -------------------------------------------
Group: Debugging
------------------------------------------- */
/* -------------------------------------------
Macros: DEBUG_MODE_x
2015-08-26 04:11:52 +00:00
Managing debugging based on debug level.
2015-04-04 14:33:53 +00:00
2015-08-26 04:11:52 +00:00
According to the *highest* level of debugging that has been defined *before* script_macros_common.hpp is included,
only the appropriate debugging commands will be functional. With no level explicitely defined, assume DEBUG_MODE_NORMAL.
2015-04-04 14:33:53 +00:00
2015-08-26 04:11:52 +00:00
DEBUG_MODE_FULL - Full debugging output.
DEBUG_MODE_NORMAL - All debugging except <TRACE_n()> and <LOG()> (Default setting if none specified).
DEBUG_MODE_MINIMAL - Only <ERROR()> and <ERROR_WITH_TITLE()> enabled.
2015-04-04 14:33:53 +00:00
Examples:
2015-08-26 04:11:52 +00:00
In order to turn on full debugging for a single file,
(begin example)
// Top of individual script file.
#define DEBUG_MODE_FULL
#include "script_component.hpp"
(end)
In order to force minimal debugging for a single component,
(begin example)
// Top of addons\<component>\script_component.hpp
// Ensure that any FULL and NORMAL setting from the individual files are undefined and MINIMAL is set.
#ifdef DEBUG_MODE_FULL
#undef DEBUG_MODE_FULL
#endif
#ifdef DEBUG_MODE_NORMAL
#undef DEBUG_MODE_NORMAL
#endif
#ifndef DEBUG_MODE_MINIMAL
#define DEBUG_MODE_MINIMAL
#endif
#include "script_macros.hpp"
(end)
In order to turn on full debugging for a whole addon,
(begin example)
// Top of addons\main\script_macros.hpp
#ifndef DEBUG_MODE_FULL
#define DEBUG_MODE_FULL
#endif
#include "\x\cba\addons\main\script_macros_common.hpp"
(end)
2015-04-04 14:33:53 +00:00
Author:
2015-08-26 04:11:52 +00:00
Spooner
2015-04-04 14:33:53 +00:00
------------------------------------------- */
// If DEBUG_MODE_FULL, then also enable DEBUG_MODE_NORMAL.
#ifdef DEBUG_MODE_FULL
#define DEBUG_MODE_NORMAL
#endif
// If DEBUG_MODE_NORMAL, then also enable DEBUG_MODE_MINIMAL.
#ifdef DEBUG_MODE_NORMAL
#define DEBUG_MODE_MINIMAL
#endif
// If no debug modes specified, use DEBUG_MODE_NORMAL (+ DEBUG_MODE_MINIMAL).
#ifndef DEBUG_MODE_MINIMAL
#define DEBUG_MODE_NORMAL
#define DEBUG_MODE_MINIMAL
#endif
#ifdef THIS_FILE
#define THIS_FILE_ 'THIS_FILE'
2015-04-04 14:33:53 +00:00
#else
#define THIS_FILE_ __FILE__
2015-04-04 14:33:53 +00:00
#endif
/* -------------------------------------------
Macro: LOG()
Log a timestamped message into the RPT log.
2015-04-04 14:33:53 +00:00
Only run if <DEBUG_MODE_FULL> or higher is defined.
2015-04-04 14:33:53 +00:00
Parameters:
MESSAGE - Message to record [String]
2015-04-04 14:33:53 +00:00
Example:
2015-08-26 04:11:52 +00:00
(begin example)
LOG("Initiated clog-dancing simulator.");
(end)
2015-04-04 14:33:53 +00:00
Author:
2015-08-26 04:11:52 +00:00
Spooner
2015-04-04 14:33:53 +00:00
------------------------------------------- */
#ifdef DEBUG_MODE_FULL
#define LOG(MESSAGE) [THIS_FILE_, __LINE__, MESSAGE] call CBA_fnc_log
2015-04-04 14:33:53 +00:00
#else
#define LOG(MESSAGE) /* disabled */
#endif
/* -------------------------------------------
Macro: WARNING()
Record a timestamped, non-critical error in the RPT log.
2015-04-04 14:33:53 +00:00
2015-08-26 04:11:52 +00:00
Only run if <DEBUG_MODE_NORMAL> or higher is defined.
2015-04-04 14:33:53 +00:00
Parameters:
MESSAGE - Message to record [String]
2015-04-04 14:33:53 +00:00
Example:
2015-08-26 04:11:52 +00:00
(begin example)
WARNING("This function has been deprecated. Please don't use it in future!");
(end)
2015-04-04 14:33:53 +00:00
Author:
2015-08-26 04:11:52 +00:00
Spooner
2015-04-04 14:33:53 +00:00
------------------------------------------- */
#ifdef DEBUG_MODE_NORMAL
#define WARNING(MESSAGE) [THIS_FILE_, __LINE__, ('WARNING: ' + MESSAGE)] call CBA_fnc_log
2015-04-04 14:33:53 +00:00
#else
#define WARNING(MESSAGE) /* disabled */
#endif
/* -------------------------------------------
Macro: ERROR()
Record a timestamped, critical error in the RPT log.
Update from acemod master (#1) * Generic cycle attack profile key for missile guidance (#4787) * Generic cycle attack profile key for missile guidance * Add hint for weapons without huds * Fix Korean strings * Cleanup * Frag Superanal Cleanup (#4803) * Minimal frag cleanup * Why did this even happen in the first place Conflicts: addons/frag/functions/fnc_frago.sqf * New Function to Show BIS Style Curator Messages (#4844) * Add showMessage fnc that shows BIS curator messages * Add documentation * Make function simpler * Modify to fir new syntax * Handle non-string args * Generic cycle attack profile key for missile guidance (#4787) * Generic cycle attack profile key for missile guidance * Add hint for weapons without huds * Fix Korean strings * Cleanup * Cache Nametags onDraw3D flags. (#4847) * Cache Nametag flags * Remove unused privates * Fix fading, cursorOnly mode, improve cache reset * Fix header * Fix Javelin for AI (#4857) * Optimize Laserpointer (#4859) * only process one unit every 0.1 seconds * exitWith to keep indentation low * use event to determine isIR and isTI * correctly remove units with turned on lights from their arrays * handle weaponAccessories command reporting nil Conflicts: addons/laserpointer/XEH_postInit.sqf * Fix RHS m113 compat (#4881) * Fix passenger actions - Ensure order of MainActions (#4883) * Fix getPos order (#4889) * Use createSimpleObject to create tags (#4892) * Update CBA required version (#4899) * prep v3.9.0 * Update required CBA version * Medical/Repair 3den Toolbox State Fix (Bug fix for #4902) (#4905) * Update medical/repair 3den away from missionNamespace * Simplify save * Hide earplug actions if setting disabled (#4913) * Hide earplug actions if setting disabled * Add lines that are new * Pass map gestures draw by reference (#4914) * Verify params in atragmx profile gunlist (#4917) * Fix setVariablePublic reseting to old values (#4938) * Fix setVariablePublic reseting to old values * Don't drop delay time * Reload medical configs into extension on save load (#4941) * Fix lost magazines when restoring gunbag mags (#4942) * Add RHS GREF compat for RKG-3 grenade (#4944) * Fix intergrated scopes (#4945) * Require CBA v3.2.1 (#4954) Conflicts: addons/main/script_mod.hpp * Fix gforce avg on switching to aircraft (#4955) * Fix gforce avg on switching to aircraft * Dont use for-loop for neutral g-forces array * Update maps' latitude (#4961) - add Dingor - add MSKE 2017 - add G.O.S Leskovets - add Trung Si - add I44: Omaha v2 - add I44: Neaville and Neaville (Winter) - add I44: Battle of the Bulge * Fix rangecard not showing wind/lead (#4964) * Give options menu list focus (#4965) * Cleanup use of ACE_HashLocation (#4975) * Add validation on group id for map gesture color mapping (#4976) * Fix vehicle lock lockpick condition, Fix lockpicking from inside (#4985) * Prep 3.9.1 release * Fix cookoff desynch, fix #4900 Randomness would be calculated on every machine, but only vehicle explosion and sound are done by the server. Smoke, light and fire sfx are done by each client. * also fix cooking off ammo boxes * Fix cookoff desynch, fix #4900 Randomness would be calculated on every machine, but only vehicle explosion and sound are done by the server. Smoke, light and fire sfx are done by each client. * also fix cooking off ammo boxes * Add rearm config for Nemmera (#4992) * Sandbags surfaces update (#4971) * Use private keyword, move surface blacklist to script_component.hpp * Check height above terrain * Add Tanoa surfaces, Check if in water * Use 'dust' config entry to determine surface, Add common canDig (checks dustyness) * Re-enable compile cache * Revert to surface blacklist with dust as fallback * Move surface blacklist to script_component because SQF validator complains * Fix unarmed sprint->prone + minor perf improvments (#4887) * AB : AtragMx wiki updated (#4982) * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Add files via upload * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update publish.py for RHS Gref Compat (#4999) * Update atragmx.md * Delete atragmx1.jpg * Add files via upload * Translation: Missing 3 strings in Polish (#5008) * update user url * Jpn translate to v391 (#5011) * jpn translate slideshow Add the Japanese translation for slideshow for v3.9.1 * jpn translate for cookoff Add the Japanese translation for cookoff of the v3.9.1 * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Prep 3.9.1 release * Update atragmx.md * Dupplicate Polish entry (#5018) https://i.gyazo.com/c7557980d7d4c36709be78ef1f2c2a8f.png * Update atragmx.md * Add custom CfgUIGrids for microDagr (#5014) * Update atragmx.md * Add files via upload * Update atragmx.md * fix links and `alt` texts * Duplicate French entry (#5032) Removes a duplicate French entry, didn't saw it :/ * Wiki range card updated (#5029) * Update rangecard.md * Update rangecard.md * Update rangecard.md * Add files via upload * Update rangecard.md * fix links and `alt` texts * Wiki Advanced Ballistics updated (#5030) * Update advanced-ballistics.md * Update advanced-ballistics.md * Update advanced-ballistics.md * Update advanced-ballistics.md * Update advanced-ballistics.md * Update advanced-ballistics.md * Update advanced-ballistics.md * Update advanced-ballistics.md * Update advanced-ballistics.md * Update advanced-ballistics.md * Add files via upload * Update advanced-ballistics.md * fix links and `alt` texts * Wiki Kestrel 4500 updated (#5027) * Update kestrel4500.md * Update kestrel4500.md * Update kestrel4500.md * Update kestrel4500.md * Update kestrel4500.md * Update kestrel4500.md * Update kestrel4500.md * fix links and `alt` texts * Wiki scope updated (#5028) * Update scopes.md * Update scopes.md * Update scopes.md * Add files via upload * Update scopes.md * fix links and `alt` texts * French loc improvement (#5017) * French loc improvement (French) text as it is clutters the interface interface, making it uneasy for medic to use the it smoothly. https://i.gyazo.com/8d7a5bb2f15dd1332cec36f2eef510c8.png Hopefully suggested changes fixes that. There were a few typos and, in my opinion, unaccurate or missing translation. Based on French Army Field Manual, actual paramedical personnel and past work on XMedSys. * Pull 5017 with spaces instead of tabs https://github.com/acemod/ACE3/pull/5017 * Fixes a minor typo Selectioner -> Sélectionner * Duplicate entry (French) Removes a duplicate entry, didn't saw first time * Wiki scope updated_1 (#5037) * Update scopes.md * Update scopes.md * Update scopes.md * Add files via upload * Update scopes.md * fix links and `alt` texts * Delete scope_module.jpg * Add files via upload * Update scopes.md * French additions (Cargo) (#5040) Minor French text additions * French loc fixes (ballistics) (#5041) Minor French loc fixes * Update documentation for Vector21 Add explanation on how to switch range and azimuth units * Add blank line after heading * Update vector.md * Update atragmx.md * fix link atragmx.md * Fix dagr not showing bearing in mils (#5047) * Fix cargo loading to locked vehicle (#5049) * Update ACEX to 3.2.0.4 (#5062) * tweak ACE main menu info box * use https for main menu * use https for main men * fix highlighted info box color (#5075) * Filter headless clients from zeus teleportation (#5070) * Use setShotParents in Advanced Throwing (#5052) * Use setShotParents in Advanced Throwing - close #5034 * Execute setShotParents on server (server-only command) * Fix FCS Vehicle Init (#5063) * Tweak overheating (#4969) * Tweak overheating * Add define for constant magic num * Virtual units - skip goggles/hearing effects (#4988) * Disable goggles and hearing fx for virtual units * Cleanup some other CBA_fnc_addPlayerEventHandler * Fix tagging model cache (#5055) * Frag - Cleanup and Performance (#5010) * Frag - Cleanup and Performance * Add dots * (Medical) French text - minor changes (#5043) Minor changes due to users feedback * French localization complete (#5079) * French localization complete * STR_ACE_MapTools_drawStaightLines_description fix "l'on doit survoler le milieu du trait pour pouvoir le supprimer" * Space management alganthe : Espace en trop après référence. * Diapo alganthe : Slideshow -> diaporama Slide -> diapo * Cohesion fix alganthe : Vous avez traduit le nom du module juste au dessus (displayname). Il est vrai que les créateurs de missions doivent consulter une documentation principalement écrite en anglais, donc vous avez le choix de traduire la ligne ci-dessus ou la garder, les deux semblent valide à mes yeux. Reasoning : since French mission makers read reference material in English, it makes sense not to translate it and thus keep it simple for them. * Caisses de munitions caisse de mun -> caisses de munitions * STR_ACE_Scopes_Description Oops, forgot that one. * Fix RHS mp7 UBC (#5085) * Fix broken url on modules wiki page (#5088) * Fix Javelin for AI for RHS (#5096) * Remove CfgAiSkill config changes (#5091) * Remove CfgAiSkill config changes * Add note to wiki about removal * Add volume toggle docs (#5077) * Add volume toggle docs * Change version and remove ref to another mod * Changes as per review * Fix numbers * Fix refuel nozzle dropping to ground (#5119) * Fix jerry can refuel interaction overlapping (#5107) * Add keybind to toggle interaction menu (#5095) * Add Paradrop Time Coefficient Setting (#5116) * Add coef * Show cargo paradrop time in menu * Unary command, not a function call * If drop time is 0 don't show a progress bar * Add the setting to cargo's editor module * Swap values * Remove extra comma * Move unload message to paradrop event This way the message will show up on all paradrops, not just immidiate ones. * Disable search on spectator unit tree Finally found out how to do this. Having search enabled on the unit tree might seem useful, but it doesn't interact well with keyboard shortcuts used for other purposes like camera control as it causes the tree to jump around unexpectedly. * Simplify spectator compass code * Optimize spectator unit list function Making good use of the new `select` CODE syntax. * Add 3den info to spectator template - A `displayName` shown in the 3DEN multiplayer attributes display - A `respawnTypes` array to define which respawn types the template is compatible with (currently only includes `2,3` - need to investigate compatibility with other types further). * Fix #5081 The default values of the arrays manipulated by these functions overwrite any changes applied before settings have finished initalising. This won't be an issue after #4456 is merged in future. * Improve Japanese translation (#5133) * Add the Japanese translation for cargo Add the Japanese translation for cargo, fix to html tag and few improvement * fix the Japanese transltion Fix the Japanese translation for attach. it was used wrong html tag. * changed The Japanese translation Changed the Japanese translation of azimuth angle * fix The Japanese translation Fix the Japanese translation for chemlights. it was used wrong html tag. * fix The Japanese translation Fix the Japanese translation for laserpointer. it was used wrong html tag. * Fix the Japanese translation Fix the Japanese translation for medical_blood. it was used wrong translation. * Fix the Japanese translation Fix the Japanese translation for rearm. it was used wrong translation. * add The Japanese translation add The Japanese translation to new words * Improve The Japanese translation Improve, fix and change The Japanese translation * minor fix to Japanese translation minor fix to Japanese translation. see b1b07c5 * Fix Spotting Scope Interaction Point (#5132) * Disable ACE_FCS on RHS Russian Attack Helis (#5145) * Switch 2 perm PFEH to everyFrame (#5140) * Explosives - Add code handler for detonation (#5115) * Explosives - Add code handler for detonation * Add info to wiki * Fix cellphone in demo code, move example to wiki * Zeus Suppression Module (#4977) * add base structure * Add getModuleDestination * Add 2d map support, debug * Cleanup, handle weapon max range * Handle non-local units * Use new showMessage func * Run on groups when placed on leader * Support for Indirect Fire Vehicles * Cleanup * Use doArtilleryFire which was fixed in 1.68 * hitreactions - Close map on hit (#5099) * Wiki AtragMx minor changes (#5111) * fix markdown syntax * Update atragmx.md * AB: Lythium latitude (#5109) * Update fnc_getMapData.sqf * bump1 * bump2 * AB: update compat R3F v3.5 (#5097) * Update CfgWeapons.hpp * Update CfgAmmo.hpp * Update CfgAmmo.hpp * Update CfgWeapons.hpp * Update CfgWeapons.hpp * Update CfgWeapons.hpp * Update CfgWeapons.hpp * Update CfgWeapons.hpp * fix missing `{` * fix `dispersion` * fix space * AtragMx: BC G1 .338LM API526 (#5069) * Update fnc_initGunList.sqf * Update fnc_initGunList.sqf * C1 coefficient 0.58 * Jerry Can - only set global var on server (#5131) * Add Arma 3 Issues breaking ace_rearm (#5150) * MapGesutres - Fix dependency on maptools (#5154) * MapGesutres - Use getVariable to remove dependency * Use isModLoaded * Add missing base class to r3f compat (#5156) * Disable g-forces for UAV AI (#5094) * Increase max weapon index for large modsets (#5054) * Disable rearm,refuel on dead vehicles (#5158) * SQF Lint Cleanup Pass (#5157) * SQF Lint Cleanup Pass * Fix var in TRACE * Add basic python tool * Simplify * Hit space key 6 times * Fix error in dropNozzle * handle error message exceptions * Fix py * 1.70 CMs - Remove countermeasure mode switching (#5163) * 1.70 FCS - Remove ACE_FCS from most vics (#5152) * Handle 1.70 FCS * Cleanup CfgWeapons * Add warning for discreteDistance * 1.70 CMs - Remove countermeasure mode switching (#5163) * 1.70 FCS - Remove ACE_FCS from most vics (#5152) * Handle 1.70 FCS * Cleanup CfgWeapons * Add warning for discreteDistance * Realistic names for 1.70 pylon magazines (#5165) * Realistic names for 1.70 pylon magazines (#5165) * Fix gatling_30mm UBC for 1.70 (#5125) * Fix gatling_30mm UBC for 1.70 * Fix verEsion * Fix gatling_30mm UBC for 1.70 (#5125) * Fix gatling_30mm UBC for 1.70 * Fix verEsion * Prep 3.9.2 (version numbers) * Update required Arma 3 version to 1.70 * Prepare release 3.9.2 * Update helmet hearing protection for RHS-US (#5146) * Update helmet hearing protection for RHS-US * Hearing - Add standardized helmet protection macros * Tweak peltor vol * Disable aircraft flightmodel changes (#5167) * Disable aircraft flightmodel changes * Remove files * Fix merge, cbaEvents, macros, cleanup * Use correct TransportX type for ace items (#5168) * Use correct TransportX type for ace items * Fix messing with flare colors * Just warn for old compat pbos (#5177) * Just warn for old compat pbos * Use CBA_fnc_error big warning box * fix caps * Italian translation (Add & Fix) (#5193) Added Italian translation for: -advanced fatigue -advanced throwing -cook off -dogtags -gunbag -ui-scopes and much more... Fixed a lot of grammatical errors * Zeus updated (#5198) Fixes and adds in the zeus section * Add AtixNeon to AUTHORS.txt * Add realistic names to dynamic loadout classes (#5185) * RHS CH-47 - use animationSourcePhase (#5201) * Fix Zeus teleport players module (#5175) * Add dummy function to zeus UI modules This removes the message about the module having no function when in SP. * Fix zeus teleport module for non-local units BI made a change to the function this module was using. So now it has to be ran local to the player in question. * Adv Throw - Handle getShotParents being [] (#5210) * Correct compat classnames (#5204) * Linking belt refactoring (#5206) * Linking belt refatoring startLinking belt now uses canLinkBelt so if condition needs to be changed then you can do it on one position. * Fixed requested change Fixed requested change * AdvThrow - Handle bugged currentThrowable (#5216) * Fix AB water vapor pressure calc (#4956) * Fix AB water vapor pressure calc * Fix calc in weather * Cleanup usage of constant * Add RVExtensionVersion, Rebuild AB DLLs * CH53 Fastroping and other fixes (#4713) * CH53 Fastroping and Fixes Added fastrope points for CH53. The getOut EH is required to keep the doors open when a unit exits the vehicle and it uses the vehicle animation "doorHandler_R" or "doorHandler_L" as a placeholder to determine if the doors are open(1)/close(0). eg. In UH1Y (Unarmed), when the right door is opened using the useraction, "doorRB" and "doorHandler_R" will be set to 1. * Changed TAB to 4 spaces * Moved bracket to follow guidelines * Refuel for non-AllVehicle objects (#5151) * Enabled refuel for non-AllVehicles objects. Un-magic'd refuel progress timer. * Changed helper attach position to centre of object. Offset applied when rope attached. * Made fully compatible with non-thingX simulation types. Removed destruction effects of helper object. * Using arma model. Removed ACE_Actions from helper object. * Correct use of hideObjectGlobal * Remove actions, cargo, repair on helper * Switched helper to be setVar'd on the nozzle object * Linkingbelt refactoring (#5213) * Linking belt refatoring startLinking belt now uses canLinkBelt so if condition needs to be changed then you can do it on one position. * Fixed requested change Fixed requested change * simplified it even more canLinkBelt now returns a value over 0 if success and -1 if something is not right. * Fixed bug where if error we would not exit Fixed bug where if error we would not exit * changed name on canLinkBelt Changed name to better reflect the function of the function. * Author hype * fixed return value info fixed return value info * fix header * Fix ammo count hidden in UAVs (#5222) * Fix ammo count hidden in UAVs * Switch to ace_reload condition * Add arsenal zeus modules (#4576) * Add zeus arsenal modules * Add french strings to arsenal modules * Fix typo in french string * Make changes to fit review * locality check, use showMessage, set categroy * Cargo load menu overhaul (#4871) * Add submenu with vehicles to cargo load menu * replace private ARRAY with keyword * fix ace function macro using * filter vehicles without cargo * add Load condition, clean params, fix param reusing * replace nearEntities with nearestObjects, add macro * optimize, del magic, replace count with forEach * del unused functions * del useless _this parameter * Cleanup aircraft (#5197) * Refuel - Add setting for hose length (#5224) * Remove unit from laser pointer list if laser removed (#5190) * Handle escape menu with toggle iteractMenu (#5144) * Handle escape menu with toggle iteractMenu * Work on non-cursor menu * Close cursor menu if open when switching * Update fnc_handleEscapeMenu.sqf * French translation missing (#5217) * French translation for the two last entries * French translation for the last entrie * French Translation for the first entrie * correct the spelling error * Lower minimum speed limiter speed to 5 km/h (#5065) * Update fnc_speedLimiter.sqf * No minimum speed needed anymore Minimum speed limit of 10 km/h was needed in the past due to engine limitations. Multiple user tests have shown that the minimum speed is not needed anymore. The new minimum of 0 km/h allows for example setting walking speed for vehicles (<10 km/h). * Change minimum required speed for speed limiter to 3 km/h To avoid problems with negative speeds (driving backwards) and zero speed, the current change switches from 10 km/h minimum speed to 3 km/h minimum speed. This seems to be the optimal solution to allow all relevant speeds including walking speed. * Changed minimum required speed to 5 km/h Officially the minimum required speed is 10 km/h in the master. Lower minimum needed to set car speed to walking speed of accompanying soldiers. Problems have been reported with 3 kmh/ using cars like ATVs. Thus the new commit is set to 5 km/h minimum speed. Not tested with ATVs yet. * Minor fixes, cleanup, add lint ignore directives (#5176) - Fix bug in getNumberMagazinesIn (func not used) - Fix bug in seekerFindLaserSpot (func not used yet) - Everything else is just cleanup * Fix zeus interaction locality (#5214) - The `setUnitPos`, `setFormation`, `setSpeedMode` and `setBehaviour` commands require local arguments - The waypoint equivalents require server execution - Add conditions to only show interactions when the appropriate things are selected * Add cargo eden attributes (#4780) - Add a ace_cargo_space attribute to vehicles to alter how much cargo they can carry. - Add an ace_cargo_size attribute to objects to alter how much cargo space they consume. - Add two public functions `fnc_setSize.sqf` and `fnc_setSpace.sqf` to update the cargo size/space respectively of any given object. - Deprecate cargo makeLoadable module and public function. - Added some macros to get the space/size of a config, making code more readable in places. * Fix IVs not showing in patient display (#5230) Fix #5192 for 3.10 * Remove submuntion ammo changes to A-10 (#5231) * Remove changes to Aircraft cannons * keep ammo changes, i guess * Fix zeus RC units using player damage treshold (#5219) * Fix zeus RC units using player damage treshold Closes #5218 * add pabstmirrors suggestion use gvar * Implement new cook off SFX (#5179) * Implement new cook off SFX with variants * Add hybrid V to authors * Open glass and CUP doors (#5226) * Fixed glassdoor Fixed so glassdoor now works with ace slow open. * Made it more pretty with new file Made it more pretty with new file * Tidy up a bit * Removed white space * Replace tabs with spaces Replace tabs with spaces * Simplified and added comments * Changes + was stupid was commit Changes to go with code guidlines and extra check if door is empty * Tabs to spaces * Small fixes + Fixed so CUP houses now works Fixed so CUP houses now works * Remove todo * Fixed requested changes * Removed whitespaces * Vehicle quick mount (#4931) * Add quickmount files from ACEX * Rename to ACE3, Streamline, Use clientInit * Rename functions to ACE3, Fix crew getting * Fix enabled text * Fix texts * Remove spaces * Rework seat search * NLAW - Predicted Line Of Sight Guidance and Overfly Attack Mode (#4791) * NLAW Prototype * Make AI Compatible * Add Overfly Top Attack Mode * Limit Max Deflection * Base prediction on AI skill * Generic cycle attack profile key for missile guidance * Add hint for weapons without huds * Configure for attack cycle key * Finish OTA ammo effects * Cleanup * Arm at 20m * Disable Debug * No models for short lived sub-ammos * Fix Korean strings * Change AI randomization to use skillFinal * Add wiki doc for nlaw * Cleanup * Cleanup * Cleanup * Hellfire missiles (#4679) * Hellfire * Cleanup dev macros * Cleanup some debug * Add base interaction node for firemode actions * Handle bad data in attack profile variable * Skip ammo checks (returns bad data on added weaps) * Add mags sizes for apache * Add Hellfire Wiki Doc * Cleanup doc * Add pylon support * Add support for pilot controlled weapons * Add label to pylon mags * Cleanup vehicle configs, autoAdd laser des, fix ineractions for driver * [Docs] Update component dependencies Automatically committed through Travis CI. [ci skip] * [Docs] Update component dependencies Automatically committed through Travis CI. [ci skip] * [Docs] Update component dependencies Automatically committed through Travis CI. [ci skip] * Fix spectator icons and camera jitter (#5067) * Use `Visual` commands for icons and external camera position * Fix accidental numerical change (#5235) * Fix being unable to throw last mag (#5242) * Italian Translation Update (#5243) Added Italian translation for: -cargo -hellfire -nlaw -quickmount -refuel -zeus * Cleanup unused hellfire vic stringtable (#5245) * Fix weapon select grenade count wehn using advThrow (#5244) * Raise lower carry object (#5234) * Fix to move items up and down * Fixed private * Fixed public bug * Inserted Pabst solution * Remove extra space * Fixed request + added author * Fixed to correct comment * Tweeked comment again * Added more info about indentations, tabs and EditorConfig (#5249) * Added more info about indentations, tabs and EditorConfig * Fixed original misspelling "Every" * Added Pylon weapon as a valid weapon (#5250) * Disable dragging on big AA Turrets (#5251) * note required PboProject version (#5256) * note required PboProject version * Update setting-up-the-development-environment.md * Conform function headers to coding guidelines (#5255) * Fixed headers to work with silentspike python script * Fixed rest of the files * Fixed ace-team * Rearm - Pylon Support and Dynamically Add Supply Actions (#5183) * Dynamic Add * Support 1.70 Pylon Loadouts * Properly handle old compat pbos - Update RHS Compat * Re-add documentation * cleanup headers (note from other pr) * Cleanup * Fix var spelling * Fix minor debug that got left in (#5260) * Repair specialist rename, fixes #3186 (#5248) * Changed name * Fixed Enginner only german and removed big letters * Added docs + PR fixes #3186 * Removed other languages * Fixed request and added comment * Replace all usage of term "Specialist" * Add Ability to Change Repair Times of Vehicles (#5205) * Add ability to change repair time based on vehicle * Much better * Unary command not function * Allow changing of track or wheel object per vehicle * Lot more complicated than I thought * Fix some event names on wiki (#5254) * Fix some event names on wiki * Switch callable events to functions * Remove maximum distance of attach to vehicle action (#5262) * Remove maximum distance of attachi to vehicle action * Readd max distance, 10 meters to allow usage with big vehicles but also end placement system if too far * Update kestrel4500.md (#5228) * Add repair feature to wiki (#5247) * Add repair feature to wiki * Add blank lines, use adv engineer * Add repair framework page * Fix Large IED defuse distance (#5261) * Fix for large-ied bug because underwater thing have changed * Added size of IED in config and determine defuse range * Added typo * Added help text to wiki about defusing * Better English * Increased the defusal range on large bombs make it similar to small ieds * Add wiki doc * Use getUnitTrait for medics, engineers and EOD (#5246) * Increase required CBA version to 3.3.1 * Prepare version 3.10.0 * Update cargo docs with new public functions (#5266) * Update cargo docs with new public functions * Add myself to squad.xml * Italian translation updated and fixed (#5268) Added newest lines for: -Rearm -Repair * Update homepage version numbers #4692 [ci skip] * Fix isFeatureCameraActive for Spectator enhacements (#5269) * fix isFeatureCameraActive for spec ace_spectator_camera was removed in 77c2b99ee542e3825c4f25e7b5a399597fd436e2 . spectator module initializes three separate cameras instead, of which for example ace_spectator_freeCamera can be used to check if spec mode is active * use ace_spectator_isSet to check for spec mode * Prepare release 3.10.0 (build 2) * fix video link (#5276) * Jpn translate 73bd37 (#5277) * Update the Jpn translation for cargo Update the Japanese translation for cargo * Add the Jpn translation for hellfire Add the Japanese translation for hellfire * Add the Jpn translation for nlaw Add the Japanese translation for nlaw * Add the Jpn translation for rearm Add the Japanese translation for rearm * Update the Jpn translation for refuel Update the Japanese translation for refuel * Update the Jpn translation for repair Update the Japanese translation for repair * Update the Jpn translation for zeus Update the Japanese translation for zeus * gos ndjenahoud latitude (#5275) * Count untraced errors in make.py (#5265) * Count untraced errors (any errors besides failed PBO builds and missinf files) in make.py * Fix error count and prettify printing * Cleanup heli pod actions (#5271) Close #4783 - Make taru pods non loadable - Make taru pods non draggable - Increase interaction range for huron pods * Make array of cargo holders dynamic (#5274) * Jpn translate feee7f5 (#5280) * Add the Jpn translation for quickmount Add the Japanese translation for quickmount * Update the Jpn translation for repair Update the Japanese translation for repair * Fix isFeatureCameraActive (#5291) * Fix isFeatureCameraActive (#5291) * Prepare release 3.10.1 * Add malden to getMapData (#5297) * Add malden to getMapData * Merge with CWR2 malden * Add malden to getMapData (#5297) * Add malden to getMapData * Merge with CWR2 malden * Add Chinese Traditional & Simplified Localization (#5295) Add Chinese Traditional & Simplified Localization * compats - Fix config name for resupply vics (#5300) * Modify JoinGroup action to show group name (#5287) * Modify JoinGroup action to show group name * header * Header * Repair - Handle depends = "0" (#5283) * Repair - Handle depends = "0" * quote * Refuel - change nozzle position calc (#5279) * Handle ace_cargo_canLoad set to scalar (#5306) * Add XEH to ace_module (#5304) * Changed hellfire interaction check & added N variant (#5294) * Changed weapon check for interaction to generic ace_hellfire_enabled value * Added November hellfire variant * Cleanup * +1 * Japanese translation d02dacf (#5309) * add the Jpn translation for repair add the Japanese translation for repair * minor fix to Jpn translation for medical minor fix to Jpn translation for medical * Correct new Chinese stringtable identifiers (#5334) * Fix the issue that SFX variants are not global (#5335) * Fix the issue that SFX variants are not global what means that different players can get different pressure Cookoff sounds to prevent that i split up the sounds in 3 types and used a Weighted select to have the befor used values back * add todo for 1.74 * inherit in CfgSFX from 1 class * fix #5324 (#5325) * Minor update Wiki AtragMx (#5322) * update wiki atragmx * Add files via upload * Fix broken fonts for map gps display (#5337) EtelkaNarrowMediumPro broke with 1.72 hotfix * Handle locked doors (#5345) * Allow repairing from slingload pods (#5316) * Add cargo space to huron containers (#5315) * Rallypoints- Don't modify setVar if already set (#5347)
2017-07-10 08:27:29 +00:00
The heading is "ERROR" (use <ERROR_WITH_TITLE()> for a specific title).
Update from acemod master (#1) * Generic cycle attack profile key for missile guidance (#4787) * Generic cycle attack profile key for missile guidance * Add hint for weapons without huds * Fix Korean strings * Cleanup * Frag Superanal Cleanup (#4803) * Minimal frag cleanup * Why did this even happen in the first place Conflicts: addons/frag/functions/fnc_frago.sqf * New Function to Show BIS Style Curator Messages (#4844) * Add showMessage fnc that shows BIS curator messages * Add documentation * Make function simpler * Modify to fir new syntax * Handle non-string args * Generic cycle attack profile key for missile guidance (#4787) * Generic cycle attack profile key for missile guidance * Add hint for weapons without huds * Fix Korean strings * Cleanup * Cache Nametags onDraw3D flags. (#4847) * Cache Nametag flags * Remove unused privates * Fix fading, cursorOnly mode, improve cache reset * Fix header * Fix Javelin for AI (#4857) * Optimize Laserpointer (#4859) * only process one unit every 0.1 seconds * exitWith to keep indentation low * use event to determine isIR and isTI * correctly remove units with turned on lights from their arrays * handle weaponAccessories command reporting nil Conflicts: addons/laserpointer/XEH_postInit.sqf * Fix RHS m113 compat (#4881) * Fix passenger actions - Ensure order of MainActions (#4883) * Fix getPos order (#4889) * Use createSimpleObject to create tags (#4892) * Update CBA required version (#4899) * prep v3.9.0 * Update required CBA version * Medical/Repair 3den Toolbox State Fix (Bug fix for #4902) (#4905) * Update medical/repair 3den away from missionNamespace * Simplify save * Hide earplug actions if setting disabled (#4913) * Hide earplug actions if setting disabled * Add lines that are new * Pass map gestures draw by reference (#4914) * Verify params in atragmx profile gunlist (#4917) * Fix setVariablePublic reseting to old values (#4938) * Fix setVariablePublic reseting to old values * Don't drop delay time * Reload medical configs into extension on save load (#4941) * Fix lost magazines when restoring gunbag mags (#4942) * Add RHS GREF compat for RKG-3 grenade (#4944) * Fix intergrated scopes (#4945) * Require CBA v3.2.1 (#4954) Conflicts: addons/main/script_mod.hpp * Fix gforce avg on switching to aircraft (#4955) * Fix gforce avg on switching to aircraft * Dont use for-loop for neutral g-forces array * Update maps' latitude (#4961) - add Dingor - add MSKE 2017 - add G.O.S Leskovets - add Trung Si - add I44: Omaha v2 - add I44: Neaville and Neaville (Winter) - add I44: Battle of the Bulge * Fix rangecard not showing wind/lead (#4964) * Give options menu list focus (#4965) * Cleanup use of ACE_HashLocation (#4975) * Add validation on group id for map gesture color mapping (#4976) * Fix vehicle lock lockpick condition, Fix lockpicking from inside (#4985) * Prep 3.9.1 release * Fix cookoff desynch, fix #4900 Randomness would be calculated on every machine, but only vehicle explosion and sound are done by the server. Smoke, light and fire sfx are done by each client. * also fix cooking off ammo boxes * Fix cookoff desynch, fix #4900 Randomness would be calculated on every machine, but only vehicle explosion and sound are done by the server. Smoke, light and fire sfx are done by each client. * also fix cooking off ammo boxes * Add rearm config for Nemmera (#4992) * Sandbags surfaces update (#4971) * Use private keyword, move surface blacklist to script_component.hpp * Check height above terrain * Add Tanoa surfaces, Check if in water * Use 'dust' config entry to determine surface, Add common canDig (checks dustyness) * Re-enable compile cache * Revert to surface blacklist with dust as fallback * Move surface blacklist to script_component because SQF validator complains * Fix unarmed sprint->prone + minor perf improvments (#4887) * AB : AtragMx wiki updated (#4982) * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Add files via upload * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update publish.py for RHS Gref Compat (#4999) * Update atragmx.md * Delete atragmx1.jpg * Add files via upload * Translation: Missing 3 strings in Polish (#5008) * update user url * Jpn translate to v391 (#5011) * jpn translate slideshow Add the Japanese translation for slideshow for v3.9.1 * jpn translate for cookoff Add the Japanese translation for cookoff of the v3.9.1 * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Prep 3.9.1 release * Update atragmx.md * Dupplicate Polish entry (#5018) https://i.gyazo.com/c7557980d7d4c36709be78ef1f2c2a8f.png * Update atragmx.md * Add custom CfgUIGrids for microDagr (#5014) * Update atragmx.md * Add files via upload * Update atragmx.md * fix links and `alt` texts * Duplicate French entry (#5032) Removes a duplicate French entry, didn't saw it :/ * Wiki range card updated (#5029) * Update rangecard.md * Update rangecard.md * Update rangecard.md * Add files via upload * Update rangecard.md * fix links and `alt` texts * Wiki Advanced Ballistics updated (#5030) * Update advanced-ballistics.md * Update advanced-ballistics.md * Update advanced-ballistics.md * Update advanced-ballistics.md * Update advanced-ballistics.md * Update advanced-ballistics.md * Update advanced-ballistics.md * Update advanced-ballistics.md * Update advanced-ballistics.md * Update advanced-ballistics.md * Add files via upload * Update advanced-ballistics.md * fix links and `alt` texts * Wiki Kestrel 4500 updated (#5027) * Update kestrel4500.md * Update kestrel4500.md * Update kestrel4500.md * Update kestrel4500.md * Update kestrel4500.md * Update kestrel4500.md * Update kestrel4500.md * fix links and `alt` texts * Wiki scope updated (#5028) * Update scopes.md * Update scopes.md * Update scopes.md * Add files via upload * Update scopes.md * fix links and `alt` texts * French loc improvement (#5017) * French loc improvement (French) text as it is clutters the interface interface, making it uneasy for medic to use the it smoothly. https://i.gyazo.com/8d7a5bb2f15dd1332cec36f2eef510c8.png Hopefully suggested changes fixes that. There were a few typos and, in my opinion, unaccurate or missing translation. Based on French Army Field Manual, actual paramedical personnel and past work on XMedSys. * Pull 5017 with spaces instead of tabs https://github.com/acemod/ACE3/pull/5017 * Fixes a minor typo Selectioner -> Sélectionner * Duplicate entry (French) Removes a duplicate entry, didn't saw first time * Wiki scope updated_1 (#5037) * Update scopes.md * Update scopes.md * Update scopes.md * Add files via upload * Update scopes.md * fix links and `alt` texts * Delete scope_module.jpg * Add files via upload * Update scopes.md * French additions (Cargo) (#5040) Minor French text additions * French loc fixes (ballistics) (#5041) Minor French loc fixes * Update documentation for Vector21 Add explanation on how to switch range and azimuth units * Add blank line after heading * Update vector.md * Update atragmx.md * fix link atragmx.md * Fix dagr not showing bearing in mils (#5047) * Fix cargo loading to locked vehicle (#5049) * Update ACEX to 3.2.0.4 (#5062) * tweak ACE main menu info box * use https for main menu * use https for main men * fix highlighted info box color (#5075) * Filter headless clients from zeus teleportation (#5070) * Use setShotParents in Advanced Throwing (#5052) * Use setShotParents in Advanced Throwing - close #5034 * Execute setShotParents on server (server-only command) * Fix FCS Vehicle Init (#5063) * Tweak overheating (#4969) * Tweak overheating * Add define for constant magic num * Virtual units - skip goggles/hearing effects (#4988) * Disable goggles and hearing fx for virtual units * Cleanup some other CBA_fnc_addPlayerEventHandler * Fix tagging model cache (#5055) * Frag - Cleanup and Performance (#5010) * Frag - Cleanup and Performance * Add dots * (Medical) French text - minor changes (#5043) Minor changes due to users feedback * French localization complete (#5079) * French localization complete * STR_ACE_MapTools_drawStaightLines_description fix "l'on doit survoler le milieu du trait pour pouvoir le supprimer" * Space management alganthe : Espace en trop après référence. * Diapo alganthe : Slideshow -> diaporama Slide -> diapo * Cohesion fix alganthe : Vous avez traduit le nom du module juste au dessus (displayname). Il est vrai que les créateurs de missions doivent consulter une documentation principalement écrite en anglais, donc vous avez le choix de traduire la ligne ci-dessus ou la garder, les deux semblent valide à mes yeux. Reasoning : since French mission makers read reference material in English, it makes sense not to translate it and thus keep it simple for them. * Caisses de munitions caisse de mun -> caisses de munitions * STR_ACE_Scopes_Description Oops, forgot that one. * Fix RHS mp7 UBC (#5085) * Fix broken url on modules wiki page (#5088) * Fix Javelin for AI for RHS (#5096) * Remove CfgAiSkill config changes (#5091) * Remove CfgAiSkill config changes * Add note to wiki about removal * Add volume toggle docs (#5077) * Add volume toggle docs * Change version and remove ref to another mod * Changes as per review * Fix numbers * Fix refuel nozzle dropping to ground (#5119) * Fix jerry can refuel interaction overlapping (#5107) * Add keybind to toggle interaction menu (#5095) * Add Paradrop Time Coefficient Setting (#5116) * Add coef * Show cargo paradrop time in menu * Unary command, not a function call * If drop time is 0 don't show a progress bar * Add the setting to cargo's editor module * Swap values * Remove extra comma * Move unload message to paradrop event This way the message will show up on all paradrops, not just immidiate ones. * Disable search on spectator unit tree Finally found out how to do this. Having search enabled on the unit tree might seem useful, but it doesn't interact well with keyboard shortcuts used for other purposes like camera control as it causes the tree to jump around unexpectedly. * Simplify spectator compass code * Optimize spectator unit list function Making good use of the new `select` CODE syntax. * Add 3den info to spectator template - A `displayName` shown in the 3DEN multiplayer attributes display - A `respawnTypes` array to define which respawn types the template is compatible with (currently only includes `2,3` - need to investigate compatibility with other types further). * Fix #5081 The default values of the arrays manipulated by these functions overwrite any changes applied before settings have finished initalising. This won't be an issue after #4456 is merged in future. * Improve Japanese translation (#5133) * Add the Japanese translation for cargo Add the Japanese translation for cargo, fix to html tag and few improvement * fix the Japanese transltion Fix the Japanese translation for attach. it was used wrong html tag. * changed The Japanese translation Changed the Japanese translation of azimuth angle * fix The Japanese translation Fix the Japanese translation for chemlights. it was used wrong html tag. * fix The Japanese translation Fix the Japanese translation for laserpointer. it was used wrong html tag. * Fix the Japanese translation Fix the Japanese translation for medical_blood. it was used wrong translation. * Fix the Japanese translation Fix the Japanese translation for rearm. it was used wrong translation. * add The Japanese translation add The Japanese translation to new words * Improve The Japanese translation Improve, fix and change The Japanese translation * minor fix to Japanese translation minor fix to Japanese translation. see b1b07c5 * Fix Spotting Scope Interaction Point (#5132) * Disable ACE_FCS on RHS Russian Attack Helis (#5145) * Switch 2 perm PFEH to everyFrame (#5140) * Explosives - Add code handler for detonation (#5115) * Explosives - Add code handler for detonation * Add info to wiki * Fix cellphone in demo code, move example to wiki * Zeus Suppression Module (#4977) * add base structure * Add getModuleDestination * Add 2d map support, debug * Cleanup, handle weapon max range * Handle non-local units * Use new showMessage func * Run on groups when placed on leader * Support for Indirect Fire Vehicles * Cleanup * Use doArtilleryFire which was fixed in 1.68 * hitreactions - Close map on hit (#5099) * Wiki AtragMx minor changes (#5111) * fix markdown syntax * Update atragmx.md * AB: Lythium latitude (#5109) * Update fnc_getMapData.sqf * bump1 * bump2 * AB: update compat R3F v3.5 (#5097) * Update CfgWeapons.hpp * Update CfgAmmo.hpp * Update CfgAmmo.hpp * Update CfgWeapons.hpp * Update CfgWeapons.hpp * Update CfgWeapons.hpp * Update CfgWeapons.hpp * Update CfgWeapons.hpp * fix missing `{` * fix `dispersion` * fix space * AtragMx: BC G1 .338LM API526 (#5069) * Update fnc_initGunList.sqf * Update fnc_initGunList.sqf * C1 coefficient 0.58 * Jerry Can - only set global var on server (#5131) * Add Arma 3 Issues breaking ace_rearm (#5150) * MapGesutres - Fix dependency on maptools (#5154) * MapGesutres - Use getVariable to remove dependency * Use isModLoaded * Add missing base class to r3f compat (#5156) * Disable g-forces for UAV AI (#5094) * Increase max weapon index for large modsets (#5054) * Disable rearm,refuel on dead vehicles (#5158) * SQF Lint Cleanup Pass (#5157) * SQF Lint Cleanup Pass * Fix var in TRACE * Add basic python tool * Simplify * Hit space key 6 times * Fix error in dropNozzle * handle error message exceptions * Fix py * 1.70 CMs - Remove countermeasure mode switching (#5163) * 1.70 FCS - Remove ACE_FCS from most vics (#5152) * Handle 1.70 FCS * Cleanup CfgWeapons * Add warning for discreteDistance * 1.70 CMs - Remove countermeasure mode switching (#5163) * 1.70 FCS - Remove ACE_FCS from most vics (#5152) * Handle 1.70 FCS * Cleanup CfgWeapons * Add warning for discreteDistance * Realistic names for 1.70 pylon magazines (#5165) * Realistic names for 1.70 pylon magazines (#5165) * Fix gatling_30mm UBC for 1.70 (#5125) * Fix gatling_30mm UBC for 1.70 * Fix verEsion * Fix gatling_30mm UBC for 1.70 (#5125) * Fix gatling_30mm UBC for 1.70 * Fix verEsion * Prep 3.9.2 (version numbers) * Update required Arma 3 version to 1.70 * Prepare release 3.9.2 * Update helmet hearing protection for RHS-US (#5146) * Update helmet hearing protection for RHS-US * Hearing - Add standardized helmet protection macros * Tweak peltor vol * Disable aircraft flightmodel changes (#5167) * Disable aircraft flightmodel changes * Remove files * Fix merge, cbaEvents, macros, cleanup * Use correct TransportX type for ace items (#5168) * Use correct TransportX type for ace items * Fix messing with flare colors * Just warn for old compat pbos (#5177) * Just warn for old compat pbos * Use CBA_fnc_error big warning box * fix caps * Italian translation (Add & Fix) (#5193) Added Italian translation for: -advanced fatigue -advanced throwing -cook off -dogtags -gunbag -ui-scopes and much more... Fixed a lot of grammatical errors * Zeus updated (#5198) Fixes and adds in the zeus section * Add AtixNeon to AUTHORS.txt * Add realistic names to dynamic loadout classes (#5185) * RHS CH-47 - use animationSourcePhase (#5201) * Fix Zeus teleport players module (#5175) * Add dummy function to zeus UI modules This removes the message about the module having no function when in SP. * Fix zeus teleport module for non-local units BI made a change to the function this module was using. So now it has to be ran local to the player in question. * Adv Throw - Handle getShotParents being [] (#5210) * Correct compat classnames (#5204) * Linking belt refactoring (#5206) * Linking belt refatoring startLinking belt now uses canLinkBelt so if condition needs to be changed then you can do it on one position. * Fixed requested change Fixed requested change * AdvThrow - Handle bugged currentThrowable (#5216) * Fix AB water vapor pressure calc (#4956) * Fix AB water vapor pressure calc * Fix calc in weather * Cleanup usage of constant * Add RVExtensionVersion, Rebuild AB DLLs * CH53 Fastroping and other fixes (#4713) * CH53 Fastroping and Fixes Added fastrope points for CH53. The getOut EH is required to keep the doors open when a unit exits the vehicle and it uses the vehicle animation "doorHandler_R" or "doorHandler_L" as a placeholder to determine if the doors are open(1)/close(0). eg. In UH1Y (Unarmed), when the right door is opened using the useraction, "doorRB" and "doorHandler_R" will be set to 1. * Changed TAB to 4 spaces * Moved bracket to follow guidelines * Refuel for non-AllVehicle objects (#5151) * Enabled refuel for non-AllVehicles objects. Un-magic'd refuel progress timer. * Changed helper attach position to centre of object. Offset applied when rope attached. * Made fully compatible with non-thingX simulation types. Removed destruction effects of helper object. * Using arma model. Removed ACE_Actions from helper object. * Correct use of hideObjectGlobal * Remove actions, cargo, repair on helper * Switched helper to be setVar'd on the nozzle object * Linkingbelt refactoring (#5213) * Linking belt refatoring startLinking belt now uses canLinkBelt so if condition needs to be changed then you can do it on one position. * Fixed requested change Fixed requested change * simplified it even more canLinkBelt now returns a value over 0 if success and -1 if something is not right. * Fixed bug where if error we would not exit Fixed bug where if error we would not exit * changed name on canLinkBelt Changed name to better reflect the function of the function. * Author hype * fixed return value info fixed return value info * fix header * Fix ammo count hidden in UAVs (#5222) * Fix ammo count hidden in UAVs * Switch to ace_reload condition * Add arsenal zeus modules (#4576) * Add zeus arsenal modules * Add french strings to arsenal modules * Fix typo in french string * Make changes to fit review * locality check, use showMessage, set categroy * Cargo load menu overhaul (#4871) * Add submenu with vehicles to cargo load menu * replace private ARRAY with keyword * fix ace function macro using * filter vehicles without cargo * add Load condition, clean params, fix param reusing * replace nearEntities with nearestObjects, add macro * optimize, del magic, replace count with forEach * del unused functions * del useless _this parameter * Cleanup aircraft (#5197) * Refuel - Add setting for hose length (#5224) * Remove unit from laser pointer list if laser removed (#5190) * Handle escape menu with toggle iteractMenu (#5144) * Handle escape menu with toggle iteractMenu * Work on non-cursor menu * Close cursor menu if open when switching * Update fnc_handleEscapeMenu.sqf * French translation missing (#5217) * French translation for the two last entries * French translation for the last entrie * French Translation for the first entrie * correct the spelling error * Lower minimum speed limiter speed to 5 km/h (#5065) * Update fnc_speedLimiter.sqf * No minimum speed needed anymore Minimum speed limit of 10 km/h was needed in the past due to engine limitations. Multiple user tests have shown that the minimum speed is not needed anymore. The new minimum of 0 km/h allows for example setting walking speed for vehicles (<10 km/h). * Change minimum required speed for speed limiter to 3 km/h To avoid problems with negative speeds (driving backwards) and zero speed, the current change switches from 10 km/h minimum speed to 3 km/h minimum speed. This seems to be the optimal solution to allow all relevant speeds including walking speed. * Changed minimum required speed to 5 km/h Officially the minimum required speed is 10 km/h in the master. Lower minimum needed to set car speed to walking speed of accompanying soldiers. Problems have been reported with 3 kmh/ using cars like ATVs. Thus the new commit is set to 5 km/h minimum speed. Not tested with ATVs yet. * Minor fixes, cleanup, add lint ignore directives (#5176) - Fix bug in getNumberMagazinesIn (func not used) - Fix bug in seekerFindLaserSpot (func not used yet) - Everything else is just cleanup * Fix zeus interaction locality (#5214) - The `setUnitPos`, `setFormation`, `setSpeedMode` and `setBehaviour` commands require local arguments - The waypoint equivalents require server execution - Add conditions to only show interactions when the appropriate things are selected * Add cargo eden attributes (#4780) - Add a ace_cargo_space attribute to vehicles to alter how much cargo they can carry. - Add an ace_cargo_size attribute to objects to alter how much cargo space they consume. - Add two public functions `fnc_setSize.sqf` and `fnc_setSpace.sqf` to update the cargo size/space respectively of any given object. - Deprecate cargo makeLoadable module and public function. - Added some macros to get the space/size of a config, making code more readable in places. * Fix IVs not showing in patient display (#5230) Fix #5192 for 3.10 * Remove submuntion ammo changes to A-10 (#5231) * Remove changes to Aircraft cannons * keep ammo changes, i guess * Fix zeus RC units using player damage treshold (#5219) * Fix zeus RC units using player damage treshold Closes #5218 * add pabstmirrors suggestion use gvar * Implement new cook off SFX (#5179) * Implement new cook off SFX with variants * Add hybrid V to authors * Open glass and CUP doors (#5226) * Fixed glassdoor Fixed so glassdoor now works with ace slow open. * Made it more pretty with new file Made it more pretty with new file * Tidy up a bit * Removed white space * Replace tabs with spaces Replace tabs with spaces * Simplified and added comments * Changes + was stupid was commit Changes to go with code guidlines and extra check if door is empty * Tabs to spaces * Small fixes + Fixed so CUP houses now works Fixed so CUP houses now works * Remove todo * Fixed requested changes * Removed whitespaces * Vehicle quick mount (#4931) * Add quickmount files from ACEX * Rename to ACE3, Streamline, Use clientInit * Rename functions to ACE3, Fix crew getting * Fix enabled text * Fix texts * Remove spaces * Rework seat search * NLAW - Predicted Line Of Sight Guidance and Overfly Attack Mode (#4791) * NLAW Prototype * Make AI Compatible * Add Overfly Top Attack Mode * Limit Max Deflection * Base prediction on AI skill * Generic cycle attack profile key for missile guidance * Add hint for weapons without huds * Configure for attack cycle key * Finish OTA ammo effects * Cleanup * Arm at 20m * Disable Debug * No models for short lived sub-ammos * Fix Korean strings * Change AI randomization to use skillFinal * Add wiki doc for nlaw * Cleanup * Cleanup * Cleanup * Hellfire missiles (#4679) * Hellfire * Cleanup dev macros * Cleanup some debug * Add base interaction node for firemode actions * Handle bad data in attack profile variable * Skip ammo checks (returns bad data on added weaps) * Add mags sizes for apache * Add Hellfire Wiki Doc * Cleanup doc * Add pylon support * Add support for pilot controlled weapons * Add label to pylon mags * Cleanup vehicle configs, autoAdd laser des, fix ineractions for driver * [Docs] Update component dependencies Automatically committed through Travis CI. [ci skip] * [Docs] Update component dependencies Automatically committed through Travis CI. [ci skip] * [Docs] Update component dependencies Automatically committed through Travis CI. [ci skip] * Fix spectator icons and camera jitter (#5067) * Use `Visual` commands for icons and external camera position * Fix accidental numerical change (#5235) * Fix being unable to throw last mag (#5242) * Italian Translation Update (#5243) Added Italian translation for: -cargo -hellfire -nlaw -quickmount -refuel -zeus * Cleanup unused hellfire vic stringtable (#5245) * Fix weapon select grenade count wehn using advThrow (#5244) * Raise lower carry object (#5234) * Fix to move items up and down * Fixed private * Fixed public bug * Inserted Pabst solution * Remove extra space * Fixed request + added author * Fixed to correct comment * Tweeked comment again * Added more info about indentations, tabs and EditorConfig (#5249) * Added more info about indentations, tabs and EditorConfig * Fixed original misspelling "Every" * Added Pylon weapon as a valid weapon (#5250) * Disable dragging on big AA Turrets (#5251) * note required PboProject version (#5256) * note required PboProject version * Update setting-up-the-development-environment.md * Conform function headers to coding guidelines (#5255) * Fixed headers to work with silentspike python script * Fixed rest of the files * Fixed ace-team * Rearm - Pylon Support and Dynamically Add Supply Actions (#5183) * Dynamic Add * Support 1.70 Pylon Loadouts * Properly handle old compat pbos - Update RHS Compat * Re-add documentation * cleanup headers (note from other pr) * Cleanup * Fix var spelling * Fix minor debug that got left in (#5260) * Repair specialist rename, fixes #3186 (#5248) * Changed name * Fixed Enginner only german and removed big letters * Added docs + PR fixes #3186 * Removed other languages * Fixed request and added comment * Replace all usage of term "Specialist" * Add Ability to Change Repair Times of Vehicles (#5205) * Add ability to change repair time based on vehicle * Much better * Unary command not function * Allow changing of track or wheel object per vehicle * Lot more complicated than I thought * Fix some event names on wiki (#5254) * Fix some event names on wiki * Switch callable events to functions * Remove maximum distance of attach to vehicle action (#5262) * Remove maximum distance of attachi to vehicle action * Readd max distance, 10 meters to allow usage with big vehicles but also end placement system if too far * Update kestrel4500.md (#5228) * Add repair feature to wiki (#5247) * Add repair feature to wiki * Add blank lines, use adv engineer * Add repair framework page * Fix Large IED defuse distance (#5261) * Fix for large-ied bug because underwater thing have changed * Added size of IED in config and determine defuse range * Added typo * Added help text to wiki about defusing * Better English * Increased the defusal range on large bombs make it similar to small ieds * Add wiki doc * Use getUnitTrait for medics, engineers and EOD (#5246) * Increase required CBA version to 3.3.1 * Prepare version 3.10.0 * Update cargo docs with new public functions (#5266) * Update cargo docs with new public functions * Add myself to squad.xml * Italian translation updated and fixed (#5268) Added newest lines for: -Rearm -Repair * Update homepage version numbers #4692 [ci skip] * Fix isFeatureCameraActive for Spectator enhacements (#5269) * fix isFeatureCameraActive for spec ace_spectator_camera was removed in 77c2b99ee542e3825c4f25e7b5a399597fd436e2 . spectator module initializes three separate cameras instead, of which for example ace_spectator_freeCamera can be used to check if spec mode is active * use ace_spectator_isSet to check for spec mode * Prepare release 3.10.0 (build 2) * fix video link (#5276) * Jpn translate 73bd37 (#5277) * Update the Jpn translation for cargo Update the Japanese translation for cargo * Add the Jpn translation for hellfire Add the Japanese translation for hellfire * Add the Jpn translation for nlaw Add the Japanese translation for nlaw * Add the Jpn translation for rearm Add the Japanese translation for rearm * Update the Jpn translation for refuel Update the Japanese translation for refuel * Update the Jpn translation for repair Update the Japanese translation for repair * Update the Jpn translation for zeus Update the Japanese translation for zeus * gos ndjenahoud latitude (#5275) * Count untraced errors in make.py (#5265) * Count untraced errors (any errors besides failed PBO builds and missinf files) in make.py * Fix error count and prettify printing * Cleanup heli pod actions (#5271) Close #4783 - Make taru pods non loadable - Make taru pods non draggable - Increase interaction range for huron pods * Make array of cargo holders dynamic (#5274) * Jpn translate feee7f5 (#5280) * Add the Jpn translation for quickmount Add the Japanese translation for quickmount * Update the Jpn translation for repair Update the Japanese translation for repair * Fix isFeatureCameraActive (#5291) * Fix isFeatureCameraActive (#5291) * Prepare release 3.10.1 * Add malden to getMapData (#5297) * Add malden to getMapData * Merge with CWR2 malden * Add malden to getMapData (#5297) * Add malden to getMapData * Merge with CWR2 malden * Add Chinese Traditional & Simplified Localization (#5295) Add Chinese Traditional & Simplified Localization * compats - Fix config name for resupply vics (#5300) * Modify JoinGroup action to show group name (#5287) * Modify JoinGroup action to show group name * header * Header * Repair - Handle depends = "0" (#5283) * Repair - Handle depends = "0" * quote * Refuel - change nozzle position calc (#5279) * Handle ace_cargo_canLoad set to scalar (#5306) * Add XEH to ace_module (#5304) * Changed hellfire interaction check & added N variant (#5294) * Changed weapon check for interaction to generic ace_hellfire_enabled value * Added November hellfire variant * Cleanup * +1 * Japanese translation d02dacf (#5309) * add the Jpn translation for repair add the Japanese translation for repair * minor fix to Jpn translation for medical minor fix to Jpn translation for medical * Correct new Chinese stringtable identifiers (#5334) * Fix the issue that SFX variants are not global (#5335) * Fix the issue that SFX variants are not global what means that different players can get different pressure Cookoff sounds to prevent that i split up the sounds in 3 types and used a Weighted select to have the befor used values back * add todo for 1.74 * inherit in CfgSFX from 1 class * fix #5324 (#5325) * Minor update Wiki AtragMx (#5322) * update wiki atragmx * Add files via upload * Fix broken fonts for map gps display (#5337) EtelkaNarrowMediumPro broke with 1.72 hotfix * Handle locked doors (#5345) * Allow repairing from slingload pods (#5316) * Add cargo space to huron containers (#5315) * Rallypoints- Don't modify setVar if already set (#5347)
2017-07-10 08:27:29 +00:00
TODO: Popup an error dialog & throw an exception.
Update from acemod master (#1) * Generic cycle attack profile key for missile guidance (#4787) * Generic cycle attack profile key for missile guidance * Add hint for weapons without huds * Fix Korean strings * Cleanup * Frag Superanal Cleanup (#4803) * Minimal frag cleanup * Why did this even happen in the first place Conflicts: addons/frag/functions/fnc_frago.sqf * New Function to Show BIS Style Curator Messages (#4844) * Add showMessage fnc that shows BIS curator messages * Add documentation * Make function simpler * Modify to fir new syntax * Handle non-string args * Generic cycle attack profile key for missile guidance (#4787) * Generic cycle attack profile key for missile guidance * Add hint for weapons without huds * Fix Korean strings * Cleanup * Cache Nametags onDraw3D flags. (#4847) * Cache Nametag flags * Remove unused privates * Fix fading, cursorOnly mode, improve cache reset * Fix header * Fix Javelin for AI (#4857) * Optimize Laserpointer (#4859) * only process one unit every 0.1 seconds * exitWith to keep indentation low * use event to determine isIR and isTI * correctly remove units with turned on lights from their arrays * handle weaponAccessories command reporting nil Conflicts: addons/laserpointer/XEH_postInit.sqf * Fix RHS m113 compat (#4881) * Fix passenger actions - Ensure order of MainActions (#4883) * Fix getPos order (#4889) * Use createSimpleObject to create tags (#4892) * Update CBA required version (#4899) * prep v3.9.0 * Update required CBA version * Medical/Repair 3den Toolbox State Fix (Bug fix for #4902) (#4905) * Update medical/repair 3den away from missionNamespace * Simplify save * Hide earplug actions if setting disabled (#4913) * Hide earplug actions if setting disabled * Add lines that are new * Pass map gestures draw by reference (#4914) * Verify params in atragmx profile gunlist (#4917) * Fix setVariablePublic reseting to old values (#4938) * Fix setVariablePublic reseting to old values * Don't drop delay time * Reload medical configs into extension on save load (#4941) * Fix lost magazines when restoring gunbag mags (#4942) * Add RHS GREF compat for RKG-3 grenade (#4944) * Fix intergrated scopes (#4945) * Require CBA v3.2.1 (#4954) Conflicts: addons/main/script_mod.hpp * Fix gforce avg on switching to aircraft (#4955) * Fix gforce avg on switching to aircraft * Dont use for-loop for neutral g-forces array * Update maps' latitude (#4961) - add Dingor - add MSKE 2017 - add G.O.S Leskovets - add Trung Si - add I44: Omaha v2 - add I44: Neaville and Neaville (Winter) - add I44: Battle of the Bulge * Fix rangecard not showing wind/lead (#4964) * Give options menu list focus (#4965) * Cleanup use of ACE_HashLocation (#4975) * Add validation on group id for map gesture color mapping (#4976) * Fix vehicle lock lockpick condition, Fix lockpicking from inside (#4985) * Prep 3.9.1 release * Fix cookoff desynch, fix #4900 Randomness would be calculated on every machine, but only vehicle explosion and sound are done by the server. Smoke, light and fire sfx are done by each client. * also fix cooking off ammo boxes * Fix cookoff desynch, fix #4900 Randomness would be calculated on every machine, but only vehicle explosion and sound are done by the server. Smoke, light and fire sfx are done by each client. * also fix cooking off ammo boxes * Add rearm config for Nemmera (#4992) * Sandbags surfaces update (#4971) * Use private keyword, move surface blacklist to script_component.hpp * Check height above terrain * Add Tanoa surfaces, Check if in water * Use 'dust' config entry to determine surface, Add common canDig (checks dustyness) * Re-enable compile cache * Revert to surface blacklist with dust as fallback * Move surface blacklist to script_component because SQF validator complains * Fix unarmed sprint->prone + minor perf improvments (#4887) * AB : AtragMx wiki updated (#4982) * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Add files via upload * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update publish.py for RHS Gref Compat (#4999) * Update atragmx.md * Delete atragmx1.jpg * Add files via upload * Translation: Missing 3 strings in Polish (#5008) * update user url * Jpn translate to v391 (#5011) * jpn translate slideshow Add the Japanese translation for slideshow for v3.9.1 * jpn translate for cookoff Add the Japanese translation for cookoff of the v3.9.1 * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Prep 3.9.1 release * Update atragmx.md * Dupplicate Polish entry (#5018) https://i.gyazo.com/c7557980d7d4c36709be78ef1f2c2a8f.png * Update atragmx.md * Add custom CfgUIGrids for microDagr (#5014) * Update atragmx.md * Add files via upload * Update atragmx.md * fix links and `alt` texts * Duplicate French entry (#5032) Removes a duplicate French entry, didn't saw it :/ * Wiki range card updated (#5029) * Update rangecard.md * Update rangecard.md * Update rangecard.md * Add files via upload * Update rangecard.md * fix links and `alt` texts * Wiki Advanced Ballistics updated (#5030) * Update advanced-ballistics.md * Update advanced-ballistics.md * Update advanced-ballistics.md * Update advanced-ballistics.md * Update advanced-ballistics.md * Update advanced-ballistics.md * Update advanced-ballistics.md * Update advanced-ballistics.md * Update advanced-ballistics.md * Update advanced-ballistics.md * Add files via upload * Update advanced-ballistics.md * fix links and `alt` texts * Wiki Kestrel 4500 updated (#5027) * Update kestrel4500.md * Update kestrel4500.md * Update kestrel4500.md * Update kestrel4500.md * Update kestrel4500.md * Update kestrel4500.md * Update kestrel4500.md * fix links and `alt` texts * Wiki scope updated (#5028) * Update scopes.md * Update scopes.md * Update scopes.md * Add files via upload * Update scopes.md * fix links and `alt` texts * French loc improvement (#5017) * French loc improvement (French) text as it is clutters the interface interface, making it uneasy for medic to use the it smoothly. https://i.gyazo.com/8d7a5bb2f15dd1332cec36f2eef510c8.png Hopefully suggested changes fixes that. There were a few typos and, in my opinion, unaccurate or missing translation. Based on French Army Field Manual, actual paramedical personnel and past work on XMedSys. * Pull 5017 with spaces instead of tabs https://github.com/acemod/ACE3/pull/5017 * Fixes a minor typo Selectioner -> Sélectionner * Duplicate entry (French) Removes a duplicate entry, didn't saw first time * Wiki scope updated_1 (#5037) * Update scopes.md * Update scopes.md * Update scopes.md * Add files via upload * Update scopes.md * fix links and `alt` texts * Delete scope_module.jpg * Add files via upload * Update scopes.md * French additions (Cargo) (#5040) Minor French text additions * French loc fixes (ballistics) (#5041) Minor French loc fixes * Update documentation for Vector21 Add explanation on how to switch range and azimuth units * Add blank line after heading * Update vector.md * Update atragmx.md * fix link atragmx.md * Fix dagr not showing bearing in mils (#5047) * Fix cargo loading to locked vehicle (#5049) * Update ACEX to 3.2.0.4 (#5062) * tweak ACE main menu info box * use https for main menu * use https for main men * fix highlighted info box color (#5075) * Filter headless clients from zeus teleportation (#5070) * Use setShotParents in Advanced Throwing (#5052) * Use setShotParents in Advanced Throwing - close #5034 * Execute setShotParents on server (server-only command) * Fix FCS Vehicle Init (#5063) * Tweak overheating (#4969) * Tweak overheating * Add define for constant magic num * Virtual units - skip goggles/hearing effects (#4988) * Disable goggles and hearing fx for virtual units * Cleanup some other CBA_fnc_addPlayerEventHandler * Fix tagging model cache (#5055) * Frag - Cleanup and Performance (#5010) * Frag - Cleanup and Performance * Add dots * (Medical) French text - minor changes (#5043) Minor changes due to users feedback * French localization complete (#5079) * French localization complete * STR_ACE_MapTools_drawStaightLines_description fix "l'on doit survoler le milieu du trait pour pouvoir le supprimer" * Space management alganthe : Espace en trop après référence. * Diapo alganthe : Slideshow -> diaporama Slide -> diapo * Cohesion fix alganthe : Vous avez traduit le nom du module juste au dessus (displayname). Il est vrai que les créateurs de missions doivent consulter une documentation principalement écrite en anglais, donc vous avez le choix de traduire la ligne ci-dessus ou la garder, les deux semblent valide à mes yeux. Reasoning : since French mission makers read reference material in English, it makes sense not to translate it and thus keep it simple for them. * Caisses de munitions caisse de mun -> caisses de munitions * STR_ACE_Scopes_Description Oops, forgot that one. * Fix RHS mp7 UBC (#5085) * Fix broken url on modules wiki page (#5088) * Fix Javelin for AI for RHS (#5096) * Remove CfgAiSkill config changes (#5091) * Remove CfgAiSkill config changes * Add note to wiki about removal * Add volume toggle docs (#5077) * Add volume toggle docs * Change version and remove ref to another mod * Changes as per review * Fix numbers * Fix refuel nozzle dropping to ground (#5119) * Fix jerry can refuel interaction overlapping (#5107) * Add keybind to toggle interaction menu (#5095) * Add Paradrop Time Coefficient Setting (#5116) * Add coef * Show cargo paradrop time in menu * Unary command, not a function call * If drop time is 0 don't show a progress bar * Add the setting to cargo's editor module * Swap values * Remove extra comma * Move unload message to paradrop event This way the message will show up on all paradrops, not just immidiate ones. * Disable search on spectator unit tree Finally found out how to do this. Having search enabled on the unit tree might seem useful, but it doesn't interact well with keyboard shortcuts used for other purposes like camera control as it causes the tree to jump around unexpectedly. * Simplify spectator compass code * Optimize spectator unit list function Making good use of the new `select` CODE syntax. * Add 3den info to spectator template - A `displayName` shown in the 3DEN multiplayer attributes display - A `respawnTypes` array to define which respawn types the template is compatible with (currently only includes `2,3` - need to investigate compatibility with other types further). * Fix #5081 The default values of the arrays manipulated by these functions overwrite any changes applied before settings have finished initalising. This won't be an issue after #4456 is merged in future. * Improve Japanese translation (#5133) * Add the Japanese translation for cargo Add the Japanese translation for cargo, fix to html tag and few improvement * fix the Japanese transltion Fix the Japanese translation for attach. it was used wrong html tag. * changed The Japanese translation Changed the Japanese translation of azimuth angle * fix The Japanese translation Fix the Japanese translation for chemlights. it was used wrong html tag. * fix The Japanese translation Fix the Japanese translation for laserpointer. it was used wrong html tag. * Fix the Japanese translation Fix the Japanese translation for medical_blood. it was used wrong translation. * Fix the Japanese translation Fix the Japanese translation for rearm. it was used wrong translation. * add The Japanese translation add The Japanese translation to new words * Improve The Japanese translation Improve, fix and change The Japanese translation * minor fix to Japanese translation minor fix to Japanese translation. see b1b07c5 * Fix Spotting Scope Interaction Point (#5132) * Disable ACE_FCS on RHS Russian Attack Helis (#5145) * Switch 2 perm PFEH to everyFrame (#5140) * Explosives - Add code handler for detonation (#5115) * Explosives - Add code handler for detonation * Add info to wiki * Fix cellphone in demo code, move example to wiki * Zeus Suppression Module (#4977) * add base structure * Add getModuleDestination * Add 2d map support, debug * Cleanup, handle weapon max range * Handle non-local units * Use new showMessage func * Run on groups when placed on leader * Support for Indirect Fire Vehicles * Cleanup * Use doArtilleryFire which was fixed in 1.68 * hitreactions - Close map on hit (#5099) * Wiki AtragMx minor changes (#5111) * fix markdown syntax * Update atragmx.md * AB: Lythium latitude (#5109) * Update fnc_getMapData.sqf * bump1 * bump2 * AB: update compat R3F v3.5 (#5097) * Update CfgWeapons.hpp * Update CfgAmmo.hpp * Update CfgAmmo.hpp * Update CfgWeapons.hpp * Update CfgWeapons.hpp * Update CfgWeapons.hpp * Update CfgWeapons.hpp * Update CfgWeapons.hpp * fix missing `{` * fix `dispersion` * fix space * AtragMx: BC G1 .338LM API526 (#5069) * Update fnc_initGunList.sqf * Update fnc_initGunList.sqf * C1 coefficient 0.58 * Jerry Can - only set global var on server (#5131) * Add Arma 3 Issues breaking ace_rearm (#5150) * MapGesutres - Fix dependency on maptools (#5154) * MapGesutres - Use getVariable to remove dependency * Use isModLoaded * Add missing base class to r3f compat (#5156) * Disable g-forces for UAV AI (#5094) * Increase max weapon index for large modsets (#5054) * Disable rearm,refuel on dead vehicles (#5158) * SQF Lint Cleanup Pass (#5157) * SQF Lint Cleanup Pass * Fix var in TRACE * Add basic python tool * Simplify * Hit space key 6 times * Fix error in dropNozzle * handle error message exceptions * Fix py * 1.70 CMs - Remove countermeasure mode switching (#5163) * 1.70 FCS - Remove ACE_FCS from most vics (#5152) * Handle 1.70 FCS * Cleanup CfgWeapons * Add warning for discreteDistance * 1.70 CMs - Remove countermeasure mode switching (#5163) * 1.70 FCS - Remove ACE_FCS from most vics (#5152) * Handle 1.70 FCS * Cleanup CfgWeapons * Add warning for discreteDistance * Realistic names for 1.70 pylon magazines (#5165) * Realistic names for 1.70 pylon magazines (#5165) * Fix gatling_30mm UBC for 1.70 (#5125) * Fix gatling_30mm UBC for 1.70 * Fix verEsion * Fix gatling_30mm UBC for 1.70 (#5125) * Fix gatling_30mm UBC for 1.70 * Fix verEsion * Prep 3.9.2 (version numbers) * Update required Arma 3 version to 1.70 * Prepare release 3.9.2 * Update helmet hearing protection for RHS-US (#5146) * Update helmet hearing protection for RHS-US * Hearing - Add standardized helmet protection macros * Tweak peltor vol * Disable aircraft flightmodel changes (#5167) * Disable aircraft flightmodel changes * Remove files * Fix merge, cbaEvents, macros, cleanup * Use correct TransportX type for ace items (#5168) * Use correct TransportX type for ace items * Fix messing with flare colors * Just warn for old compat pbos (#5177) * Just warn for old compat pbos * Use CBA_fnc_error big warning box * fix caps * Italian translation (Add & Fix) (#5193) Added Italian translation for: -advanced fatigue -advanced throwing -cook off -dogtags -gunbag -ui-scopes and much more... Fixed a lot of grammatical errors * Zeus updated (#5198) Fixes and adds in the zeus section * Add AtixNeon to AUTHORS.txt * Add realistic names to dynamic loadout classes (#5185) * RHS CH-47 - use animationSourcePhase (#5201) * Fix Zeus teleport players module (#5175) * Add dummy function to zeus UI modules This removes the message about the module having no function when in SP. * Fix zeus teleport module for non-local units BI made a change to the function this module was using. So now it has to be ran local to the player in question. * Adv Throw - Handle getShotParents being [] (#5210) * Correct compat classnames (#5204) * Linking belt refactoring (#5206) * Linking belt refatoring startLinking belt now uses canLinkBelt so if condition needs to be changed then you can do it on one position. * Fixed requested change Fixed requested change * AdvThrow - Handle bugged currentThrowable (#5216) * Fix AB water vapor pressure calc (#4956) * Fix AB water vapor pressure calc * Fix calc in weather * Cleanup usage of constant * Add RVExtensionVersion, Rebuild AB DLLs * CH53 Fastroping and other fixes (#4713) * CH53 Fastroping and Fixes Added fastrope points for CH53. The getOut EH is required to keep the doors open when a unit exits the vehicle and it uses the vehicle animation "doorHandler_R" or "doorHandler_L" as a placeholder to determine if the doors are open(1)/close(0). eg. In UH1Y (Unarmed), when the right door is opened using the useraction, "doorRB" and "doorHandler_R" will be set to 1. * Changed TAB to 4 spaces * Moved bracket to follow guidelines * Refuel for non-AllVehicle objects (#5151) * Enabled refuel for non-AllVehicles objects. Un-magic'd refuel progress timer. * Changed helper attach position to centre of object. Offset applied when rope attached. * Made fully compatible with non-thingX simulation types. Removed destruction effects of helper object. * Using arma model. Removed ACE_Actions from helper object. * Correct use of hideObjectGlobal * Remove actions, cargo, repair on helper * Switched helper to be setVar'd on the nozzle object * Linkingbelt refactoring (#5213) * Linking belt refatoring startLinking belt now uses canLinkBelt so if condition needs to be changed then you can do it on one position. * Fixed requested change Fixed requested change * simplified it even more canLinkBelt now returns a value over 0 if success and -1 if something is not right. * Fixed bug where if error we would not exit Fixed bug where if error we would not exit * changed name on canLinkBelt Changed name to better reflect the function of the function. * Author hype * fixed return value info fixed return value info * fix header * Fix ammo count hidden in UAVs (#5222) * Fix ammo count hidden in UAVs * Switch to ace_reload condition * Add arsenal zeus modules (#4576) * Add zeus arsenal modules * Add french strings to arsenal modules * Fix typo in french string * Make changes to fit review * locality check, use showMessage, set categroy * Cargo load menu overhaul (#4871) * Add submenu with vehicles to cargo load menu * replace private ARRAY with keyword * fix ace function macro using * filter vehicles without cargo * add Load condition, clean params, fix param reusing * replace nearEntities with nearestObjects, add macro * optimize, del magic, replace count with forEach * del unused functions * del useless _this parameter * Cleanup aircraft (#5197) * Refuel - Add setting for hose length (#5224) * Remove unit from laser pointer list if laser removed (#5190) * Handle escape menu with toggle iteractMenu (#5144) * Handle escape menu with toggle iteractMenu * Work on non-cursor menu * Close cursor menu if open when switching * Update fnc_handleEscapeMenu.sqf * French translation missing (#5217) * French translation for the two last entries * French translation for the last entrie * French Translation for the first entrie * correct the spelling error * Lower minimum speed limiter speed to 5 km/h (#5065) * Update fnc_speedLimiter.sqf * No minimum speed needed anymore Minimum speed limit of 10 km/h was needed in the past due to engine limitations. Multiple user tests have shown that the minimum speed is not needed anymore. The new minimum of 0 km/h allows for example setting walking speed for vehicles (<10 km/h). * Change minimum required speed for speed limiter to 3 km/h To avoid problems with negative speeds (driving backwards) and zero speed, the current change switches from 10 km/h minimum speed to 3 km/h minimum speed. This seems to be the optimal solution to allow all relevant speeds including walking speed. * Changed minimum required speed to 5 km/h Officially the minimum required speed is 10 km/h in the master. Lower minimum needed to set car speed to walking speed of accompanying soldiers. Problems have been reported with 3 kmh/ using cars like ATVs. Thus the new commit is set to 5 km/h minimum speed. Not tested with ATVs yet. * Minor fixes, cleanup, add lint ignore directives (#5176) - Fix bug in getNumberMagazinesIn (func not used) - Fix bug in seekerFindLaserSpot (func not used yet) - Everything else is just cleanup * Fix zeus interaction locality (#5214) - The `setUnitPos`, `setFormation`, `setSpeedMode` and `setBehaviour` commands require local arguments - The waypoint equivalents require server execution - Add conditions to only show interactions when the appropriate things are selected * Add cargo eden attributes (#4780) - Add a ace_cargo_space attribute to vehicles to alter how much cargo they can carry. - Add an ace_cargo_size attribute to objects to alter how much cargo space they consume. - Add two public functions `fnc_setSize.sqf` and `fnc_setSpace.sqf` to update the cargo size/space respectively of any given object. - Deprecate cargo makeLoadable module and public function. - Added some macros to get the space/size of a config, making code more readable in places. * Fix IVs not showing in patient display (#5230) Fix #5192 for 3.10 * Remove submuntion ammo changes to A-10 (#5231) * Remove changes to Aircraft cannons * keep ammo changes, i guess * Fix zeus RC units using player damage treshold (#5219) * Fix zeus RC units using player damage treshold Closes #5218 * add pabstmirrors suggestion use gvar * Implement new cook off SFX (#5179) * Implement new cook off SFX with variants * Add hybrid V to authors * Open glass and CUP doors (#5226) * Fixed glassdoor Fixed so glassdoor now works with ace slow open. * Made it more pretty with new file Made it more pretty with new file * Tidy up a bit * Removed white space * Replace tabs with spaces Replace tabs with spaces * Simplified and added comments * Changes + was stupid was commit Changes to go with code guidlines and extra check if door is empty * Tabs to spaces * Small fixes + Fixed so CUP houses now works Fixed so CUP houses now works * Remove todo * Fixed requested changes * Removed whitespaces * Vehicle quick mount (#4931) * Add quickmount files from ACEX * Rename to ACE3, Streamline, Use clientInit * Rename functions to ACE3, Fix crew getting * Fix enabled text * Fix texts * Remove spaces * Rework seat search * NLAW - Predicted Line Of Sight Guidance and Overfly Attack Mode (#4791) * NLAW Prototype * Make AI Compatible * Add Overfly Top Attack Mode * Limit Max Deflection * Base prediction on AI skill * Generic cycle attack profile key for missile guidance * Add hint for weapons without huds * Configure for attack cycle key * Finish OTA ammo effects * Cleanup * Arm at 20m * Disable Debug * No models for short lived sub-ammos * Fix Korean strings * Change AI randomization to use skillFinal * Add wiki doc for nlaw * Cleanup * Cleanup * Cleanup * Hellfire missiles (#4679) * Hellfire * Cleanup dev macros * Cleanup some debug * Add base interaction node for firemode actions * Handle bad data in attack profile variable * Skip ammo checks (returns bad data on added weaps) * Add mags sizes for apache * Add Hellfire Wiki Doc * Cleanup doc * Add pylon support * Add support for pilot controlled weapons * Add label to pylon mags * Cleanup vehicle configs, autoAdd laser des, fix ineractions for driver * [Docs] Update component dependencies Automatically committed through Travis CI. [ci skip] * [Docs] Update component dependencies Automatically committed through Travis CI. [ci skip] * [Docs] Update component dependencies Automatically committed through Travis CI. [ci skip] * Fix spectator icons and camera jitter (#5067) * Use `Visual` commands for icons and external camera position * Fix accidental numerical change (#5235) * Fix being unable to throw last mag (#5242) * Italian Translation Update (#5243) Added Italian translation for: -cargo -hellfire -nlaw -quickmount -refuel -zeus * Cleanup unused hellfire vic stringtable (#5245) * Fix weapon select grenade count wehn using advThrow (#5244) * Raise lower carry object (#5234) * Fix to move items up and down * Fixed private * Fixed public bug * Inserted Pabst solution * Remove extra space * Fixed request + added author * Fixed to correct comment * Tweeked comment again * Added more info about indentations, tabs and EditorConfig (#5249) * Added more info about indentations, tabs and EditorConfig * Fixed original misspelling "Every" * Added Pylon weapon as a valid weapon (#5250) * Disable dragging on big AA Turrets (#5251) * note required PboProject version (#5256) * note required PboProject version * Update setting-up-the-development-environment.md * Conform function headers to coding guidelines (#5255) * Fixed headers to work with silentspike python script * Fixed rest of the files * Fixed ace-team * Rearm - Pylon Support and Dynamically Add Supply Actions (#5183) * Dynamic Add * Support 1.70 Pylon Loadouts * Properly handle old compat pbos - Update RHS Compat * Re-add documentation * cleanup headers (note from other pr) * Cleanup * Fix var spelling * Fix minor debug that got left in (#5260) * Repair specialist rename, fixes #3186 (#5248) * Changed name * Fixed Enginner only german and removed big letters * Added docs + PR fixes #3186 * Removed other languages * Fixed request and added comment * Replace all usage of term "Specialist" * Add Ability to Change Repair Times of Vehicles (#5205) * Add ability to change repair time based on vehicle * Much better * Unary command not function * Allow changing of track or wheel object per vehicle * Lot more complicated than I thought * Fix some event names on wiki (#5254) * Fix some event names on wiki * Switch callable events to functions * Remove maximum distance of attach to vehicle action (#5262) * Remove maximum distance of attachi to vehicle action * Readd max distance, 10 meters to allow usage with big vehicles but also end placement system if too far * Update kestrel4500.md (#5228) * Add repair feature to wiki (#5247) * Add repair feature to wiki * Add blank lines, use adv engineer * Add repair framework page * Fix Large IED defuse distance (#5261) * Fix for large-ied bug because underwater thing have changed * Added size of IED in config and determine defuse range * Added typo * Added help text to wiki about defusing * Better English * Increased the defusal range on large bombs make it similar to small ieds * Add wiki doc * Use getUnitTrait for medics, engineers and EOD (#5246) * Increase required CBA version to 3.3.1 * Prepare version 3.10.0 * Update cargo docs with new public functions (#5266) * Update cargo docs with new public functions * Add myself to squad.xml * Italian translation updated and fixed (#5268) Added newest lines for: -Rearm -Repair * Update homepage version numbers #4692 [ci skip] * Fix isFeatureCameraActive for Spectator enhacements (#5269) * fix isFeatureCameraActive for spec ace_spectator_camera was removed in 77c2b99ee542e3825c4f25e7b5a399597fd436e2 . spectator module initializes three separate cameras instead, of which for example ace_spectator_freeCamera can be used to check if spec mode is active * use ace_spectator_isSet to check for spec mode * Prepare release 3.10.0 (build 2) * fix video link (#5276) * Jpn translate 73bd37 (#5277) * Update the Jpn translation for cargo Update the Japanese translation for cargo * Add the Jpn translation for hellfire Add the Japanese translation for hellfire * Add the Jpn translation for nlaw Add the Japanese translation for nlaw * Add the Jpn translation for rearm Add the Japanese translation for rearm * Update the Jpn translation for refuel Update the Japanese translation for refuel * Update the Jpn translation for repair Update the Japanese translation for repair * Update the Jpn translation for zeus Update the Japanese translation for zeus * gos ndjenahoud latitude (#5275) * Count untraced errors in make.py (#5265) * Count untraced errors (any errors besides failed PBO builds and missinf files) in make.py * Fix error count and prettify printing * Cleanup heli pod actions (#5271) Close #4783 - Make taru pods non loadable - Make taru pods non draggable - Increase interaction range for huron pods * Make array of cargo holders dynamic (#5274) * Jpn translate feee7f5 (#5280) * Add the Jpn translation for quickmount Add the Japanese translation for quickmount * Update the Jpn translation for repair Update the Japanese translation for repair * Fix isFeatureCameraActive (#5291) * Fix isFeatureCameraActive (#5291) * Prepare release 3.10.1 * Add malden to getMapData (#5297) * Add malden to getMapData * Merge with CWR2 malden * Add malden to getMapData (#5297) * Add malden to getMapData * Merge with CWR2 malden * Add Chinese Traditional & Simplified Localization (#5295) Add Chinese Traditional & Simplified Localization * compats - Fix config name for resupply vics (#5300) * Modify JoinGroup action to show group name (#5287) * Modify JoinGroup action to show group name * header * Header * Repair - Handle depends = "0" (#5283) * Repair - Handle depends = "0" * quote * Refuel - change nozzle position calc (#5279) * Handle ace_cargo_canLoad set to scalar (#5306) * Add XEH to ace_module (#5304) * Changed hellfire interaction check & added N variant (#5294) * Changed weapon check for interaction to generic ace_hellfire_enabled value * Added November hellfire variant * Cleanup * +1 * Japanese translation d02dacf (#5309) * add the Jpn translation for repair add the Japanese translation for repair * minor fix to Jpn translation for medical minor fix to Jpn translation for medical * Correct new Chinese stringtable identifiers (#5334) * Fix the issue that SFX variants are not global (#5335) * Fix the issue that SFX variants are not global what means that different players can get different pressure Cookoff sounds to prevent that i split up the sounds in 3 types and used a Weighted select to have the befor used values back * add todo for 1.74 * inherit in CfgSFX from 1 class * fix #5324 (#5325) * Minor update Wiki AtragMx (#5322) * update wiki atragmx * Add files via upload * Fix broken fonts for map gps display (#5337) EtelkaNarrowMediumPro broke with 1.72 hotfix * Handle locked doors (#5345) * Allow repairing from slingload pods (#5316) * Add cargo space to huron containers (#5315) * Rallypoints- Don't modify setVar if already set (#5347)
2017-07-10 08:27:29 +00:00
Parameters:
MESSAGE - Message to record [String]
Update from acemod master (#1) * Generic cycle attack profile key for missile guidance (#4787) * Generic cycle attack profile key for missile guidance * Add hint for weapons without huds * Fix Korean strings * Cleanup * Frag Superanal Cleanup (#4803) * Minimal frag cleanup * Why did this even happen in the first place Conflicts: addons/frag/functions/fnc_frago.sqf * New Function to Show BIS Style Curator Messages (#4844) * Add showMessage fnc that shows BIS curator messages * Add documentation * Make function simpler * Modify to fir new syntax * Handle non-string args * Generic cycle attack profile key for missile guidance (#4787) * Generic cycle attack profile key for missile guidance * Add hint for weapons without huds * Fix Korean strings * Cleanup * Cache Nametags onDraw3D flags. (#4847) * Cache Nametag flags * Remove unused privates * Fix fading, cursorOnly mode, improve cache reset * Fix header * Fix Javelin for AI (#4857) * Optimize Laserpointer (#4859) * only process one unit every 0.1 seconds * exitWith to keep indentation low * use event to determine isIR and isTI * correctly remove units with turned on lights from their arrays * handle weaponAccessories command reporting nil Conflicts: addons/laserpointer/XEH_postInit.sqf * Fix RHS m113 compat (#4881) * Fix passenger actions - Ensure order of MainActions (#4883) * Fix getPos order (#4889) * Use createSimpleObject to create tags (#4892) * Update CBA required version (#4899) * prep v3.9.0 * Update required CBA version * Medical/Repair 3den Toolbox State Fix (Bug fix for #4902) (#4905) * Update medical/repair 3den away from missionNamespace * Simplify save * Hide earplug actions if setting disabled (#4913) * Hide earplug actions if setting disabled * Add lines that are new * Pass map gestures draw by reference (#4914) * Verify params in atragmx profile gunlist (#4917) * Fix setVariablePublic reseting to old values (#4938) * Fix setVariablePublic reseting to old values * Don't drop delay time * Reload medical configs into extension on save load (#4941) * Fix lost magazines when restoring gunbag mags (#4942) * Add RHS GREF compat for RKG-3 grenade (#4944) * Fix intergrated scopes (#4945) * Require CBA v3.2.1 (#4954) Conflicts: addons/main/script_mod.hpp * Fix gforce avg on switching to aircraft (#4955) * Fix gforce avg on switching to aircraft * Dont use for-loop for neutral g-forces array * Update maps' latitude (#4961) - add Dingor - add MSKE 2017 - add G.O.S Leskovets - add Trung Si - add I44: Omaha v2 - add I44: Neaville and Neaville (Winter) - add I44: Battle of the Bulge * Fix rangecard not showing wind/lead (#4964) * Give options menu list focus (#4965) * Cleanup use of ACE_HashLocation (#4975) * Add validation on group id for map gesture color mapping (#4976) * Fix vehicle lock lockpick condition, Fix lockpicking from inside (#4985) * Prep 3.9.1 release * Fix cookoff desynch, fix #4900 Randomness would be calculated on every machine, but only vehicle explosion and sound are done by the server. Smoke, light and fire sfx are done by each client. * also fix cooking off ammo boxes * Fix cookoff desynch, fix #4900 Randomness would be calculated on every machine, but only vehicle explosion and sound are done by the server. Smoke, light and fire sfx are done by each client. * also fix cooking off ammo boxes * Add rearm config for Nemmera (#4992) * Sandbags surfaces update (#4971) * Use private keyword, move surface blacklist to script_component.hpp * Check height above terrain * Add Tanoa surfaces, Check if in water * Use 'dust' config entry to determine surface, Add common canDig (checks dustyness) * Re-enable compile cache * Revert to surface blacklist with dust as fallback * Move surface blacklist to script_component because SQF validator complains * Fix unarmed sprint->prone + minor perf improvments (#4887) * AB : AtragMx wiki updated (#4982) * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Add files via upload * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update publish.py for RHS Gref Compat (#4999) * Update atragmx.md * Delete atragmx1.jpg * Add files via upload * Translation: Missing 3 strings in Polish (#5008) * update user url * Jpn translate to v391 (#5011) * jpn translate slideshow Add the Japanese translation for slideshow for v3.9.1 * jpn translate for cookoff Add the Japanese translation for cookoff of the v3.9.1 * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Prep 3.9.1 release * Update atragmx.md * Dupplicate Polish entry (#5018) https://i.gyazo.com/c7557980d7d4c36709be78ef1f2c2a8f.png * Update atragmx.md * Add custom CfgUIGrids for microDagr (#5014) * Update atragmx.md * Add files via upload * Update atragmx.md * fix links and `alt` texts * Duplicate French entry (#5032) Removes a duplicate French entry, didn't saw it :/ * Wiki range card updated (#5029) * Update rangecard.md * Update rangecard.md * Update rangecard.md * Add files via upload * Update rangecard.md * fix links and `alt` texts * Wiki Advanced Ballistics updated (#5030) * Update advanced-ballistics.md * Update advanced-ballistics.md * Update advanced-ballistics.md * Update advanced-ballistics.md * Update advanced-ballistics.md * Update advanced-ballistics.md * Update advanced-ballistics.md * Update advanced-ballistics.md * Update advanced-ballistics.md * Update advanced-ballistics.md * Add files via upload * Update advanced-ballistics.md * fix links and `alt` texts * Wiki Kestrel 4500 updated (#5027) * Update kestrel4500.md * Update kestrel4500.md * Update kestrel4500.md * Update kestrel4500.md * Update kestrel4500.md * Update kestrel4500.md * Update kestrel4500.md * fix links and `alt` texts * Wiki scope updated (#5028) * Update scopes.md * Update scopes.md * Update scopes.md * Add files via upload * Update scopes.md * fix links and `alt` texts * French loc improvement (#5017) * French loc improvement (French) text as it is clutters the interface interface, making it uneasy for medic to use the it smoothly. https://i.gyazo.com/8d7a5bb2f15dd1332cec36f2eef510c8.png Hopefully suggested changes fixes that. There were a few typos and, in my opinion, unaccurate or missing translation. Based on French Army Field Manual, actual paramedical personnel and past work on XMedSys. * Pull 5017 with spaces instead of tabs https://github.com/acemod/ACE3/pull/5017 * Fixes a minor typo Selectioner -> Sélectionner * Duplicate entry (French) Removes a duplicate entry, didn't saw first time * Wiki scope updated_1 (#5037) * Update scopes.md * Update scopes.md * Update scopes.md * Add files via upload * Update scopes.md * fix links and `alt` texts * Delete scope_module.jpg * Add files via upload * Update scopes.md * French additions (Cargo) (#5040) Minor French text additions * French loc fixes (ballistics) (#5041) Minor French loc fixes * Update documentation for Vector21 Add explanation on how to switch range and azimuth units * Add blank line after heading * Update vector.md * Update atragmx.md * fix link atragmx.md * Fix dagr not showing bearing in mils (#5047) * Fix cargo loading to locked vehicle (#5049) * Update ACEX to 3.2.0.4 (#5062) * tweak ACE main menu info box * use https for main menu * use https for main men * fix highlighted info box color (#5075) * Filter headless clients from zeus teleportation (#5070) * Use setShotParents in Advanced Throwing (#5052) * Use setShotParents in Advanced Throwing - close #5034 * Execute setShotParents on server (server-only command) * Fix FCS Vehicle Init (#5063) * Tweak overheating (#4969) * Tweak overheating * Add define for constant magic num * Virtual units - skip goggles/hearing effects (#4988) * Disable goggles and hearing fx for virtual units * Cleanup some other CBA_fnc_addPlayerEventHandler * Fix tagging model cache (#5055) * Frag - Cleanup and Performance (#5010) * Frag - Cleanup and Performance * Add dots * (Medical) French text - minor changes (#5043) Minor changes due to users feedback * French localization complete (#5079) * French localization complete * STR_ACE_MapTools_drawStaightLines_description fix "l'on doit survoler le milieu du trait pour pouvoir le supprimer" * Space management alganthe : Espace en trop après référence. * Diapo alganthe : Slideshow -> diaporama Slide -> diapo * Cohesion fix alganthe : Vous avez traduit le nom du module juste au dessus (displayname). Il est vrai que les créateurs de missions doivent consulter une documentation principalement écrite en anglais, donc vous avez le choix de traduire la ligne ci-dessus ou la garder, les deux semblent valide à mes yeux. Reasoning : since French mission makers read reference material in English, it makes sense not to translate it and thus keep it simple for them. * Caisses de munitions caisse de mun -> caisses de munitions * STR_ACE_Scopes_Description Oops, forgot that one. * Fix RHS mp7 UBC (#5085) * Fix broken url on modules wiki page (#5088) * Fix Javelin for AI for RHS (#5096) * Remove CfgAiSkill config changes (#5091) * Remove CfgAiSkill config changes * Add note to wiki about removal * Add volume toggle docs (#5077) * Add volume toggle docs * Change version and remove ref to another mod * Changes as per review * Fix numbers * Fix refuel nozzle dropping to ground (#5119) * Fix jerry can refuel interaction overlapping (#5107) * Add keybind to toggle interaction menu (#5095) * Add Paradrop Time Coefficient Setting (#5116) * Add coef * Show cargo paradrop time in menu * Unary command, not a function call * If drop time is 0 don't show a progress bar * Add the setting to cargo's editor module * Swap values * Remove extra comma * Move unload message to paradrop event This way the message will show up on all paradrops, not just immidiate ones. * Disable search on spectator unit tree Finally found out how to do this. Having search enabled on the unit tree might seem useful, but it doesn't interact well with keyboard shortcuts used for other purposes like camera control as it causes the tree to jump around unexpectedly. * Simplify spectator compass code * Optimize spectator unit list function Making good use of the new `select` CODE syntax. * Add 3den info to spectator template - A `displayName` shown in the 3DEN multiplayer attributes display - A `respawnTypes` array to define which respawn types the template is compatible with (currently only includes `2,3` - need to investigate compatibility with other types further). * Fix #5081 The default values of the arrays manipulated by these functions overwrite any changes applied before settings have finished initalising. This won't be an issue after #4456 is merged in future. * Improve Japanese translation (#5133) * Add the Japanese translation for cargo Add the Japanese translation for cargo, fix to html tag and few improvement * fix the Japanese transltion Fix the Japanese translation for attach. it was used wrong html tag. * changed The Japanese translation Changed the Japanese translation of azimuth angle * fix The Japanese translation Fix the Japanese translation for chemlights. it was used wrong html tag. * fix The Japanese translation Fix the Japanese translation for laserpointer. it was used wrong html tag. * Fix the Japanese translation Fix the Japanese translation for medical_blood. it was used wrong translation. * Fix the Japanese translation Fix the Japanese translation for rearm. it was used wrong translation. * add The Japanese translation add The Japanese translation to new words * Improve The Japanese translation Improve, fix and change The Japanese translation * minor fix to Japanese translation minor fix to Japanese translation. see b1b07c5 * Fix Spotting Scope Interaction Point (#5132) * Disable ACE_FCS on RHS Russian Attack Helis (#5145) * Switch 2 perm PFEH to everyFrame (#5140) * Explosives - Add code handler for detonation (#5115) * Explosives - Add code handler for detonation * Add info to wiki * Fix cellphone in demo code, move example to wiki * Zeus Suppression Module (#4977) * add base structure * Add getModuleDestination * Add 2d map support, debug * Cleanup, handle weapon max range * Handle non-local units * Use new showMessage func * Run on groups when placed on leader * Support for Indirect Fire Vehicles * Cleanup * Use doArtilleryFire which was fixed in 1.68 * hitreactions - Close map on hit (#5099) * Wiki AtragMx minor changes (#5111) * fix markdown syntax * Update atragmx.md * AB: Lythium latitude (#5109) * Update fnc_getMapData.sqf * bump1 * bump2 * AB: update compat R3F v3.5 (#5097) * Update CfgWeapons.hpp * Update CfgAmmo.hpp * Update CfgAmmo.hpp * Update CfgWeapons.hpp * Update CfgWeapons.hpp * Update CfgWeapons.hpp * Update CfgWeapons.hpp * Update CfgWeapons.hpp * fix missing `{` * fix `dispersion` * fix space * AtragMx: BC G1 .338LM API526 (#5069) * Update fnc_initGunList.sqf * Update fnc_initGunList.sqf * C1 coefficient 0.58 * Jerry Can - only set global var on server (#5131) * Add Arma 3 Issues breaking ace_rearm (#5150) * MapGesutres - Fix dependency on maptools (#5154) * MapGesutres - Use getVariable to remove dependency * Use isModLoaded * Add missing base class to r3f compat (#5156) * Disable g-forces for UAV AI (#5094) * Increase max weapon index for large modsets (#5054) * Disable rearm,refuel on dead vehicles (#5158) * SQF Lint Cleanup Pass (#5157) * SQF Lint Cleanup Pass * Fix var in TRACE * Add basic python tool * Simplify * Hit space key 6 times * Fix error in dropNozzle * handle error message exceptions * Fix py * 1.70 CMs - Remove countermeasure mode switching (#5163) * 1.70 FCS - Remove ACE_FCS from most vics (#5152) * Handle 1.70 FCS * Cleanup CfgWeapons * Add warning for discreteDistance * 1.70 CMs - Remove countermeasure mode switching (#5163) * 1.70 FCS - Remove ACE_FCS from most vics (#5152) * Handle 1.70 FCS * Cleanup CfgWeapons * Add warning for discreteDistance * Realistic names for 1.70 pylon magazines (#5165) * Realistic names for 1.70 pylon magazines (#5165) * Fix gatling_30mm UBC for 1.70 (#5125) * Fix gatling_30mm UBC for 1.70 * Fix verEsion * Fix gatling_30mm UBC for 1.70 (#5125) * Fix gatling_30mm UBC for 1.70 * Fix verEsion * Prep 3.9.2 (version numbers) * Update required Arma 3 version to 1.70 * Prepare release 3.9.2 * Update helmet hearing protection for RHS-US (#5146) * Update helmet hearing protection for RHS-US * Hearing - Add standardized helmet protection macros * Tweak peltor vol * Disable aircraft flightmodel changes (#5167) * Disable aircraft flightmodel changes * Remove files * Fix merge, cbaEvents, macros, cleanup * Use correct TransportX type for ace items (#5168) * Use correct TransportX type for ace items * Fix messing with flare colors * Just warn for old compat pbos (#5177) * Just warn for old compat pbos * Use CBA_fnc_error big warning box * fix caps * Italian translation (Add & Fix) (#5193) Added Italian translation for: -advanced fatigue -advanced throwing -cook off -dogtags -gunbag -ui-scopes and much more... Fixed a lot of grammatical errors * Zeus updated (#5198) Fixes and adds in the zeus section * Add AtixNeon to AUTHORS.txt * Add realistic names to dynamic loadout classes (#5185) * RHS CH-47 - use animationSourcePhase (#5201) * Fix Zeus teleport players module (#5175) * Add dummy function to zeus UI modules This removes the message about the module having no function when in SP. * Fix zeus teleport module for non-local units BI made a change to the function this module was using. So now it has to be ran local to the player in question. * Adv Throw - Handle getShotParents being [] (#5210) * Correct compat classnames (#5204) * Linking belt refactoring (#5206) * Linking belt refatoring startLinking belt now uses canLinkBelt so if condition needs to be changed then you can do it on one position. * Fixed requested change Fixed requested change * AdvThrow - Handle bugged currentThrowable (#5216) * Fix AB water vapor pressure calc (#4956) * Fix AB water vapor pressure calc * Fix calc in weather * Cleanup usage of constant * Add RVExtensionVersion, Rebuild AB DLLs * CH53 Fastroping and other fixes (#4713) * CH53 Fastroping and Fixes Added fastrope points for CH53. The getOut EH is required to keep the doors open when a unit exits the vehicle and it uses the vehicle animation "doorHandler_R" or "doorHandler_L" as a placeholder to determine if the doors are open(1)/close(0). eg. In UH1Y (Unarmed), when the right door is opened using the useraction, "doorRB" and "doorHandler_R" will be set to 1. * Changed TAB to 4 spaces * Moved bracket to follow guidelines * Refuel for non-AllVehicle objects (#5151) * Enabled refuel for non-AllVehicles objects. Un-magic'd refuel progress timer. * Changed helper attach position to centre of object. Offset applied when rope attached. * Made fully compatible with non-thingX simulation types. Removed destruction effects of helper object. * Using arma model. Removed ACE_Actions from helper object. * Correct use of hideObjectGlobal * Remove actions, cargo, repair on helper * Switched helper to be setVar'd on the nozzle object * Linkingbelt refactoring (#5213) * Linking belt refatoring startLinking belt now uses canLinkBelt so if condition needs to be changed then you can do it on one position. * Fixed requested change Fixed requested change * simplified it even more canLinkBelt now returns a value over 0 if success and -1 if something is not right. * Fixed bug where if error we would not exit Fixed bug where if error we would not exit * changed name on canLinkBelt Changed name to better reflect the function of the function. * Author hype * fixed return value info fixed return value info * fix header * Fix ammo count hidden in UAVs (#5222) * Fix ammo count hidden in UAVs * Switch to ace_reload condition * Add arsenal zeus modules (#4576) * Add zeus arsenal modules * Add french strings to arsenal modules * Fix typo in french string * Make changes to fit review * locality check, use showMessage, set categroy * Cargo load menu overhaul (#4871) * Add submenu with vehicles to cargo load menu * replace private ARRAY with keyword * fix ace function macro using * filter vehicles without cargo * add Load condition, clean params, fix param reusing * replace nearEntities with nearestObjects, add macro * optimize, del magic, replace count with forEach * del unused functions * del useless _this parameter * Cleanup aircraft (#5197) * Refuel - Add setting for hose length (#5224) * Remove unit from laser pointer list if laser removed (#5190) * Handle escape menu with toggle iteractMenu (#5144) * Handle escape menu with toggle iteractMenu * Work on non-cursor menu * Close cursor menu if open when switching * Update fnc_handleEscapeMenu.sqf * French translation missing (#5217) * French translation for the two last entries * French translation for the last entrie * French Translation for the first entrie * correct the spelling error * Lower minimum speed limiter speed to 5 km/h (#5065) * Update fnc_speedLimiter.sqf * No minimum speed needed anymore Minimum speed limit of 10 km/h was needed in the past due to engine limitations. Multiple user tests have shown that the minimum speed is not needed anymore. The new minimum of 0 km/h allows for example setting walking speed for vehicles (<10 km/h). * Change minimum required speed for speed limiter to 3 km/h To avoid problems with negative speeds (driving backwards) and zero speed, the current change switches from 10 km/h minimum speed to 3 km/h minimum speed. This seems to be the optimal solution to allow all relevant speeds including walking speed. * Changed minimum required speed to 5 km/h Officially the minimum required speed is 10 km/h in the master. Lower minimum needed to set car speed to walking speed of accompanying soldiers. Problems have been reported with 3 kmh/ using cars like ATVs. Thus the new commit is set to 5 km/h minimum speed. Not tested with ATVs yet. * Minor fixes, cleanup, add lint ignore directives (#5176) - Fix bug in getNumberMagazinesIn (func not used) - Fix bug in seekerFindLaserSpot (func not used yet) - Everything else is just cleanup * Fix zeus interaction locality (#5214) - The `setUnitPos`, `setFormation`, `setSpeedMode` and `setBehaviour` commands require local arguments - The waypoint equivalents require server execution - Add conditions to only show interactions when the appropriate things are selected * Add cargo eden attributes (#4780) - Add a ace_cargo_space attribute to vehicles to alter how much cargo they can carry. - Add an ace_cargo_size attribute to objects to alter how much cargo space they consume. - Add two public functions `fnc_setSize.sqf` and `fnc_setSpace.sqf` to update the cargo size/space respectively of any given object. - Deprecate cargo makeLoadable module and public function. - Added some macros to get the space/size of a config, making code more readable in places. * Fix IVs not showing in patient display (#5230) Fix #5192 for 3.10 * Remove submuntion ammo changes to A-10 (#5231) * Remove changes to Aircraft cannons * keep ammo changes, i guess * Fix zeus RC units using player damage treshold (#5219) * Fix zeus RC units using player damage treshold Closes #5218 * add pabstmirrors suggestion use gvar * Implement new cook off SFX (#5179) * Implement new cook off SFX with variants * Add hybrid V to authors * Open glass and CUP doors (#5226) * Fixed glassdoor Fixed so glassdoor now works with ace slow open. * Made it more pretty with new file Made it more pretty with new file * Tidy up a bit * Removed white space * Replace tabs with spaces Replace tabs with spaces * Simplified and added comments * Changes + was stupid was commit Changes to go with code guidlines and extra check if door is empty * Tabs to spaces * Small fixes + Fixed so CUP houses now works Fixed so CUP houses now works * Remove todo * Fixed requested changes * Removed whitespaces * Vehicle quick mount (#4931) * Add quickmount files from ACEX * Rename to ACE3, Streamline, Use clientInit * Rename functions to ACE3, Fix crew getting * Fix enabled text * Fix texts * Remove spaces * Rework seat search * NLAW - Predicted Line Of Sight Guidance and Overfly Attack Mode (#4791) * NLAW Prototype * Make AI Compatible * Add Overfly Top Attack Mode * Limit Max Deflection * Base prediction on AI skill * Generic cycle attack profile key for missile guidance * Add hint for weapons without huds * Configure for attack cycle key * Finish OTA ammo effects * Cleanup * Arm at 20m * Disable Debug * No models for short lived sub-ammos * Fix Korean strings * Change AI randomization to use skillFinal * Add wiki doc for nlaw * Cleanup * Cleanup * Cleanup * Hellfire missiles (#4679) * Hellfire * Cleanup dev macros * Cleanup some debug * Add base interaction node for firemode actions * Handle bad data in attack profile variable * Skip ammo checks (returns bad data on added weaps) * Add mags sizes for apache * Add Hellfire Wiki Doc * Cleanup doc * Add pylon support * Add support for pilot controlled weapons * Add label to pylon mags * Cleanup vehicle configs, autoAdd laser des, fix ineractions for driver * [Docs] Update component dependencies Automatically committed through Travis CI. [ci skip] * [Docs] Update component dependencies Automatically committed through Travis CI. [ci skip] * [Docs] Update component dependencies Automatically committed through Travis CI. [ci skip] * Fix spectator icons and camera jitter (#5067) * Use `Visual` commands for icons and external camera position * Fix accidental numerical change (#5235) * Fix being unable to throw last mag (#5242) * Italian Translation Update (#5243) Added Italian translation for: -cargo -hellfire -nlaw -quickmount -refuel -zeus * Cleanup unused hellfire vic stringtable (#5245) * Fix weapon select grenade count wehn using advThrow (#5244) * Raise lower carry object (#5234) * Fix to move items up and down * Fixed private * Fixed public bug * Inserted Pabst solution * Remove extra space * Fixed request + added author * Fixed to correct comment * Tweeked comment again * Added more info about indentations, tabs and EditorConfig (#5249) * Added more info about indentations, tabs and EditorConfig * Fixed original misspelling "Every" * Added Pylon weapon as a valid weapon (#5250) * Disable dragging on big AA Turrets (#5251) * note required PboProject version (#5256) * note required PboProject version * Update setting-up-the-development-environment.md * Conform function headers to coding guidelines (#5255) * Fixed headers to work with silentspike python script * Fixed rest of the files * Fixed ace-team * Rearm - Pylon Support and Dynamically Add Supply Actions (#5183) * Dynamic Add * Support 1.70 Pylon Loadouts * Properly handle old compat pbos - Update RHS Compat * Re-add documentation * cleanup headers (note from other pr) * Cleanup * Fix var spelling * Fix minor debug that got left in (#5260) * Repair specialist rename, fixes #3186 (#5248) * Changed name * Fixed Enginner only german and removed big letters * Added docs + PR fixes #3186 * Removed other languages * Fixed request and added comment * Replace all usage of term "Specialist" * Add Ability to Change Repair Times of Vehicles (#5205) * Add ability to change repair time based on vehicle * Much better * Unary command not function * Allow changing of track or wheel object per vehicle * Lot more complicated than I thought * Fix some event names on wiki (#5254) * Fix some event names on wiki * Switch callable events to functions * Remove maximum distance of attach to vehicle action (#5262) * Remove maximum distance of attachi to vehicle action * Readd max distance, 10 meters to allow usage with big vehicles but also end placement system if too far * Update kestrel4500.md (#5228) * Add repair feature to wiki (#5247) * Add repair feature to wiki * Add blank lines, use adv engineer * Add repair framework page * Fix Large IED defuse distance (#5261) * Fix for large-ied bug because underwater thing have changed * Added size of IED in config and determine defuse range * Added typo * Added help text to wiki about defusing * Better English * Increased the defusal range on large bombs make it similar to small ieds * Add wiki doc * Use getUnitTrait for medics, engineers and EOD (#5246) * Increase required CBA version to 3.3.1 * Prepare version 3.10.0 * Update cargo docs with new public functions (#5266) * Update cargo docs with new public functions * Add myself to squad.xml * Italian translation updated and fixed (#5268) Added newest lines for: -Rearm -Repair * Update homepage version numbers #4692 [ci skip] * Fix isFeatureCameraActive for Spectator enhacements (#5269) * fix isFeatureCameraActive for spec ace_spectator_camera was removed in 77c2b99ee542e3825c4f25e7b5a399597fd436e2 . spectator module initializes three separate cameras instead, of which for example ace_spectator_freeCamera can be used to check if spec mode is active * use ace_spectator_isSet to check for spec mode * Prepare release 3.10.0 (build 2) * fix video link (#5276) * Jpn translate 73bd37 (#5277) * Update the Jpn translation for cargo Update the Japanese translation for cargo * Add the Jpn translation for hellfire Add the Japanese translation for hellfire * Add the Jpn translation for nlaw Add the Japanese translation for nlaw * Add the Jpn translation for rearm Add the Japanese translation for rearm * Update the Jpn translation for refuel Update the Japanese translation for refuel * Update the Jpn translation for repair Update the Japanese translation for repair * Update the Jpn translation for zeus Update the Japanese translation for zeus * gos ndjenahoud latitude (#5275) * Count untraced errors in make.py (#5265) * Count untraced errors (any errors besides failed PBO builds and missinf files) in make.py * Fix error count and prettify printing * Cleanup heli pod actions (#5271) Close #4783 - Make taru pods non loadable - Make taru pods non draggable - Increase interaction range for huron pods * Make array of cargo holders dynamic (#5274) * Jpn translate feee7f5 (#5280) * Add the Jpn translation for quickmount Add the Japanese translation for quickmount * Update the Jpn translation for repair Update the Japanese translation for repair * Fix isFeatureCameraActive (#5291) * Fix isFeatureCameraActive (#5291) * Prepare release 3.10.1 * Add malden to getMapData (#5297) * Add malden to getMapData * Merge with CWR2 malden * Add malden to getMapData (#5297) * Add malden to getMapData * Merge with CWR2 malden * Add Chinese Traditional & Simplified Localization (#5295) Add Chinese Traditional & Simplified Localization * compats - Fix config name for resupply vics (#5300) * Modify JoinGroup action to show group name (#5287) * Modify JoinGroup action to show group name * header * Header * Repair - Handle depends = "0" (#5283) * Repair - Handle depends = "0" * quote * Refuel - change nozzle position calc (#5279) * Handle ace_cargo_canLoad set to scalar (#5306) * Add XEH to ace_module (#5304) * Changed hellfire interaction check & added N variant (#5294) * Changed weapon check for interaction to generic ace_hellfire_enabled value * Added November hellfire variant * Cleanup * +1 * Japanese translation d02dacf (#5309) * add the Jpn translation for repair add the Japanese translation for repair * minor fix to Jpn translation for medical minor fix to Jpn translation for medical * Correct new Chinese stringtable identifiers (#5334) * Fix the issue that SFX variants are not global (#5335) * Fix the issue that SFX variants are not global what means that different players can get different pressure Cookoff sounds to prevent that i split up the sounds in 3 types and used a Weighted select to have the befor used values back * add todo for 1.74 * inherit in CfgSFX from 1 class * fix #5324 (#5325) * Minor update Wiki AtragMx (#5322) * update wiki atragmx * Add files via upload * Fix broken fonts for map gps display (#5337) EtelkaNarrowMediumPro broke with 1.72 hotfix * Handle locked doors (#5345) * Allow repairing from slingload pods (#5316) * Add cargo space to huron containers (#5315) * Rallypoints- Don't modify setVar if already set (#5347)
2017-07-10 08:27:29 +00:00
Example:
(begin example)
ERROR("value of frog not found in config ...yada...yada...");
Update from acemod master (#1) * Generic cycle attack profile key for missile guidance (#4787) * Generic cycle attack profile key for missile guidance * Add hint for weapons without huds * Fix Korean strings * Cleanup * Frag Superanal Cleanup (#4803) * Minimal frag cleanup * Why did this even happen in the first place Conflicts: addons/frag/functions/fnc_frago.sqf * New Function to Show BIS Style Curator Messages (#4844) * Add showMessage fnc that shows BIS curator messages * Add documentation * Make function simpler * Modify to fir new syntax * Handle non-string args * Generic cycle attack profile key for missile guidance (#4787) * Generic cycle attack profile key for missile guidance * Add hint for weapons without huds * Fix Korean strings * Cleanup * Cache Nametags onDraw3D flags. (#4847) * Cache Nametag flags * Remove unused privates * Fix fading, cursorOnly mode, improve cache reset * Fix header * Fix Javelin for AI (#4857) * Optimize Laserpointer (#4859) * only process one unit every 0.1 seconds * exitWith to keep indentation low * use event to determine isIR and isTI * correctly remove units with turned on lights from their arrays * handle weaponAccessories command reporting nil Conflicts: addons/laserpointer/XEH_postInit.sqf * Fix RHS m113 compat (#4881) * Fix passenger actions - Ensure order of MainActions (#4883) * Fix getPos order (#4889) * Use createSimpleObject to create tags (#4892) * Update CBA required version (#4899) * prep v3.9.0 * Update required CBA version * Medical/Repair 3den Toolbox State Fix (Bug fix for #4902) (#4905) * Update medical/repair 3den away from missionNamespace * Simplify save * Hide earplug actions if setting disabled (#4913) * Hide earplug actions if setting disabled * Add lines that are new * Pass map gestures draw by reference (#4914) * Verify params in atragmx profile gunlist (#4917) * Fix setVariablePublic reseting to old values (#4938) * Fix setVariablePublic reseting to old values * Don't drop delay time * Reload medical configs into extension on save load (#4941) * Fix lost magazines when restoring gunbag mags (#4942) * Add RHS GREF compat for RKG-3 grenade (#4944) * Fix intergrated scopes (#4945) * Require CBA v3.2.1 (#4954) Conflicts: addons/main/script_mod.hpp * Fix gforce avg on switching to aircraft (#4955) * Fix gforce avg on switching to aircraft * Dont use for-loop for neutral g-forces array * Update maps' latitude (#4961) - add Dingor - add MSKE 2017 - add G.O.S Leskovets - add Trung Si - add I44: Omaha v2 - add I44: Neaville and Neaville (Winter) - add I44: Battle of the Bulge * Fix rangecard not showing wind/lead (#4964) * Give options menu list focus (#4965) * Cleanup use of ACE_HashLocation (#4975) * Add validation on group id for map gesture color mapping (#4976) * Fix vehicle lock lockpick condition, Fix lockpicking from inside (#4985) * Prep 3.9.1 release * Fix cookoff desynch, fix #4900 Randomness would be calculated on every machine, but only vehicle explosion and sound are done by the server. Smoke, light and fire sfx are done by each client. * also fix cooking off ammo boxes * Fix cookoff desynch, fix #4900 Randomness would be calculated on every machine, but only vehicle explosion and sound are done by the server. Smoke, light and fire sfx are done by each client. * also fix cooking off ammo boxes * Add rearm config for Nemmera (#4992) * Sandbags surfaces update (#4971) * Use private keyword, move surface blacklist to script_component.hpp * Check height above terrain * Add Tanoa surfaces, Check if in water * Use 'dust' config entry to determine surface, Add common canDig (checks dustyness) * Re-enable compile cache * Revert to surface blacklist with dust as fallback * Move surface blacklist to script_component because SQF validator complains * Fix unarmed sprint->prone + minor perf improvments (#4887) * AB : AtragMx wiki updated (#4982) * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Add files via upload * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update publish.py for RHS Gref Compat (#4999) * Update atragmx.md * Delete atragmx1.jpg * Add files via upload * Translation: Missing 3 strings in Polish (#5008) * update user url * Jpn translate to v391 (#5011) * jpn translate slideshow Add the Japanese translation for slideshow for v3.9.1 * jpn translate for cookoff Add the Japanese translation for cookoff of the v3.9.1 * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Prep 3.9.1 release * Update atragmx.md * Dupplicate Polish entry (#5018) https://i.gyazo.com/c7557980d7d4c36709be78ef1f2c2a8f.png * Update atragmx.md * Add custom CfgUIGrids for microDagr (#5014) * Update atragmx.md * Add files via upload * Update atragmx.md * fix links and `alt` texts * Duplicate French entry (#5032) Removes a duplicate French entry, didn't saw it :/ * Wiki range card updated (#5029) * Update rangecard.md * Update rangecard.md * Update rangecard.md * Add files via upload * Update rangecard.md * fix links and `alt` texts * Wiki Advanced Ballistics updated (#5030) * Update advanced-ballistics.md * Update advanced-ballistics.md * Update advanced-ballistics.md * Update advanced-ballistics.md * Update advanced-ballistics.md * Update advanced-ballistics.md * Update advanced-ballistics.md * Update advanced-ballistics.md * Update advanced-ballistics.md * Update advanced-ballistics.md * Add files via upload * Update advanced-ballistics.md * fix links and `alt` texts * Wiki Kestrel 4500 updated (#5027) * Update kestrel4500.md * Update kestrel4500.md * Update kestrel4500.md * Update kestrel4500.md * Update kestrel4500.md * Update kestrel4500.md * Update kestrel4500.md * fix links and `alt` texts * Wiki scope updated (#5028) * Update scopes.md * Update scopes.md * Update scopes.md * Add files via upload * Update scopes.md * fix links and `alt` texts * French loc improvement (#5017) * French loc improvement (French) text as it is clutters the interface interface, making it uneasy for medic to use the it smoothly. https://i.gyazo.com/8d7a5bb2f15dd1332cec36f2eef510c8.png Hopefully suggested changes fixes that. There were a few typos and, in my opinion, unaccurate or missing translation. Based on French Army Field Manual, actual paramedical personnel and past work on XMedSys. * Pull 5017 with spaces instead of tabs https://github.com/acemod/ACE3/pull/5017 * Fixes a minor typo Selectioner -> Sélectionner * Duplicate entry (French) Removes a duplicate entry, didn't saw first time * Wiki scope updated_1 (#5037) * Update scopes.md * Update scopes.md * Update scopes.md * Add files via upload * Update scopes.md * fix links and `alt` texts * Delete scope_module.jpg * Add files via upload * Update scopes.md * French additions (Cargo) (#5040) Minor French text additions * French loc fixes (ballistics) (#5041) Minor French loc fixes * Update documentation for Vector21 Add explanation on how to switch range and azimuth units * Add blank line after heading * Update vector.md * Update atragmx.md * fix link atragmx.md * Fix dagr not showing bearing in mils (#5047) * Fix cargo loading to locked vehicle (#5049) * Update ACEX to 3.2.0.4 (#5062) * tweak ACE main menu info box * use https for main menu * use https for main men * fix highlighted info box color (#5075) * Filter headless clients from zeus teleportation (#5070) * Use setShotParents in Advanced Throwing (#5052) * Use setShotParents in Advanced Throwing - close #5034 * Execute setShotParents on server (server-only command) * Fix FCS Vehicle Init (#5063) * Tweak overheating (#4969) * Tweak overheating * Add define for constant magic num * Virtual units - skip goggles/hearing effects (#4988) * Disable goggles and hearing fx for virtual units * Cleanup some other CBA_fnc_addPlayerEventHandler * Fix tagging model cache (#5055) * Frag - Cleanup and Performance (#5010) * Frag - Cleanup and Performance * Add dots * (Medical) French text - minor changes (#5043) Minor changes due to users feedback * French localization complete (#5079) * French localization complete * STR_ACE_MapTools_drawStaightLines_description fix "l'on doit survoler le milieu du trait pour pouvoir le supprimer" * Space management alganthe : Espace en trop après référence. * Diapo alganthe : Slideshow -> diaporama Slide -> diapo * Cohesion fix alganthe : Vous avez traduit le nom du module juste au dessus (displayname). Il est vrai que les créateurs de missions doivent consulter une documentation principalement écrite en anglais, donc vous avez le choix de traduire la ligne ci-dessus ou la garder, les deux semblent valide à mes yeux. Reasoning : since French mission makers read reference material in English, it makes sense not to translate it and thus keep it simple for them. * Caisses de munitions caisse de mun -> caisses de munitions * STR_ACE_Scopes_Description Oops, forgot that one. * Fix RHS mp7 UBC (#5085) * Fix broken url on modules wiki page (#5088) * Fix Javelin for AI for RHS (#5096) * Remove CfgAiSkill config changes (#5091) * Remove CfgAiSkill config changes * Add note to wiki about removal * Add volume toggle docs (#5077) * Add volume toggle docs * Change version and remove ref to another mod * Changes as per review * Fix numbers * Fix refuel nozzle dropping to ground (#5119) * Fix jerry can refuel interaction overlapping (#5107) * Add keybind to toggle interaction menu (#5095) * Add Paradrop Time Coefficient Setting (#5116) * Add coef * Show cargo paradrop time in menu * Unary command, not a function call * If drop time is 0 don't show a progress bar * Add the setting to cargo's editor module * Swap values * Remove extra comma * Move unload message to paradrop event This way the message will show up on all paradrops, not just immidiate ones. * Disable search on spectator unit tree Finally found out how to do this. Having search enabled on the unit tree might seem useful, but it doesn't interact well with keyboard shortcuts used for other purposes like camera control as it causes the tree to jump around unexpectedly. * Simplify spectator compass code * Optimize spectator unit list function Making good use of the new `select` CODE syntax. * Add 3den info to spectator template - A `displayName` shown in the 3DEN multiplayer attributes display - A `respawnTypes` array to define which respawn types the template is compatible with (currently only includes `2,3` - need to investigate compatibility with other types further). * Fix #5081 The default values of the arrays manipulated by these functions overwrite any changes applied before settings have finished initalising. This won't be an issue after #4456 is merged in future. * Improve Japanese translation (#5133) * Add the Japanese translation for cargo Add the Japanese translation for cargo, fix to html tag and few improvement * fix the Japanese transltion Fix the Japanese translation for attach. it was used wrong html tag. * changed The Japanese translation Changed the Japanese translation of azimuth angle * fix The Japanese translation Fix the Japanese translation for chemlights. it was used wrong html tag. * fix The Japanese translation Fix the Japanese translation for laserpointer. it was used wrong html tag. * Fix the Japanese translation Fix the Japanese translation for medical_blood. it was used wrong translation. * Fix the Japanese translation Fix the Japanese translation for rearm. it was used wrong translation. * add The Japanese translation add The Japanese translation to new words * Improve The Japanese translation Improve, fix and change The Japanese translation * minor fix to Japanese translation minor fix to Japanese translation. see b1b07c5 * Fix Spotting Scope Interaction Point (#5132) * Disable ACE_FCS on RHS Russian Attack Helis (#5145) * Switch 2 perm PFEH to everyFrame (#5140) * Explosives - Add code handler for detonation (#5115) * Explosives - Add code handler for detonation * Add info to wiki * Fix cellphone in demo code, move example to wiki * Zeus Suppression Module (#4977) * add base structure * Add getModuleDestination * Add 2d map support, debug * Cleanup, handle weapon max range * Handle non-local units * Use new showMessage func * Run on groups when placed on leader * Support for Indirect Fire Vehicles * Cleanup * Use doArtilleryFire which was fixed in 1.68 * hitreactions - Close map on hit (#5099) * Wiki AtragMx minor changes (#5111) * fix markdown syntax * Update atragmx.md * AB: Lythium latitude (#5109) * Update fnc_getMapData.sqf * bump1 * bump2 * AB: update compat R3F v3.5 (#5097) * Update CfgWeapons.hpp * Update CfgAmmo.hpp * Update CfgAmmo.hpp * Update CfgWeapons.hpp * Update CfgWeapons.hpp * Update CfgWeapons.hpp * Update CfgWeapons.hpp * Update CfgWeapons.hpp * fix missing `{` * fix `dispersion` * fix space * AtragMx: BC G1 .338LM API526 (#5069) * Update fnc_initGunList.sqf * Update fnc_initGunList.sqf * C1 coefficient 0.58 * Jerry Can - only set global var on server (#5131) * Add Arma 3 Issues breaking ace_rearm (#5150) * MapGesutres - Fix dependency on maptools (#5154) * MapGesutres - Use getVariable to remove dependency * Use isModLoaded * Add missing base class to r3f compat (#5156) * Disable g-forces for UAV AI (#5094) * Increase max weapon index for large modsets (#5054) * Disable rearm,refuel on dead vehicles (#5158) * SQF Lint Cleanup Pass (#5157) * SQF Lint Cleanup Pass * Fix var in TRACE * Add basic python tool * Simplify * Hit space key 6 times * Fix error in dropNozzle * handle error message exceptions * Fix py * 1.70 CMs - Remove countermeasure mode switching (#5163) * 1.70 FCS - Remove ACE_FCS from most vics (#5152) * Handle 1.70 FCS * Cleanup CfgWeapons * Add warning for discreteDistance * 1.70 CMs - Remove countermeasure mode switching (#5163) * 1.70 FCS - Remove ACE_FCS from most vics (#5152) * Handle 1.70 FCS * Cleanup CfgWeapons * Add warning for discreteDistance * Realistic names for 1.70 pylon magazines (#5165) * Realistic names for 1.70 pylon magazines (#5165) * Fix gatling_30mm UBC for 1.70 (#5125) * Fix gatling_30mm UBC for 1.70 * Fix verEsion * Fix gatling_30mm UBC for 1.70 (#5125) * Fix gatling_30mm UBC for 1.70 * Fix verEsion * Prep 3.9.2 (version numbers) * Update required Arma 3 version to 1.70 * Prepare release 3.9.2 * Update helmet hearing protection for RHS-US (#5146) * Update helmet hearing protection for RHS-US * Hearing - Add standardized helmet protection macros * Tweak peltor vol * Disable aircraft flightmodel changes (#5167) * Disable aircraft flightmodel changes * Remove files * Fix merge, cbaEvents, macros, cleanup * Use correct TransportX type for ace items (#5168) * Use correct TransportX type for ace items * Fix messing with flare colors * Just warn for old compat pbos (#5177) * Just warn for old compat pbos * Use CBA_fnc_error big warning box * fix caps * Italian translation (Add & Fix) (#5193) Added Italian translation for: -advanced fatigue -advanced throwing -cook off -dogtags -gunbag -ui-scopes and much more... Fixed a lot of grammatical errors * Zeus updated (#5198) Fixes and adds in the zeus section * Add AtixNeon to AUTHORS.txt * Add realistic names to dynamic loadout classes (#5185) * RHS CH-47 - use animationSourcePhase (#5201) * Fix Zeus teleport players module (#5175) * Add dummy function to zeus UI modules This removes the message about the module having no function when in SP. * Fix zeus teleport module for non-local units BI made a change to the function this module was using. So now it has to be ran local to the player in question. * Adv Throw - Handle getShotParents being [] (#5210) * Correct compat classnames (#5204) * Linking belt refactoring (#5206) * Linking belt refatoring startLinking belt now uses canLinkBelt so if condition needs to be changed then you can do it on one position. * Fixed requested change Fixed requested change * AdvThrow - Handle bugged currentThrowable (#5216) * Fix AB water vapor pressure calc (#4956) * Fix AB water vapor pressure calc * Fix calc in weather * Cleanup usage of constant * Add RVExtensionVersion, Rebuild AB DLLs * CH53 Fastroping and other fixes (#4713) * CH53 Fastroping and Fixes Added fastrope points for CH53. The getOut EH is required to keep the doors open when a unit exits the vehicle and it uses the vehicle animation "doorHandler_R" or "doorHandler_L" as a placeholder to determine if the doors are open(1)/close(0). eg. In UH1Y (Unarmed), when the right door is opened using the useraction, "doorRB" and "doorHandler_R" will be set to 1. * Changed TAB to 4 spaces * Moved bracket to follow guidelines * Refuel for non-AllVehicle objects (#5151) * Enabled refuel for non-AllVehicles objects. Un-magic'd refuel progress timer. * Changed helper attach position to centre of object. Offset applied when rope attached. * Made fully compatible with non-thingX simulation types. Removed destruction effects of helper object. * Using arma model. Removed ACE_Actions from helper object. * Correct use of hideObjectGlobal * Remove actions, cargo, repair on helper * Switched helper to be setVar'd on the nozzle object * Linkingbelt refactoring (#5213) * Linking belt refatoring startLinking belt now uses canLinkBelt so if condition needs to be changed then you can do it on one position. * Fixed requested change Fixed requested change * simplified it even more canLinkBelt now returns a value over 0 if success and -1 if something is not right. * Fixed bug where if error we would not exit Fixed bug where if error we would not exit * changed name on canLinkBelt Changed name to better reflect the function of the function. * Author hype * fixed return value info fixed return value info * fix header * Fix ammo count hidden in UAVs (#5222) * Fix ammo count hidden in UAVs * Switch to ace_reload condition * Add arsenal zeus modules (#4576) * Add zeus arsenal modules * Add french strings to arsenal modules * Fix typo in french string * Make changes to fit review * locality check, use showMessage, set categroy * Cargo load menu overhaul (#4871) * Add submenu with vehicles to cargo load menu * replace private ARRAY with keyword * fix ace function macro using * filter vehicles without cargo * add Load condition, clean params, fix param reusing * replace nearEntities with nearestObjects, add macro * optimize, del magic, replace count with forEach * del unused functions * del useless _this parameter * Cleanup aircraft (#5197) * Refuel - Add setting for hose length (#5224) * Remove unit from laser pointer list if laser removed (#5190) * Handle escape menu with toggle iteractMenu (#5144) * Handle escape menu with toggle iteractMenu * Work on non-cursor menu * Close cursor menu if open when switching * Update fnc_handleEscapeMenu.sqf * French translation missing (#5217) * French translation for the two last entries * French translation for the last entrie * French Translation for the first entrie * correct the spelling error * Lower minimum speed limiter speed to 5 km/h (#5065) * Update fnc_speedLimiter.sqf * No minimum speed needed anymore Minimum speed limit of 10 km/h was needed in the past due to engine limitations. Multiple user tests have shown that the minimum speed is not needed anymore. The new minimum of 0 km/h allows for example setting walking speed for vehicles (<10 km/h). * Change minimum required speed for speed limiter to 3 km/h To avoid problems with negative speeds (driving backwards) and zero speed, the current change switches from 10 km/h minimum speed to 3 km/h minimum speed. This seems to be the optimal solution to allow all relevant speeds including walking speed. * Changed minimum required speed to 5 km/h Officially the minimum required speed is 10 km/h in the master. Lower minimum needed to set car speed to walking speed of accompanying soldiers. Problems have been reported with 3 kmh/ using cars like ATVs. Thus the new commit is set to 5 km/h minimum speed. Not tested with ATVs yet. * Minor fixes, cleanup, add lint ignore directives (#5176) - Fix bug in getNumberMagazinesIn (func not used) - Fix bug in seekerFindLaserSpot (func not used yet) - Everything else is just cleanup * Fix zeus interaction locality (#5214) - The `setUnitPos`, `setFormation`, `setSpeedMode` and `setBehaviour` commands require local arguments - The waypoint equivalents require server execution - Add conditions to only show interactions when the appropriate things are selected * Add cargo eden attributes (#4780) - Add a ace_cargo_space attribute to vehicles to alter how much cargo they can carry. - Add an ace_cargo_size attribute to objects to alter how much cargo space they consume. - Add two public functions `fnc_setSize.sqf` and `fnc_setSpace.sqf` to update the cargo size/space respectively of any given object. - Deprecate cargo makeLoadable module and public function. - Added some macros to get the space/size of a config, making code more readable in places. * Fix IVs not showing in patient display (#5230) Fix #5192 for 3.10 * Remove submuntion ammo changes to A-10 (#5231) * Remove changes to Aircraft cannons * keep ammo changes, i guess * Fix zeus RC units using player damage treshold (#5219) * Fix zeus RC units using player damage treshold Closes #5218 * add pabstmirrors suggestion use gvar * Implement new cook off SFX (#5179) * Implement new cook off SFX with variants * Add hybrid V to authors * Open glass and CUP doors (#5226) * Fixed glassdoor Fixed so glassdoor now works with ace slow open. * Made it more pretty with new file Made it more pretty with new file * Tidy up a bit * Removed white space * Replace tabs with spaces Replace tabs with spaces * Simplified and added comments * Changes + was stupid was commit Changes to go with code guidlines and extra check if door is empty * Tabs to spaces * Small fixes + Fixed so CUP houses now works Fixed so CUP houses now works * Remove todo * Fixed requested changes * Removed whitespaces * Vehicle quick mount (#4931) * Add quickmount files from ACEX * Rename to ACE3, Streamline, Use clientInit * Rename functions to ACE3, Fix crew getting * Fix enabled text * Fix texts * Remove spaces * Rework seat search * NLAW - Predicted Line Of Sight Guidance and Overfly Attack Mode (#4791) * NLAW Prototype * Make AI Compatible * Add Overfly Top Attack Mode * Limit Max Deflection * Base prediction on AI skill * Generic cycle attack profile key for missile guidance * Add hint for weapons without huds * Configure for attack cycle key * Finish OTA ammo effects * Cleanup * Arm at 20m * Disable Debug * No models for short lived sub-ammos * Fix Korean strings * Change AI randomization to use skillFinal * Add wiki doc for nlaw * Cleanup * Cleanup * Cleanup * Hellfire missiles (#4679) * Hellfire * Cleanup dev macros * Cleanup some debug * Add base interaction node for firemode actions * Handle bad data in attack profile variable * Skip ammo checks (returns bad data on added weaps) * Add mags sizes for apache * Add Hellfire Wiki Doc * Cleanup doc * Add pylon support * Add support for pilot controlled weapons * Add label to pylon mags * Cleanup vehicle configs, autoAdd laser des, fix ineractions for driver * [Docs] Update component dependencies Automatically committed through Travis CI. [ci skip] * [Docs] Update component dependencies Automatically committed through Travis CI. [ci skip] * [Docs] Update component dependencies Automatically committed through Travis CI. [ci skip] * Fix spectator icons and camera jitter (#5067) * Use `Visual` commands for icons and external camera position * Fix accidental numerical change (#5235) * Fix being unable to throw last mag (#5242) * Italian Translation Update (#5243) Added Italian translation for: -cargo -hellfire -nlaw -quickmount -refuel -zeus * Cleanup unused hellfire vic stringtable (#5245) * Fix weapon select grenade count wehn using advThrow (#5244) * Raise lower carry object (#5234) * Fix to move items up and down * Fixed private * Fixed public bug * Inserted Pabst solution * Remove extra space * Fixed request + added author * Fixed to correct comment * Tweeked comment again * Added more info about indentations, tabs and EditorConfig (#5249) * Added more info about indentations, tabs and EditorConfig * Fixed original misspelling "Every" * Added Pylon weapon as a valid weapon (#5250) * Disable dragging on big AA Turrets (#5251) * note required PboProject version (#5256) * note required PboProject version * Update setting-up-the-development-environment.md * Conform function headers to coding guidelines (#5255) * Fixed headers to work with silentspike python script * Fixed rest of the files * Fixed ace-team * Rearm - Pylon Support and Dynamically Add Supply Actions (#5183) * Dynamic Add * Support 1.70 Pylon Loadouts * Properly handle old compat pbos - Update RHS Compat * Re-add documentation * cleanup headers (note from other pr) * Cleanup * Fix var spelling * Fix minor debug that got left in (#5260) * Repair specialist rename, fixes #3186 (#5248) * Changed name * Fixed Enginner only german and removed big letters * Added docs + PR fixes #3186 * Removed other languages * Fixed request and added comment * Replace all usage of term "Specialist" * Add Ability to Change Repair Times of Vehicles (#5205) * Add ability to change repair time based on vehicle * Much better * Unary command not function * Allow changing of track or wheel object per vehicle * Lot more complicated than I thought * Fix some event names on wiki (#5254) * Fix some event names on wiki * Switch callable events to functions * Remove maximum distance of attach to vehicle action (#5262) * Remove maximum distance of attachi to vehicle action * Readd max distance, 10 meters to allow usage with big vehicles but also end placement system if too far * Update kestrel4500.md (#5228) * Add repair feature to wiki (#5247) * Add repair feature to wiki * Add blank lines, use adv engineer * Add repair framework page * Fix Large IED defuse distance (#5261) * Fix for large-ied bug because underwater thing have changed * Added size of IED in config and determine defuse range * Added typo * Added help text to wiki about defusing * Better English * Increased the defusal range on large bombs make it similar to small ieds * Add wiki doc * Use getUnitTrait for medics, engineers and EOD (#5246) * Increase required CBA version to 3.3.1 * Prepare version 3.10.0 * Update cargo docs with new public functions (#5266) * Update cargo docs with new public functions * Add myself to squad.xml * Italian translation updated and fixed (#5268) Added newest lines for: -Rearm -Repair * Update homepage version numbers #4692 [ci skip] * Fix isFeatureCameraActive for Spectator enhacements (#5269) * fix isFeatureCameraActive for spec ace_spectator_camera was removed in 77c2b99ee542e3825c4f25e7b5a399597fd436e2 . spectator module initializes three separate cameras instead, of which for example ace_spectator_freeCamera can be used to check if spec mode is active * use ace_spectator_isSet to check for spec mode * Prepare release 3.10.0 (build 2) * fix video link (#5276) * Jpn translate 73bd37 (#5277) * Update the Jpn translation for cargo Update the Japanese translation for cargo * Add the Jpn translation for hellfire Add the Japanese translation for hellfire * Add the Jpn translation for nlaw Add the Japanese translation for nlaw * Add the Jpn translation for rearm Add the Japanese translation for rearm * Update the Jpn translation for refuel Update the Japanese translation for refuel * Update the Jpn translation for repair Update the Japanese translation for repair * Update the Jpn translation for zeus Update the Japanese translation for zeus * gos ndjenahoud latitude (#5275) * Count untraced errors in make.py (#5265) * Count untraced errors (any errors besides failed PBO builds and missinf files) in make.py * Fix error count and prettify printing * Cleanup heli pod actions (#5271) Close #4783 - Make taru pods non loadable - Make taru pods non draggable - Increase interaction range for huron pods * Make array of cargo holders dynamic (#5274) * Jpn translate feee7f5 (#5280) * Add the Jpn translation for quickmount Add the Japanese translation for quickmount * Update the Jpn translation for repair Update the Japanese translation for repair * Fix isFeatureCameraActive (#5291) * Fix isFeatureCameraActive (#5291) * Prepare release 3.10.1 * Add malden to getMapData (#5297) * Add malden to getMapData * Merge with CWR2 malden * Add malden to getMapData (#5297) * Add malden to getMapData * Merge with CWR2 malden * Add Chinese Traditional & Simplified Localization (#5295) Add Chinese Traditional & Simplified Localization * compats - Fix config name for resupply vics (#5300) * Modify JoinGroup action to show group name (#5287) * Modify JoinGroup action to show group name * header * Header * Repair - Handle depends = "0" (#5283) * Repair - Handle depends = "0" * quote * Refuel - change nozzle position calc (#5279) * Handle ace_cargo_canLoad set to scalar (#5306) * Add XEH to ace_module (#5304) * Changed hellfire interaction check & added N variant (#5294) * Changed weapon check for interaction to generic ace_hellfire_enabled value * Added November hellfire variant * Cleanup * +1 * Japanese translation d02dacf (#5309) * add the Jpn translation for repair add the Japanese translation for repair * minor fix to Jpn translation for medical minor fix to Jpn translation for medical * Correct new Chinese stringtable identifiers (#5334) * Fix the issue that SFX variants are not global (#5335) * Fix the issue that SFX variants are not global what means that different players can get different pressure Cookoff sounds to prevent that i split up the sounds in 3 types and used a Weighted select to have the befor used values back * add todo for 1.74 * inherit in CfgSFX from 1 class * fix #5324 (#5325) * Minor update Wiki AtragMx (#5322) * update wiki atragmx * Add files via upload * Fix broken fonts for map gps display (#5337) EtelkaNarrowMediumPro broke with 1.72 hotfix * Handle locked doors (#5345) * Allow repairing from slingload pods (#5316) * Add cargo space to huron containers (#5315) * Rallypoints- Don't modify setVar if already set (#5347)
2017-07-10 08:27:29 +00:00
(end)
Author:
Spooner
Update from acemod master (#1) * Generic cycle attack profile key for missile guidance (#4787) * Generic cycle attack profile key for missile guidance * Add hint for weapons without huds * Fix Korean strings * Cleanup * Frag Superanal Cleanup (#4803) * Minimal frag cleanup * Why did this even happen in the first place Conflicts: addons/frag/functions/fnc_frago.sqf * New Function to Show BIS Style Curator Messages (#4844) * Add showMessage fnc that shows BIS curator messages * Add documentation * Make function simpler * Modify to fir new syntax * Handle non-string args * Generic cycle attack profile key for missile guidance (#4787) * Generic cycle attack profile key for missile guidance * Add hint for weapons without huds * Fix Korean strings * Cleanup * Cache Nametags onDraw3D flags. (#4847) * Cache Nametag flags * Remove unused privates * Fix fading, cursorOnly mode, improve cache reset * Fix header * Fix Javelin for AI (#4857) * Optimize Laserpointer (#4859) * only process one unit every 0.1 seconds * exitWith to keep indentation low * use event to determine isIR and isTI * correctly remove units with turned on lights from their arrays * handle weaponAccessories command reporting nil Conflicts: addons/laserpointer/XEH_postInit.sqf * Fix RHS m113 compat (#4881) * Fix passenger actions - Ensure order of MainActions (#4883) * Fix getPos order (#4889) * Use createSimpleObject to create tags (#4892) * Update CBA required version (#4899) * prep v3.9.0 * Update required CBA version * Medical/Repair 3den Toolbox State Fix (Bug fix for #4902) (#4905) * Update medical/repair 3den away from missionNamespace * Simplify save * Hide earplug actions if setting disabled (#4913) * Hide earplug actions if setting disabled * Add lines that are new * Pass map gestures draw by reference (#4914) * Verify params in atragmx profile gunlist (#4917) * Fix setVariablePublic reseting to old values (#4938) * Fix setVariablePublic reseting to old values * Don't drop delay time * Reload medical configs into extension on save load (#4941) * Fix lost magazines when restoring gunbag mags (#4942) * Add RHS GREF compat for RKG-3 grenade (#4944) * Fix intergrated scopes (#4945) * Require CBA v3.2.1 (#4954) Conflicts: addons/main/script_mod.hpp * Fix gforce avg on switching to aircraft (#4955) * Fix gforce avg on switching to aircraft * Dont use for-loop for neutral g-forces array * Update maps' latitude (#4961) - add Dingor - add MSKE 2017 - add G.O.S Leskovets - add Trung Si - add I44: Omaha v2 - add I44: Neaville and Neaville (Winter) - add I44: Battle of the Bulge * Fix rangecard not showing wind/lead (#4964) * Give options menu list focus (#4965) * Cleanup use of ACE_HashLocation (#4975) * Add validation on group id for map gesture color mapping (#4976) * Fix vehicle lock lockpick condition, Fix lockpicking from inside (#4985) * Prep 3.9.1 release * Fix cookoff desynch, fix #4900 Randomness would be calculated on every machine, but only vehicle explosion and sound are done by the server. Smoke, light and fire sfx are done by each client. * also fix cooking off ammo boxes * Fix cookoff desynch, fix #4900 Randomness would be calculated on every machine, but only vehicle explosion and sound are done by the server. Smoke, light and fire sfx are done by each client. * also fix cooking off ammo boxes * Add rearm config for Nemmera (#4992) * Sandbags surfaces update (#4971) * Use private keyword, move surface blacklist to script_component.hpp * Check height above terrain * Add Tanoa surfaces, Check if in water * Use 'dust' config entry to determine surface, Add common canDig (checks dustyness) * Re-enable compile cache * Revert to surface blacklist with dust as fallback * Move surface blacklist to script_component because SQF validator complains * Fix unarmed sprint->prone + minor perf improvments (#4887) * AB : AtragMx wiki updated (#4982) * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Add files via upload * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update publish.py for RHS Gref Compat (#4999) * Update atragmx.md * Delete atragmx1.jpg * Add files via upload * Translation: Missing 3 strings in Polish (#5008) * update user url * Jpn translate to v391 (#5011) * jpn translate slideshow Add the Japanese translation for slideshow for v3.9.1 * jpn translate for cookoff Add the Japanese translation for cookoff of the v3.9.1 * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Update atragmx.md * Prep 3.9.1 release * Update atragmx.md * Dupplicate Polish entry (#5018) https://i.gyazo.com/c7557980d7d4c36709be78ef1f2c2a8f.png * Update atragmx.md * Add custom CfgUIGrids for microDagr (#5014) * Update atragmx.md * Add files via upload * Update atragmx.md * fix links and `alt` texts * Duplicate French entry (#5032) Removes a duplicate French entry, didn't saw it :/ * Wiki range card updated (#5029) * Update rangecard.md * Update rangecard.md * Update rangecard.md * Add files via upload * Update rangecard.md * fix links and `alt` texts * Wiki Advanced Ballistics updated (#5030) * Update advanced-ballistics.md * Update advanced-ballistics.md * Update advanced-ballistics.md * Update advanced-ballistics.md * Update advanced-ballistics.md * Update advanced-ballistics.md * Update advanced-ballistics.md * Update advanced-ballistics.md * Update advanced-ballistics.md * Update advanced-ballistics.md * Add files via upload * Update advanced-ballistics.md * fix links and `alt` texts * Wiki Kestrel 4500 updated (#5027) * Update kestrel4500.md * Update kestrel4500.md * Update kestrel4500.md * Update kestrel4500.md * Update kestrel4500.md * Update kestrel4500.md * Update kestrel4500.md * fix links and `alt` texts * Wiki scope updated (#5028) * Update scopes.md * Update scopes.md * Update scopes.md * Add files via upload * Update scopes.md * fix links and `alt` texts * French loc improvement (#5017) * French loc improvement (French) text as it is clutters the interface interface, making it uneasy for medic to use the it smoothly. https://i.gyazo.com/8d7a5bb2f15dd1332cec36f2eef510c8.png Hopefully suggested changes fixes that. There were a few typos and, in my opinion, unaccurate or missing translation. Based on French Army Field Manual, actual paramedical personnel and past work on XMedSys. * Pull 5017 with spaces instead of tabs https://github.com/acemod/ACE3/pull/5017 * Fixes a minor typo Selectioner -> Sélectionner * Duplicate entry (French) Removes a duplicate entry, didn't saw first time * Wiki scope updated_1 (#5037) * Update scopes.md * Update scopes.md * Update scopes.md * Add files via upload * Update scopes.md * fix links and `alt` texts * Delete scope_module.jpg * Add files via upload * Update scopes.md * French additions (Cargo) (#5040) Minor French text additions * French loc fixes (ballistics) (#5041) Minor French loc fixes * Update documentation for Vector21 Add explanation on how to switch range and azimuth units * Add blank line after heading * Update vector.md * Update atragmx.md * fix link atragmx.md * Fix dagr not showing bearing in mils (#5047) * Fix cargo loading to locked vehicle (#5049) * Update ACEX to 3.2.0.4 (#5062) * tweak ACE main menu info box * use https for main menu * use https for main men * fix highlighted info box color (#5075) * Filter headless clients from zeus teleportation (#5070) * Use setShotParents in Advanced Throwing (#5052) * Use setShotParents in Advanced Throwing - close #5034 * Execute setShotParents on server (server-only command) * Fix FCS Vehicle Init (#5063) * Tweak overheating (#4969) * Tweak overheating * Add define for constant magic num * Virtual units - skip goggles/hearing effects (#4988) * Disable goggles and hearing fx for virtual units * Cleanup some other CBA_fnc_addPlayerEventHandler * Fix tagging model cache (#5055) * Frag - Cleanup and Performance (#5010) * Frag - Cleanup and Performance * Add dots * (Medical) French text - minor changes (#5043) Minor changes due to users feedback * French localization complete (#5079) * French localization complete * STR_ACE_MapTools_drawStaightLines_description fix "l'on doit survoler le milieu du trait pour pouvoir le supprimer" * Space management alganthe : Espace en trop après référence. * Diapo alganthe : Slideshow -> diaporama Slide -> diapo * Cohesion fix alganthe : Vous avez traduit le nom du module juste au dessus (displayname). Il est vrai que les créateurs de missions doivent consulter une documentation principalement écrite en anglais, donc vous avez le choix de traduire la ligne ci-dessus ou la garder, les deux semblent valide à mes yeux. Reasoning : since French mission makers read reference material in English, it makes sense not to translate it and thus keep it simple for them. * Caisses de munitions caisse de mun -> caisses de munitions * STR_ACE_Scopes_Description Oops, forgot that one. * Fix RHS mp7 UBC (#5085) * Fix broken url on modules wiki page (#5088) * Fix Javelin for AI for RHS (#5096) * Remove CfgAiSkill config changes (#5091) * Remove CfgAiSkill config changes * Add note to wiki about removal * Add volume toggle docs (#5077) * Add volume toggle docs * Change version and remove ref to another mod * Changes as per review * Fix numbers * Fix refuel nozzle dropping to ground (#5119) * Fix jerry can refuel interaction overlapping (#5107) * Add keybind to toggle interaction menu (#5095) * Add Paradrop Time Coefficient Setting (#5116) * Add coef * Show cargo paradrop time in menu * Unary command, not a function call * If drop time is 0 don't show a progress bar * Add the setting to cargo's editor module * Swap values * Remove extra comma * Move unload message to paradrop event This way the message will show up on all paradrops, not just immidiate ones. * Disable search on spectator unit tree Finally found out how to do this. Having search enabled on the unit tree might seem useful, but it doesn't interact well with keyboard shortcuts used for other purposes like camera control as it causes the tree to jump around unexpectedly. * Simplify spectator compass code * Optimize spectator unit list function Making good use of the new `select` CODE syntax. * Add 3den info to spectator template - A `displayName` shown in the 3DEN multiplayer attributes display - A `respawnTypes` array to define which respawn types the template is compatible with (currently only includes `2,3` - need to investigate compatibility with other types further). * Fix #5081 The default values of the arrays manipulated by these functions overwrite any changes applied before settings have finished initalising. This won't be an issue after #4456 is merged in future. * Improve Japanese translation (#5133) * Add the Japanese translation for cargo Add the Japanese translation for cargo, fix to html tag and few improvement * fix the Japanese transltion Fix the Japanese translation for attach. it was used wrong html tag. * changed The Japanese translation Changed the Japanese translation of azimuth angle * fix The Japanese translation Fix the Japanese translation for chemlights. it was used wrong html tag. * fix The Japanese translation Fix the Japanese translation for laserpointer. it was used wrong html tag. * Fix the Japanese translation Fix the Japanese translation for medical_blood. it was used wrong translation. * Fix the Japanese translation Fix the Japanese translation for rearm. it was used wrong translation. * add The Japanese translation add The Japanese translation to new words * Improve The Japanese translation Improve, fix and change The Japanese translation * minor fix to Japanese translation minor fix to Japanese translation. see b1b07c5 * Fix Spotting Scope Interaction Point (#5132) * Disable ACE_FCS on RHS Russian Attack Helis (#5145) * Switch 2 perm PFEH to everyFrame (#5140) * Explosives - Add code handler for detonation (#5115) * Explosives - Add code handler for detonation * Add info to wiki * Fix cellphone in demo code, move example to wiki * Zeus Suppression Module (#4977) * add base structure * Add getModuleDestination * Add 2d map support, debug * Cleanup, handle weapon max range * Handle non-local units * Use new showMessage func * Run on groups when placed on leader * Support for Indirect Fire Vehicles * Cleanup * Use doArtilleryFire which was fixed in 1.68 * hitreactions - Close map on hit (#5099) * Wiki AtragMx minor changes (#5111) * fix markdown syntax * Update atragmx.md * AB: Lythium latitude (#5109) * Update fnc_getMapData.sqf * bump1 * bump2 * AB: update compat R3F v3.5 (#5097) * Update CfgWeapons.hpp * Update CfgAmmo.hpp * Update CfgAmmo.hpp * Update CfgWeapons.hpp * Update CfgWeapons.hpp * Update CfgWeapons.hpp * Update CfgWeapons.hpp * Update CfgWeapons.hpp * fix missing `{` * fix `dispersion` * fix space * AtragMx: BC G1 .338LM API526 (#5069) * Update fnc_initGunList.sqf * Update fnc_initGunList.sqf * C1 coefficient 0.58 * Jerry Can - only set global var on server (#5131) * Add Arma 3 Issues breaking ace_rearm (#5150) * MapGesutres - Fix dependency on maptools (#5154) * MapGesutres - Use getVariable to remove dependency * Use isModLoaded * Add missing base class to r3f compat (#5156) * Disable g-forces for UAV AI (#5094) * Increase max weapon index for large modsets (#5054) * Disable rearm,refuel on dead vehicles (#5158) * SQF Lint Cleanup Pass (#5157) * SQF Lint Cleanup Pass * Fix var in TRACE * Add basic python tool * Simplify * Hit space key 6 times * Fix error in dropNozzle * handle error message exceptions * Fix py * 1.70 CMs - Remove countermeasure mode switching (#5163) * 1.70 FCS - Remove ACE_FCS from most vics (#5152) * Handle 1.70 FCS * Cleanup CfgWeapons * Add warning for discreteDistance * 1.70 CMs - Remove countermeasure mode switching (#5163) * 1.70 FCS - Remove ACE_FCS from most vics (#5152) * Handle 1.70 FCS * Cleanup CfgWeapons * Add warning for discreteDistance * Realistic names for 1.70 pylon magazines (#5165) * Realistic names for 1.70 pylon magazines (#5165) * Fix gatling_30mm UBC for 1.70 (#5125) * Fix gatling_30mm UBC for 1.70 * Fix verEsion * Fix gatling_30mm UBC for 1.70 (#5125) * Fix gatling_30mm UBC for 1.70 * Fix verEsion * Prep 3.9.2 (version numbers) * Update required Arma 3 version to 1.70 * Prepare release 3.9.2 * Update helmet hearing protection for RHS-US (#5146) * Update helmet hearing protection for RHS-US * Hearing - Add standardized helmet protection macros * Tweak peltor vol * Disable aircraft flightmodel changes (#5167) * Disable aircraft flightmodel changes * Remove files * Fix merge, cbaEvents, macros, cleanup * Use correct TransportX type for ace items (#5168) * Use correct TransportX type for ace items * Fix messing with flare colors * Just warn for old compat pbos (#5177) * Just warn for old compat pbos * Use CBA_fnc_error big warning box * fix caps * Italian translation (Add & Fix) (#5193) Added Italian translation for: -advanced fatigue -advanced throwing -cook off -dogtags -gunbag -ui-scopes and much more... Fixed a lot of grammatical errors * Zeus updated (#5198) Fixes and adds in the zeus section * Add AtixNeon to AUTHORS.txt * Add realistic names to dynamic loadout classes (#5185) * RHS CH-47 - use animationSourcePhase (#5201) * Fix Zeus teleport players module (#5175) * Add dummy function to zeus UI modules This removes the message about the module having no function when in SP. * Fix zeus teleport module for non-local units BI made a change to the function this module was using. So now it has to be ran local to the player in question. * Adv Throw - Handle getShotParents being [] (#5210) * Correct compat classnames (#5204) * Linking belt refactoring (#5206) * Linking belt refatoring startLinking belt now uses canLinkBelt so if condition needs to be changed then you can do it on one position. * Fixed requested change Fixed requested change * AdvThrow - Handle bugged currentThrowable (#5216) * Fix AB water vapor pressure calc (#4956) * Fix AB water vapor pressure calc * Fix calc in weather * Cleanup usage of constant * Add RVExtensionVersion, Rebuild AB DLLs * CH53 Fastroping and other fixes (#4713) * CH53 Fastroping and Fixes Added fastrope points for CH53. The getOut EH is required to keep the doors open when a unit exits the vehicle and it uses the vehicle animation "doorHandler_R" or "doorHandler_L" as a placeholder to determine if the doors are open(1)/close(0). eg. In UH1Y (Unarmed), when the right door is opened using the useraction, "doorRB" and "doorHandler_R" will be set to 1. * Changed TAB to 4 spaces * Moved bracket to follow guidelines * Refuel for non-AllVehicle objects (#5151) * Enabled refuel for non-AllVehicles objects. Un-magic'd refuel progress timer. * Changed helper attach position to centre of object. Offset applied when rope attached. * Made fully compatible with non-thingX simulation types. Removed destruction effects of helper object. * Using arma model. Removed ACE_Actions from helper object. * Correct use of hideObjectGlobal * Remove actions, cargo, repair on helper * Switched helper to be setVar'd on the nozzle object * Linkingbelt refactoring (#5213) * Linking belt refatoring startLinking belt now uses canLinkBelt so if condition needs to be changed then you can do it on one position. * Fixed requested change Fixed requested change * simplified it even more canLinkBelt now returns a value over 0 if success and -1 if something is not right. * Fixed bug where if error we would not exit Fixed bug where if error we would not exit * changed name on canLinkBelt Changed name to better reflect the function of the function. * Author hype * fixed return value info fixed return value info * fix header * Fix ammo count hidden in UAVs (#5222) * Fix ammo count hidden in UAVs * Switch to ace_reload condition * Add arsenal zeus modules (#4576) * Add zeus arsenal modules * Add french strings to arsenal modules * Fix typo in french string * Make changes to fit review * locality check, use showMessage, set categroy * Cargo load menu overhaul (#4871) * Add submenu with vehicles to cargo load menu * replace private ARRAY with keyword * fix ace function macro using * filter vehicles without cargo * add Load condition, clean params, fix param reusing * replace nearEntities with nearestObjects, add macro * optimize, del magic, replace count with forEach * del unused functions * del useless _this parameter * Cleanup aircraft (#5197) * Refuel - Add setting for hose length (#5224) * Remove unit from laser pointer list if laser removed (#5190) * Handle escape menu with toggle iteractMenu (#5144) * Handle escape menu with toggle iteractMenu * Work on non-cursor menu * Close cursor menu if open when switching * Update fnc_handleEscapeMenu.sqf * French translation missing (#5217) * French translation for the two last entries * French translation for the last entrie * French Translation for the first entrie * correct the spelling error * Lower minimum speed limiter speed to 5 km/h (#5065) * Update fnc_speedLimiter.sqf * No minimum speed needed anymore Minimum speed limit of 10 km/h was needed in the past due to engine limitations. Multiple user tests have shown that the minimum speed is not needed anymore. The new minimum of 0 km/h allows for example setting walking speed for vehicles (<10 km/h). * Change minimum required speed for speed limiter to 3 km/h To avoid problems with negative speeds (driving backwards) and zero speed, the current change switches from 10 km/h minimum speed to 3 km/h minimum speed. This seems to be the optimal solution to allow all relevant speeds including walking speed. * Changed minimum required speed to 5 km/h Officially the minimum required speed is 10 km/h in the master. Lower minimum needed to set car speed to walking speed of accompanying soldiers. Problems have been reported with 3 kmh/ using cars like ATVs. Thus the new commit is set to 5 km/h minimum speed. Not tested with ATVs yet. * Minor fixes, cleanup, add lint ignore directives (#5176) - Fix bug in getNumberMagazinesIn (func not used) - Fix bug in seekerFindLaserSpot (func not used yet) - Everything else is just cleanup * Fix zeus interaction locality (#5214) - The `setUnitPos`, `setFormation`, `setSpeedMode` and `setBehaviour` commands require local arguments - The waypoint equivalents require server execution - Add conditions to only show interactions when the appropriate things are selected * Add cargo eden attributes (#4780) - Add a ace_cargo_space attribute to vehicles to alter how much cargo they can carry. - Add an ace_cargo_size attribute to objects to alter how much cargo space they consume. - Add two public functions `fnc_setSize.sqf` and `fnc_setSpace.sqf` to update the cargo size/space respectively of any given object. - Deprecate cargo makeLoadable module and public function. - Added some macros to get the space/size of a config, making code more readable in places. * Fix IVs not showing in patient display (#5230) Fix #5192 for 3.10 * Remove submuntion ammo changes to A-10 (#5231) * Remove changes to Aircraft cannons * keep ammo changes, i guess * Fix zeus RC units using player damage treshold (#5219) * Fix zeus RC units using player damage treshold Closes #5218 * add pabstmirrors suggestion use gvar * Implement new cook off SFX (#5179) * Implement new cook off SFX with variants * Add hybrid V to authors * Open glass and CUP doors (#5226) * Fixed glassdoor Fixed so glassdoor now works with ace slow open. * Made it more pretty with new file Made it more pretty with new file * Tidy up a bit * Removed white space * Replace tabs with spaces Replace tabs with spaces * Simplified and added comments * Changes + was stupid was commit Changes to go with code guidlines and extra check if door is empty * Tabs to spaces * Small fixes + Fixed so CUP houses now works Fixed so CUP houses now works * Remove todo * Fixed requested changes * Removed whitespaces * Vehicle quick mount (#4931) * Add quickmount files from ACEX * Rename to ACE3, Streamline, Use clientInit * Rename functions to ACE3, Fix crew getting * Fix enabled text * Fix texts * Remove spaces * Rework seat search * NLAW - Predicted Line Of Sight Guidance and Overfly Attack Mode (#4791) * NLAW Prototype * Make AI Compatible * Add Overfly Top Attack Mode * Limit Max Deflection * Base prediction on AI skill * Generic cycle attack profile key for missile guidance * Add hint for weapons without huds * Configure for attack cycle key * Finish OTA ammo effects * Cleanup * Arm at 20m * Disable Debug * No models for short lived sub-ammos * Fix Korean strings * Change AI randomization to use skillFinal * Add wiki doc for nlaw * Cleanup * Cleanup * Cleanup * Hellfire missiles (#4679) * Hellfire * Cleanup dev macros * Cleanup some debug * Add base interaction node for firemode actions * Handle bad data in attack profile variable * Skip ammo checks (returns bad data on added weaps) * Add mags sizes for apache * Add Hellfire Wiki Doc * Cleanup doc * Add pylon support * Add support for pilot controlled weapons * Add label to pylon mags * Cleanup vehicle configs, autoAdd laser des, fix ineractions for driver * [Docs] Update component dependencies Automatically committed through Travis CI. [ci skip] * [Docs] Update component dependencies Automatically committed through Travis CI. [ci skip] * [Docs] Update component dependencies Automatically committed through Travis CI. [ci skip] * Fix spectator icons and camera jitter (#5067) * Use `Visual` commands for icons and external camera position * Fix accidental numerical change (#5235) * Fix being unable to throw last mag (#5242) * Italian Translation Update (#5243) Added Italian translation for: -cargo -hellfire -nlaw -quickmount -refuel -zeus * Cleanup unused hellfire vic stringtable (#5245) * Fix weapon select grenade count wehn using advThrow (#5244) * Raise lower carry object (#5234) * Fix to move items up and down * Fixed private * Fixed public bug * Inserted Pabst solution * Remove extra space * Fixed request + added author * Fixed to correct comment * Tweeked comment again * Added more info about indentations, tabs and EditorConfig (#5249) * Added more info about indentations, tabs and EditorConfig * Fixed original misspelling "Every" * Added Pylon weapon as a valid weapon (#5250) * Disable dragging on big AA Turrets (#5251) * note required PboProject version (#5256) * note required PboProject version * Update setting-up-the-development-environment.md * Conform function headers to coding guidelines (#5255) * Fixed headers to work with silentspike python script * Fixed rest of the files * Fixed ace-team * Rearm - Pylon Support and Dynamically Add Supply Actions (#5183) * Dynamic Add * Support 1.70 Pylon Loadouts * Properly handle old compat pbos - Update RHS Compat * Re-add documentation * cleanup headers (note from other pr) * Cleanup * Fix var spelling * Fix minor debug that got left in (#5260) * Repair specialist rename, fixes #3186 (#5248) * Changed name * Fixed Enginner only german and removed big letters * Added docs + PR fixes #3186 * Removed other languages * Fixed request and added comment * Replace all usage of term "Specialist" * Add Ability to Change Repair Times of Vehicles (#5205) * Add ability to change repair time based on vehicle * Much better * Unary command not function * Allow changing of track or wheel object per vehicle * Lot more complicated than I thought * Fix some event names on wiki (#5254) * Fix some event names on wiki * Switch callable events to functions * Remove maximum distance of attach to vehicle action (#5262) * Remove maximum distance of attachi to vehicle action * Readd max distance, 10 meters to allow usage with big vehicles but also end placement system if too far * Update kestrel4500.md (#5228) * Add repair feature to wiki (#5247) * Add repair feature to wiki * Add blank lines, use adv engineer * Add repair framework page * Fix Large IED defuse distance (#5261) * Fix for large-ied bug because underwater thing have changed * Added size of IED in config and determine defuse range * Added typo * Added help text to wiki about defusing * Better English * Increased the defusal range on large bombs make it similar to small ieds * Add wiki doc * Use getUnitTrait for medics, engineers and EOD (#5246) * Increase required CBA version to 3.3.1 * Prepare version 3.10.0 * Update cargo docs with new public functions (#5266) * Update cargo docs with new public functions * Add myself to squad.xml * Italian translation updated and fixed (#5268) Added newest lines for: -Rearm -Repair * Update homepage version numbers #4692 [ci skip] * Fix isFeatureCameraActive for Spectator enhacements (#5269) * fix isFeatureCameraActive for spec ace_spectator_camera was removed in 77c2b99ee542e3825c4f25e7b5a399597fd436e2 . spectator module initializes three separate cameras instead, of which for example ace_spectator_freeCamera can be used to check if spec mode is active * use ace_spectator_isSet to check for spec mode * Prepare release 3.10.0 (build 2) * fix video link (#5276) * Jpn translate 73bd37 (#5277) * Update the Jpn translation for cargo Update the Japanese translation for cargo * Add the Jpn translation for hellfire Add the Japanese translation for hellfire * Add the Jpn translation for nlaw Add the Japanese translation for nlaw * Add the Jpn translation for rearm Add the Japanese translation for rearm * Update the Jpn translation for refuel Update the Japanese translation for refuel * Update the Jpn translation for repair Update the Japanese translation for repair * Update the Jpn translation for zeus Update the Japanese translation for zeus * gos ndjenahoud latitude (#5275) * Count untraced errors in make.py (#5265) * Count untraced errors (any errors besides failed PBO builds and missinf files) in make.py * Fix error count and prettify printing * Cleanup heli pod actions (#5271) Close #4783 - Make taru pods non loadable - Make taru pods non draggable - Increase interaction range for huron pods * Make array of cargo holders dynamic (#5274) * Jpn translate feee7f5 (#5280) * Add the Jpn translation for quickmount Add the Japanese translation for quickmount * Update the Jpn translation for repair Update the Japanese translation for repair * Fix isFeatureCameraActive (#5291) * Fix isFeatureCameraActive (#5291) * Prepare release 3.10.1 * Add malden to getMapData (#5297) * Add malden to getMapData * Merge with CWR2 malden * Add malden to getMapData (#5297) * Add malden to getMapData * Merge with CWR2 malden * Add Chinese Traditional & Simplified Localization (#5295) Add Chinese Traditional & Simplified Localization * compats - Fix config name for resupply vics (#5300) * Modify JoinGroup action to show group name (#5287) * Modify JoinGroup action to show group name * header * Header * Repair - Handle depends = "0" (#5283) * Repair - Handle depends = "0" * quote * Refuel - change nozzle position calc (#5279) * Handle ace_cargo_canLoad set to scalar (#5306) * Add XEH to ace_module (#5304) * Changed hellfire interaction check & added N variant (#5294) * Changed weapon check for interaction to generic ace_hellfire_enabled value * Added November hellfire variant * Cleanup * +1 * Japanese translation d02dacf (#5309) * add the Jpn translation for repair add the Japanese translation for repair * minor fix to Jpn translation for medical minor fix to Jpn translation for medical * Correct new Chinese stringtable identifiers (#5334) * Fix the issue that SFX variants are not global (#5335) * Fix the issue that SFX variants are not global what means that different players can get different pressure Cookoff sounds to prevent that i split up the sounds in 3 types and used a Weighted select to have the befor used values back * add todo for 1.74 * inherit in CfgSFX from 1 class * fix #5324 (#5325) * Minor update Wiki AtragMx (#5322) * update wiki atragmx * Add files via upload * Fix broken fonts for map gps display (#5337) EtelkaNarrowMediumPro broke with 1.72 hotfix * Handle locked doors (#5345) * Allow repairing from slingload pods (#5316) * Add cargo space to huron containers (#5315) * Rallypoints- Don't modify setVar if already set (#5347)
2017-07-10 08:27:29 +00:00
------------------------------------------- */
#define ERROR(MESSAGE) \
[THIS_FILE_, __LINE__, "ERROR", MESSAGE] call CBA_fnc_error;
2015-04-04 14:33:53 +00:00
/* -------------------------------------------
Macro: ERROR_WITH_TITLE()
Record a timestamped, critical error in the RPT log.
2015-04-04 14:33:53 +00:00
2015-08-26 04:11:52 +00:00
The title can be specified (in <ERROR()> the heading is always just "ERROR")
Newlines (\n) in the MESSAGE will be put on separate lines.
2015-04-04 14:33:53 +00:00
TODO: Popup an error dialog & throw an exception.
2015-04-04 14:33:53 +00:00
Parameters:
TITLE - Title of error message [String]
MESSAGE - Body of error message [String]
2015-04-04 14:33:53 +00:00
Example:
2015-08-26 04:11:52 +00:00
(begin example)
ERROR_WITH_TITLE("Value not found","Value of frog not found in config ...yada...yada...");
(end)
2015-04-04 14:33:53 +00:00
Author:
2015-08-26 04:11:52 +00:00
Spooner
2015-04-04 14:33:53 +00:00
------------------------------------------- */
#define ERROR_WITH_TITLE(TITLE,MESSAGE) \
[THIS_FILE_, __LINE__, TITLE, MESSAGE] call CBA_fnc_error;
2015-08-26 04:11:52 +00:00
/* -------------------------------------------
Macro: MESSAGE_WITH_TITLE()
Record a single line, timestamped log entry in the RPT log.
2015-08-26 04:11:52 +00:00
Parameters:
TITLE - Title of log message [String]
MESSAGE - Body of message [String]
2015-08-26 04:11:52 +00:00
Example:
(begin example)
MESSAGE_WITH_TITLE("Value found","Value of frog found in config <someconfig>");
(end)
Author:
Killswitch
------------------------------------------- */
#define MESSAGE_WITH_TITLE(TITLE,MESSAGE) \
[THIS_FILE_, __LINE__, TITLE + ': ' + (MESSAGE)] call CBA_fnc_log;
2015-04-04 14:33:53 +00:00
/* -------------------------------------------
Macro: RETNIL()
2015-08-26 04:11:52 +00:00
If a variable is undefined, return the value nil. Otherwise, return the
variable itself.
2015-04-04 14:33:53 +00:00
Parameters:
2015-08-26 04:11:52 +00:00
VARIABLE - the variable to check
2015-04-04 14:33:53 +00:00
Example:
2015-08-26 04:11:52 +00:00
(begin example)
// _var is undefined
hintSilent format ["_var=%1", RETNIL(_var) ]; // "_var=any"
(end example)
2015-04-04 14:33:53 +00:00
Author:
2015-08-26 04:11:52 +00:00
Alef (see CBA issue #8514)
2015-04-04 14:33:53 +00:00
------------------------------------------- */
#define RETNIL(VARIABLE) if (isNil{VARIABLE}) then {nil} else {VARIABLE}
/* -------------------------------------------
Macros: TRACE_n()
2015-08-26 04:11:52 +00:00
Log a message and 1-8 variables to the RPT log.
2015-04-04 14:33:53 +00:00
2015-08-26 04:11:52 +00:00
Only run if <DEBUG_MODE_FULL> is defined.
2015-04-04 14:33:53 +00:00
2015-08-26 04:11:52 +00:00
TRACE_1(MESSAGE,A) - Log 1 variable.
TRACE_2(MESSAGE,A,B) - Log 2 variables.
TRACE_3(MESSAGE,A,B,C) - Log 3 variables.
TRACE_4(MESSAGE,A,B,C,D) - Log 4 variables.
TRACE_5(MESSAGE,A,B,C,D,E) - Log 5 variables.
TRACE_6(MESSAGE,A,B,C,D,E,F) - Log 6 variables.
TRACE_7(MESSAGE,A,B,C,D,E,F,G) - Log 7 variables.
TRACE_8(MESSAGE,A,B,C,D,E,F,G,H) - Log 8 variables.
TRACE_9(MESSAGE,A,B,C,D,E,F,G,H,I) - Log 9 variables.
2015-04-04 14:33:53 +00:00
Parameters:
2015-08-26 04:11:52 +00:00
MESSAGE - Message to add to the trace [String]
A..H - Variable names to log values of [Any]
2015-04-04 14:33:53 +00:00
Example:
2015-08-26 04:11:52 +00:00
(begin example)
TRACE_3("After takeoff",_vehicle player,getPos (_vehicle player), getPosASL (_vehicle player));
(end)
2015-04-04 14:33:53 +00:00
Author:
2015-08-26 04:11:52 +00:00
Spooner
2015-04-04 14:33:53 +00:00
------------------------------------------- */
#define PFORMAT_1(MESSAGE,A) \
2015-08-26 04:11:52 +00:00
format ['%1: A=%2', MESSAGE, RETNIL(A)]
2015-04-04 14:33:53 +00:00
#define PFORMAT_2(MESSAGE,A,B) \
2015-08-26 04:11:52 +00:00
format ['%1: A=%2, B=%3', MESSAGE, RETNIL(A), RETNIL(B)]
2015-04-04 14:33:53 +00:00
#define PFORMAT_3(MESSAGE,A,B,C) \
2015-08-26 04:11:52 +00:00
format ['%1: A=%2, B=%3, C=%4', MESSAGE, RETNIL(A), RETNIL(B), RETNIL(C)]
2015-04-04 14:33:53 +00:00
#define PFORMAT_4(MESSAGE,A,B,C,D) \
2015-08-26 04:11:52 +00:00
format ['%1: A=%2, B=%3, C=%4, D=%5', MESSAGE, RETNIL(A), RETNIL(B), RETNIL(C), RETNIL(D)]
2015-04-04 14:33:53 +00:00
#define PFORMAT_5(MESSAGE,A,B,C,D,E) \
2015-08-26 04:11:52 +00:00
format ['%1: A=%2, B=%3, C=%4, D=%5, E=%6', MESSAGE, RETNIL(A), RETNIL(B), RETNIL(C), RETNIL(D), RETNIL(E)]
2015-04-04 14:33:53 +00:00
#define PFORMAT_6(MESSAGE,A,B,C,D,E,F) \
2015-08-26 04:11:52 +00:00
format ['%1: A=%2, B=%3, C=%4, D=%5, E=%6, F=%7', MESSAGE, RETNIL(A), RETNIL(B), RETNIL(C), RETNIL(D), RETNIL(E), RETNIL(F)]
2015-04-04 14:33:53 +00:00
#define PFORMAT_7(MESSAGE,A,B,C,D,E,F,G) \
2015-08-26 04:11:52 +00:00
format ['%1: A=%2, B=%3, C=%4, D=%5, E=%6, F=%7, G=%8', MESSAGE, RETNIL(A), RETNIL(B), RETNIL(C), RETNIL(D), RETNIL(E), RETNIL(F), RETNIL(G)]
2015-04-04 14:33:53 +00:00
#define PFORMAT_8(MESSAGE,A,B,C,D,E,F,G,H) \
2015-08-26 04:11:52 +00:00
format ['%1: A=%2, B=%3, C=%4, D=%5, E=%6, F=%7, G=%8, H=%9', MESSAGE, RETNIL(A), RETNIL(B), RETNIL(C), RETNIL(D), RETNIL(E), RETNIL(F), RETNIL(G), RETNIL(H)]
2015-04-04 14:33:53 +00:00
#define PFORMAT_9(MESSAGE,A,B,C,D,E,F,G,H,I) \
2015-08-26 04:11:52 +00:00
format ['%1: A=%2, B=%3, C=%4, D=%5, E=%6, F=%7, G=%8, H=%9, I=%10', MESSAGE, RETNIL(A), RETNIL(B), RETNIL(C), RETNIL(D), RETNIL(E), RETNIL(F), RETNIL(G), RETNIL(H), RETNIL(I)]
2015-04-04 14:33:53 +00:00
#ifdef DEBUG_MODE_FULL
#define TRACE_1(MESSAGE,A) \
[THIS_FILE_, __LINE__, PFORMAT_1(MESSAGE,A)] call CBA_fnc_log
#define TRACE_2(MESSAGE,A,B) \
[THIS_FILE_, __LINE__, PFORMAT_2(MESSAGE,A,B)] call CBA_fnc_log
#define TRACE_3(MESSAGE,A,B,C) \
[THIS_FILE_, __LINE__, PFORMAT_3(MESSAGE,A,B,C)] call CBA_fnc_log
#define TRACE_4(MESSAGE,A,B,C,D) \
[THIS_FILE_, __LINE__, PFORMAT_4(MESSAGE,A,B,C,D)] call CBA_fnc_log
#define TRACE_5(MESSAGE,A,B,C,D,E) \
[THIS_FILE_, __LINE__, PFORMAT_5(MESSAGE,A,B,C,D,E)] call CBA_fnc_log
#define TRACE_6(MESSAGE,A,B,C,D,E,F) \
[THIS_FILE_, __LINE__, PFORMAT_6(MESSAGE,A,B,C,D,E,F)] call CBA_fnc_log
#define TRACE_7(MESSAGE,A,B,C,D,E,F,G) \
[THIS_FILE_, __LINE__, PFORMAT_7(MESSAGE,A,B,C,D,E,F,G)] call CBA_fnc_log
#define TRACE_8(MESSAGE,A,B,C,D,E,F,G,H) \
[THIS_FILE_, __LINE__, PFORMAT_8(MESSAGE,A,B,C,D,E,F,G,H)] call CBA_fnc_log
#define TRACE_9(MESSAGE,A,B,C,D,E,F,G,H,I) \
[THIS_FILE_, __LINE__, PFORMAT_9(MESSAGE,A,B,C,D,E,F,G,H,I)] call CBA_fnc_log
2015-04-04 14:33:53 +00:00
#else
2015-04-04 14:33:53 +00:00
#define TRACE_1(MESSAGE,A) /* disabled */
#define TRACE_2(MESSAGE,A,B) /* disabled */
#define TRACE_3(MESSAGE,A,B,C) /* disabled */
#define TRACE_4(MESSAGE,A,B,C,D) /* disabled */
#define TRACE_5(MESSAGE,A,B,C,D,E) /* disabled */
#define TRACE_6(MESSAGE,A,B,C,D,E,F) /* disabled */
#define TRACE_7(MESSAGE,A,B,C,D,E,F,G) /* disabled */
#define TRACE_8(MESSAGE,A,B,C,D,E,F,G,H) /* disabled */
#define TRACE_9(MESSAGE,A,B,C,D,E,F,G,H,I) /* disabled */
2015-04-04 14:33:53 +00:00
#endif
/* -------------------------------------------
Group: General
------------------------------------------- */
// *************************************
// Internal Functions
#define DOUBLES(var1,var2) ##var1##_##var2
#define TRIPLES(var1,var2,var3) ##var1##_##var2##_##var3
#define QUOTE(var1) #var1
#ifdef MODULAR
2015-08-26 04:11:52 +00:00
#define COMPONENT_T DOUBLES(t,COMPONENT)
#define COMPONENT_M DOUBLES(m,COMPONENT)
#define COMPONENT_S DOUBLES(s,COMPONENT)
#define COMPONENT_C DOUBLES(c,COMPONENT)
#define COMPONENT_F COMPONENT_C
2015-04-04 14:33:53 +00:00
#else
2015-08-26 04:11:52 +00:00
#define COMPONENT_T COMPONENT
#define COMPONENT_M COMPONENT
#define COMPONENT_S COMPONENT
#define COMPONENT_F COMPONENT
#define COMPONENT_C COMPONENT
2015-04-04 14:33:53 +00:00
#endif
/* -------------------------------------------
Macro: INC()
Description:
2015-08-26 04:11:52 +00:00
Increase a number by one.
2015-04-04 14:33:53 +00:00
Parameters:
2015-08-26 04:11:52 +00:00
VAR - Variable to increment [Number]
2015-04-04 14:33:53 +00:00
Example:
2015-08-26 04:11:52 +00:00
(begin example)
_counter = 0;
INC(_counter);
// _counter => 1
(end)
2015-04-04 14:33:53 +00:00
Author:
2015-08-26 04:11:52 +00:00
Spooner
2015-04-04 14:33:53 +00:00
------------------------------------------- */
#define INC(var) var = (var) + 1
/* -------------------------------------------
Macro: DEC()
Description:
2015-08-26 04:11:52 +00:00
Decrease a number by one.
2015-04-04 14:33:53 +00:00
Parameters:
2015-08-26 04:11:52 +00:00
VAR - Variable to decrement [Number]
2015-04-04 14:33:53 +00:00
Example:
2015-08-26 04:11:52 +00:00
(begin example)
_counter = 99;
DEC(_counter);
// _counter => 98
(end)
2015-04-04 14:33:53 +00:00
Author:
2015-08-26 04:11:52 +00:00
Spooner
2015-04-04 14:33:53 +00:00
------------------------------------------- */
#define DEC(var) var = (var) - 1
/* -------------------------------------------
Macro: ADD()
Description:
2015-08-26 04:11:52 +00:00
Add a value to a variable. Variable and value should be both Numbers or both Strings.
2015-04-04 14:33:53 +00:00
Parameters:
2015-08-26 04:11:52 +00:00
VAR - Variable to add to [Number or String]
VALUE - Value to add [Number or String]
2015-04-04 14:33:53 +00:00
Examples:
2015-08-26 04:11:52 +00:00
(begin example)
_counter = 2;
ADD(_counter,3);
// _counter => 5
(end)
(begin example)
_str = "hello";
ADD(_str," ");
ADD(_str,"Fred");
// _str => "hello Fred"
(end)
2015-04-04 14:33:53 +00:00
Author:
2015-08-26 04:11:52 +00:00
Sickboy
2015-04-04 14:33:53 +00:00
------------------------------------------- */
#define ADD(var1,var2) var1 = (var1) + (var2)
/* -------------------------------------------
Macro: SUB()
Description:
2015-08-26 04:11:52 +00:00
Subtract a value from a number variable. VAR and VALUE should both be Numbers.
2015-04-04 14:33:53 +00:00
Parameters:
2015-08-26 04:11:52 +00:00
VAR - Variable to subtract from [Number]
VALUE - Value to subtract [Number]
2015-04-04 14:33:53 +00:00
Examples:
2015-08-26 04:11:52 +00:00
(begin example)
_numChickens = 2;
SUB(_numChickens,3);
// _numChickens => -1
(end)
2015-04-04 14:33:53 +00:00
------------------------------------------- */
#define SUB(var1,var2) var1 = (var1) - (var2)
/* -------------------------------------------
Macro: REM()
Description:
2015-08-26 04:11:52 +00:00
Remove an element from an array each time it occurs.
2015-04-04 14:33:53 +00:00
2015-08-26 04:11:52 +00:00
This recreates the entire array, so use BIS_fnc_removeIndex if modification of the original array is required
or if only one of the elements that matches ELEMENT needs to be removed.
2015-04-04 14:33:53 +00:00
Parameters:
2015-08-26 04:11:52 +00:00
ARRAY - Array to modify [Array]
ELEMENT - Element to remove [Any]
2015-04-04 14:33:53 +00:00
Examples:
2015-08-26 04:11:52 +00:00
(begin example)
_array = [1, 2, 3, 4, 3, 8];
REM(_array,3);
// _array = [1, 2, 4, 8];
(end)
2015-04-04 14:33:53 +00:00
Author:
2015-08-26 04:11:52 +00:00
Spooner
2015-04-04 14:33:53 +00:00
------------------------------------------- */
#define REM(var1,var2) SUB(var1,[var2])
/* -------------------------------------------
Macro: PUSH()
Description:
2015-08-26 04:11:52 +00:00
Appends a single value onto the end of an ARRAY. Change is made to the ARRAY itself, not creating a new array.
2015-04-04 14:33:53 +00:00
Parameters:
2015-08-26 04:11:52 +00:00
ARRAY - Array to push element onto [Array]
ELEMENT - Element to push [Any]
2015-04-04 14:33:53 +00:00
Examples:
2015-08-26 04:11:52 +00:00
(begin example)
_fish = ["blue", "green", "smelly"];
PUSH(_fish,"monkey-flavoured");
// _fish => ["blue", "green", "smelly", "monkey-flavoured"]
(end)
2015-04-04 14:33:53 +00:00
Author:
2015-08-26 04:11:52 +00:00
Spooner
2015-04-04 14:33:53 +00:00
------------------------------------------- */
#define PUSH(var1,var2) (var1) pushBack (var2)
/* -------------------------------------------
Macro: ISNILS()
Description:
2015-08-26 04:11:52 +00:00
Sets a variable with a value, but only if it is undefined.
2015-04-04 14:33:53 +00:00
Parameters:
2015-08-26 04:11:52 +00:00
VARIABLE - Variable to set [Any, not nil]
DEFAULT_VALUE - Value to set VARIABLE to if it is undefined [Any, not nil]
2015-04-04 14:33:53 +00:00
Examples:
2015-08-26 04:11:52 +00:00
(begin example)
// _fish is undefined
ISNILS(_fish,0);
// _fish => 0
(end)
(begin example)
_fish = 12;
// ...later...
ISNILS(_fish,0);
// _fish => 12
(end)
2015-04-04 14:33:53 +00:00
Author:
2015-08-26 04:11:52 +00:00
Sickboy
2015-04-04 14:33:53 +00:00
------------------------------------------- */
#define ISNILS(VARIABLE,DEFAULT_VALUE) if (isNil #VARIABLE) then { ##VARIABLE = ##DEFAULT_VALUE }
#define ISNILS2(var1,var2,var3,var4) ISNILS(TRIPLES(var1,var2,var3),var4)
#define ISNILS3(var1,var2,var3) ISNILS(DOUBLES(var1,var2),var3)
#define ISNIL(var1,var2) ISNILS2(PREFIX,COMPONENT,var1,var2)
#define ISNILMAIN(var1,var2) ISNILS3(PREFIX,var1,var2)
#define CREATELOGICS(var1,var2) ##var1##_##var2## = ([sideLogic] call CBA_fnc_getSharedGroup) createUnit ["LOGIC", [0, 0, 0], [], 0, "NONE"]
#define CREATELOGICLOCALS(var1,var2) ##var1##_##var2## = "LOGIC" createVehicleLocal [0, 0, 0]
#define CREATELOGICGLOBALS(var1,var2) ##var1##_##var2## = ([sideLogic] call CBA_fnc_getSharedGroup) createUnit ["LOGIC", [0, 0, 0], [], 0, "NONE"]; publicVariable QUOTE(DOUBLES(var1,var2))
#define CREATELOGICGLOBALTESTS(var1,var2) ##var1##_##var2## = ([sideLogic] call CBA_fnc_getSharedGroup) createUnit [QUOTE(DOUBLES(ADDON,logic)), [0, 0, 0], [], 0, "NONE"]
#define GETVARS(var1,var2,var3) (##var1##_##var2 getVariable #var3)
#define GETVARMAINS(var1,var2) GETVARS(var1,MAINLOGIC,var2)
#ifndef PATHTO_SYS
2015-08-26 04:11:52 +00:00
#define PATHTO_SYS(var1,var2,var3) \MAINPREFIX\##var1\SUBPREFIX\##var2\##var3.sqf
2015-04-04 14:33:53 +00:00
#endif
#ifndef PATHTOF_SYS
2015-08-26 04:11:52 +00:00
#define PATHTOF_SYS(var1,var2,var3) \MAINPREFIX\##var1\SUBPREFIX\##var2\##var3
2015-04-04 14:33:53 +00:00
#endif
#ifndef PATHTOF2_SYS
2015-08-26 04:11:52 +00:00
#define PATHTOF2_SYS(var1,var2,var3) MAINPREFIX\##var1\SUBPREFIX\##var2\##var3
2015-04-04 14:33:53 +00:00
#endif
#define PATHTO_R(var1) PATHTOF2_SYS(PREFIX,COMPONENT_C,var1)
#define PATHTO_T(var1) PATHTOF_SYS(PREFIX,COMPONENT_T,var1)
#define PATHTO_M(var1) PATHTOF_SYS(PREFIX,COMPONENT_M,var1)
#define PATHTO_S(var1) PATHTOF_SYS(PREFIX,COMPONENT_S,var1)
#define PATHTO_C(var1) PATHTOF_SYS(PREFIX,COMPONENT_C,var1)
#define PATHTO_F(var1) PATHTO_SYS(PREFIX,COMPONENT_F,var1)
// Already quoted ""
#define QPATHTO_R(var1) QUOTE(PATHTO_R(var1))
#define QPATHTO_T(var1) QUOTE(PATHTO_T(var1))
#define QPATHTO_M(var1) QUOTE(PATHTO_M(var1))
#define QPATHTO_S(var1) QUOTE(PATHTO_S(var1))
#define QPATHTO_C(var1) QUOTE(PATHTO_C(var1))
#define QPATHTO_F(var1) QUOTE(PATHTO_F(var1))
// This only works for binarized configs after recompiling the pbos
// TODO: Reduce amount of calls / code..
#define COMPILE_FILE2_CFG_SYS(var1) compile preProcessFileLineNumbers var1
#define COMPILE_FILE2_SYS(var1) COMPILE_FILE2_CFG_SYS(var1)
#define COMPILE_FILE_SYS(var1,var2,var3) COMPILE_FILE2_SYS('PATHTO_SYS(var1,var2,var3)')
#define COMPILE_FILE_CFG_SYS(var1,var2,var3) COMPILE_FILE2_CFG_SYS('PATHTO_SYS(var1,var2,var3)')
#define SETVARS(var1,var2) ##var1##_##var2 setVariable
#define SETVARMAINS(var1) SETVARS(var1,MAINLOGIC)
#define GVARMAINS(var1,var2) ##var1##_##var2##
#define CFGSETTINGSS(var1,var2) configFile >> "CfgSettings" >> #var1 >> #var2
//#define SETGVARS(var1,var2,var3) ##var1##_##var2##_##var3 =
//#define SETGVARMAINS(var1,var2) ##var1##_##var2 =
// Compile-Once, JIT: On first use.
// #define PREPMAIN_SYS(var1,var2,var3) ##var1##_fnc_##var3 = { ##var1##_fnc_##var3 = COMPILE_FILE_SYS(var1,var2,DOUBLES(fnc,var3)); if (isNil "_this") then { call ##var1##_fnc_##var3 } else { _this call ##var1##_fnc_##var3 } }
// #define PREP_SYS(var1,var2,var3) ##var1##_##var2##_fnc_##var3 = { ##var1##_##var2##_fnc_##var3 = COMPILE_FILE_SYS(var1,var2,DOUBLES(fnc,var3)); if (isNil "_this") then { call ##var1##_##var2##_fnc_##var3 } else { _this call ##var1##_##var2##_fnc_##var3 } }
// #define PREP_SYS2(var1,var2,var3,var4) ##var1##_##var2##_fnc_##var4 = { ##var1##_##var2##_fnc_##var4 = COMPILE_FILE_SYS(var1,var3,DOUBLES(fnc,var4)); if (isNil "_this") then { call ##var1##_##var2##_fnc_##var4 } else { _this call ##var1##_##var2##_fnc_##var4 } }
// Compile-Once, at Macro. As opposed to Compile-Once, on first use.
#define PREPMAIN_SYS(var1,var2,var3) ##var1##_fnc_##var3 = COMPILE_FILE_SYS(var1,var2,DOUBLES(fnc,var3))
#define PREP_SYS(var1,var2,var3) ##var1##_##var2##_fnc_##var3 = COMPILE_FILE_SYS(var1,var2,DOUBLES(fnc,var3))
#define PREP_SYS2(var1,var2,var3,var4) ##var1##_##var2##_fnc_##var4 = COMPILE_FILE_SYS(var1,var3,DOUBLES(fnc,var4))
#define LSTR(var1) TRIPLES(ADDON,STR,var1)
#ifndef DEBUG_SETTINGS
2015-08-26 04:11:52 +00:00
#define DEBUG_SETTINGS [false, true, false]
2015-04-04 14:33:53 +00:00
#endif
#define MSG_INIT QUOTE(Initializing: ADDON version: VERSION)
// *************************************
// User Functions
#define CFGSETTINGS CFGSETTINGSS(PREFIX,COMPONENT)
#define PATHTO(var1) PATHTO_SYS(PREFIX,COMPONENT_F,var1)
#define PATHTOF(var1) PATHTOF_SYS(PREFIX,COMPONENT,var1)
2016-06-24 17:16:12 +00:00
#define PATHTOEF(var1,var2) PATHTOF_SYS(PREFIX,var1,var2)
#define QPATHTOF(var1) QUOTE(PATHTOF(var1))
#define QPATHTOEF(var1,var2) QUOTE(PATHTOEF(var1,var2))
2015-04-04 14:33:53 +00:00
#define COMPILE_FILE(var1) COMPILE_FILE_SYS(PREFIX,COMPONENT_F,var1)
#define COMPILE_FILE_CFG(var1) COMPILE_FILE_CFG_SYS(PREFIX,COMPONENT_F,var1)
#define COMPILE_FILE2(var1) COMPILE_FILE2_SYS('var1')
#define COMPILE_FILE2_CFG(var1) COMPILE_FILE2_CFG_SYS('var1')
#define VERSIONING_SYS(var1) class CfgSettings \
{ \
2015-08-26 04:11:52 +00:00
class CBA \
{ \
class Versioning \
{ \
class var1 \
{ \
}; \
}; \
}; \
2015-04-04 14:33:53 +00:00
};
#define VERSIONING VERSIONING_SYS(PREFIX)
/* -------------------------------------------
Macro: GVAR()
2015-08-26 04:11:52 +00:00
Get full variable identifier for a global variable owned by this component.
2015-04-04 14:33:53 +00:00
Parameters:
2015-08-26 04:11:52 +00:00
VARIABLE - Partial name of global variable owned by this component [Any].
2015-04-04 14:33:53 +00:00
Example:
2015-08-26 04:11:52 +00:00
(begin example)
GVAR(frog) = 12;
// In SPON_FrogDancing component, equivalent to SPON_FrogDancing_frog = 12
(end)
2015-04-04 14:33:53 +00:00
Author:
2015-08-26 04:11:52 +00:00
Sickboy
2015-04-04 14:33:53 +00:00
------------------------------------------- */
#define GVAR(var1) DOUBLES(ADDON,var1)
#define EGVAR(var1,var2) TRIPLES(PREFIX,var1,var2)
2015-04-04 14:33:53 +00:00
#define QGVAR(var1) QUOTE(GVAR(var1))
#define QEGVAR(var1,var2) QUOTE(EGVAR(var1,var2))
2016-06-24 17:16:12 +00:00
#define QQGVAR(var1) QUOTE(QGVAR(var1))
#define QQEGVAR(var1,var2) QUOTE(QEGVAR(var1,var2))
2015-04-04 14:33:53 +00:00
/* -------------------------------------------
Macro: GVARMAIN()
2015-08-26 04:11:52 +00:00
Get full variable identifier for a global variable owned by this addon.
2015-04-04 14:33:53 +00:00
Parameters:
2015-08-26 04:11:52 +00:00
VARIABLE - Partial name of global variable owned by this addon [Any].
2015-04-04 14:33:53 +00:00
Example:
2015-08-26 04:11:52 +00:00
(begin example)
GVARMAIN(frog) = 12;
// In SPON_FrogDancing component, equivalent to SPON_frog = 12
(end)
2015-04-04 14:33:53 +00:00
Author:
2015-08-26 04:11:52 +00:00
Sickboy
2015-04-04 14:33:53 +00:00
------------------------------------------- */
#define GVARMAIN(var1) GVARMAINS(PREFIX,var1)
#define QGVARMAIN(var1) QUOTE(GVARMAIN(var1))
2016-06-24 17:16:12 +00:00
#define QQGVARMAIN(var1) QUOTE(QGVARMAIN(var1))
2015-04-04 14:33:53 +00:00
// TODO: What's this?
#define SETTINGS DOUBLES(PREFIX,settings)
#define CREATELOGIC CREATELOGICS(PREFIX,COMPONENT)
#define CREATELOGICGLOBAL CREATELOGICGLOBALS(PREFIX,COMPONENT)
#define CREATELOGICGLOBALTEST CREATELOGICGLOBALTESTS(PREFIX,COMPONENT)
#define CREATELOGICLOCAL CREATELOGICLOCALS(PREFIX,COMPONENT)
#define CREATELOGICMAIN CREATELOGICS(PREFIX,MAINLOGIC)
#define GETVAR(var1) GETVARS(PREFIX,COMPONENT,var1)
#define SETVAR SETVARS(PREFIX,COMPONENT)
#define SETVARMAIN SETVARMAINS(PREFIX)
#define IFCOUNT(var1,var2,var3) if (count ##var1 > ##var2) then { ##var3 = ##var1 select ##var2 };
//#define PREP(var1) PREP_SYS(PREFIX,COMPONENT_F,var1)
#ifdef DISABLE_COMPILE_CACHE
#define PREP(var1) TRIPLES(ADDON,fnc,var1) = compile preProcessFileLineNumbers 'PATHTO_SYS(PREFIX,COMPONENT_F,DOUBLES(fnc,var1))'
#define PREPMAIN(var1) TRIPLES(PREFIX,fnc,var1) = compile preProcessFileLineNumbers 'PATHTO_SYS(PREFIX,COMPONENT_F,DOUBLES(fnc,var1))'
#else
2015-08-26 04:11:52 +00:00
#define PREP(var1) ['PATHTO_SYS(PREFIX,COMPONENT_F,DOUBLES(fnc,var1))', 'TRIPLES(ADDON,fnc,var1)'] call SLX_XEH_COMPILE_NEW
2015-04-04 14:33:53 +00:00
#define PREPMAIN(var1) ['PATHTO_SYS(PREFIX,COMPONENT_F,DOUBLES(fnc,var1))', 'TRIPLES(PREFIX,fnc,var1)'] call SLX_XEH_COMPILE_NEW
#endif
#define FUNC(var1) TRIPLES(ADDON,fnc,var1)
#define FUNCMAIN(var1) TRIPLES(PREFIX,fnc,var1)
#define FUNC_INNER(var1,var2) TRIPLES(DOUBLES(PREFIX,var1),fnc,var2)
#define EFUNC(var1,var2) FUNC_INNER(var1,var2)
2016-06-24 17:16:12 +00:00
#define QFUNC(var1) QUOTE(FUNC(var1))
#define QFUNCMAIN(var1) QUOTE(FUNCMAIN(var1))
#define QFUNC_INNER(var1,var2) QUOTE(FUNC_INNER(var1,var2))
#define QEFUNC(var1,var2) QUOTE(EFUNC(var1,var2))
#define QQFUNC(var1) QUOTE(QFUNC(var1))
#define QQFUNCMAIN(var1) QUOTE(QFUNCMAIN(var1))
#define QQFUNC_INNER(var1,var2) QUOTE(QFUNC_INNER(var1,var2))
#define QQEFUNC(var1,var2) QUOTE(QEFUNC(var1,var2))
2015-04-04 14:33:53 +00:00
#ifndef PRELOAD_ADDONS
2015-08-26 04:11:52 +00:00
#define PRELOAD_ADDONS class CfgAddons \
2015-04-04 14:33:53 +00:00
{ \
2015-08-26 04:11:52 +00:00
class PreloadAddons \
{ \
class ADDON \
{ \
list[]={ QUOTE(ADDON) }; \
}; \
}; \
2015-04-04 14:33:53 +00:00
}
#endif
/* -------------------------------------------
Macros: ARG_#()
2015-08-26 04:11:52 +00:00
Select from list of array arguments
2015-04-04 14:33:53 +00:00
Parameters:
2015-08-26 04:11:52 +00:00
VARIABLE(1-8) - elements for the list
2015-04-04 14:33:53 +00:00
Author:
2015-08-26 04:11:52 +00:00
Rommel
2015-04-04 14:33:53 +00:00
------------------------------------------- */
#define ARG_1(A,B) ((A) select (B))
#define ARG_2(A,B,C) (ARG_1(ARG_1(A,B),C))
#define ARG_3(A,B,C,D) (ARG_1(ARG_2(A,B,C),D))
#define ARG_4(A,B,C,D,E) (ARG_1(ARG_3(A,B,C,D),E))
#define ARG_5(A,B,C,D,E,F) (ARG_1(ARG_4(A,B,C,D,E),F))
#define ARG_6(A,B,C,D,E,F,G) (ARG_1(ARG_5(A,B,C,D,E,F),G))
#define ARG_7(A,B,C,D,E,F,G,H) (ARG_1(ARG_6(A,B,C,D,E,E,F,G),H))
#define ARG_8(A,B,C,D,E,F,G,H,I) (ARG_1(ARG_7(A,B,C,D,E,E,F,G,H),I))
/* -------------------------------------------
Macros: ARR_#()
2015-08-26 04:11:52 +00:00
Create list from arguments. Useful for working around , in macro parameters.
1-8 arguments possible.
2015-04-04 14:33:53 +00:00
Parameters:
2015-08-26 04:11:52 +00:00
VARIABLE(1-8) - elements for the list
2015-04-04 14:33:53 +00:00
Author:
2015-08-26 04:11:52 +00:00
Nou
2015-04-04 14:33:53 +00:00
------------------------------------------- */
#define ARR_1(ARG1) ARG1
#define ARR_2(ARG1,ARG2) ARG1, ARG2
#define ARR_3(ARG1,ARG2,ARG3) ARG1, ARG2, ARG3
#define ARR_4(ARG1,ARG2,ARG3,ARG4) ARG1, ARG2, ARG3, ARG4
#define ARR_5(ARG1,ARG2,ARG3,ARG4,ARG5) ARG1, ARG2, ARG3, ARG4, ARG5
#define ARR_6(ARG1,ARG2,ARG3,ARG4,ARG5,ARG6) ARG1, ARG2, ARG3, ARG4, ARG5, ARG6
#define ARR_7(ARG1,ARG2,ARG3,ARG4,ARG5,ARG6,ARG7) ARG1, ARG2, ARG3, ARG4, ARG5, ARG6, ARG7
#define ARR_8(ARG1,ARG2,ARG3,ARG4,ARG5,ARG6,ARG7,ARG8) ARG1, ARG2, ARG3, ARG4, ARG5, ARG6, ARG7, ARG8
/* -------------------------------------------
Macros: FORMAT_#(STR, ARG1)
2015-08-26 04:11:52 +00:00
Format - Useful for working around , in macro parameters.
1-8 arguments possible.
2015-04-04 14:33:53 +00:00
Parameters:
2015-08-26 04:11:52 +00:00
STRING - string used by format
VARIABLE(1-8) - elements for usage in format
2015-04-04 14:33:53 +00:00
Author:
2015-08-26 04:11:52 +00:00
Nou & Sickboy
2015-04-04 14:33:53 +00:00
------------------------------------------- */
#define FORMAT_1(STR,ARG1) format[STR, ARG1]
#define FORMAT_2(STR,ARG1,ARG2) format[STR, ARG1, ARG2]
#define FORMAT_3(STR,ARG1,ARG2,ARG3) format[STR, ARG1, ARG2, ARG3]
#define FORMAT_4(STR,ARG1,ARG2,ARG3,ARG4) format[STR, ARG1, ARG2, ARG3, ARG4]
#define FORMAT_5(STR,ARG1,ARG2,ARG3,ARG4,ARG5) format[STR, ARG1, ARG2, ARG3, ARG4, ARG5]
#define FORMAT_6(STR,ARG1,ARG2,ARG3,ARG4,ARG5,ARG6) format[STR, ARG1, ARG2, ARG3, ARG4, ARG5, ARG6]
#define FORMAT_7(STR,ARG1,ARG2,ARG3,ARG4,ARG5,ARG6,ARG7) format[STR, ARG1, ARG2, ARG3, ARG4, ARG5, ARG6, ARG7]
#define FORMAT_8(STR,ARG1,ARG2,ARG3,ARG4,ARG5,ARG6,ARG7,ARG8) format[STR, ARG1, ARG2, ARG3, ARG4, ARG5, ARG6, ARG7, ARG8]
// CONTROL(46) 12
#define DISPLAY(A) (findDisplay A)
#define CONTROL(A) DISPLAY(A) displayCtrl
/* -------------------------------------------
Macros: IS_x()
2015-08-26 04:11:52 +00:00
Checking the data types of variables.
IS_ARRAY() - Array
IS_BOOL() - Boolean
IS_BOOLEAN() - UI display handle(synonym for <IS_BOOL()>)
IS_CODE() - Code block (i.e a compiled function)
IS_CONFIG() - Configuration
IS_CONTROL() - UI control handle.
IS_DISPLAY() - UI display handle.
IS_FUNCTION() - A compiled function (synonym for <IS_CODE()>)
IS_GROUP() - Group.
IS_INTEGER() - Is a number a whole number?
IS_LOCATION() - World location.
IS_NUMBER() - A floating point number (synonym for <IS_SCALAR()>)
IS_OBJECT() - World object.
IS_SCALAR() - Floating point number.
IS_SCRIPT() - A script handle (as returned by execVM and spawn commands).
IS_SIDE() - Game side.
IS_STRING() - World object.
IS_TEXT() - Structured text.
2015-04-04 14:33:53 +00:00
Parameters:
2015-08-26 04:11:52 +00:00
VARIABLE - Variable to check if it is of a particular type [Any, not nil]
2015-04-04 14:33:53 +00:00
Author:
2015-08-26 04:11:52 +00:00
Spooner
2015-04-04 14:33:53 +00:00
------------------------------------------- */
2016-02-06 16:31:41 +00:00
#define IS_META_SYS(VAR,TYPE) (if (isNil {VAR}) then { false } else { (VAR) isEqualType TYPE })
#define IS_ARRAY(VAR) IS_META_SYS(VAR,[])
#define IS_BOOL(VAR) IS_META_SYS(VAR,false)
#define IS_CODE(VAR) IS_META_SYS(VAR,{})
#define IS_CONFIG(VAR) IS_META_SYS(VAR,configNull)
#define IS_CONTROL(VAR) IS_META_SYS(VAR,controlNull)
#define IS_DISPLAY(VAR) IS_META_SYS(VAR,displayNull)
#define IS_GROUP(VAR) IS_META_SYS(VAR,grpNull)
#define IS_OBJECT(VAR) IS_META_SYS(VAR,objNull)
#define IS_SCALAR(VAR) IS_META_SYS(VAR,0)
#define IS_SCRIPT(VAR) IS_META_SYS(VAR,scriptNull)
#define IS_SIDE(VAR) IS_META_SYS(VAR,west)
2015-04-04 14:33:53 +00:00
#define IS_STRING(VAR) IS_META_SYS(VAR,"STRING")
2016-02-06 16:31:41 +00:00
#define IS_TEXT(VAR) IS_META_SYS(VAR,text "")
#define IS_LOCATION(VAR) IS_META_SYS(VAR,locationNull)
2015-04-04 14:33:53 +00:00
#define IS_BOOLEAN(VAR) IS_BOOL(VAR)
#define IS_FUNCTION(VAR) IS_CODE(VAR)
#define IS_INTEGER(VAR) if ( IS_SCALAR(VAR) ) then { (floor(VAR) == (VAR)) } else { false }
#define IS_NUMBER(VAR) IS_SCALAR(VAR)
2015-08-26 04:11:52 +00:00
#define FLOAT_TO_STRING(num) (str parseNumber (str (_this%_this) + str floor abs _this) + "." + (str (abs _this-floor abs _this) select [2]) + "0")
2015-04-04 14:33:53 +00:00
/* -------------------------------------------
Macro: SCRIPT()
2015-08-26 04:11:52 +00:00
Sets name of script (relies on PREFIX and COMPONENT values being #defined).
2015-04-04 14:33:53 +00:00
Parameters:
2015-08-26 04:11:52 +00:00
NAME - Name of script [Indentifier]
2015-04-04 14:33:53 +00:00
Example:
2015-08-26 04:11:52 +00:00
(begin example)
SCRIPT(eradicateMuppets);
(end)
2015-04-04 14:33:53 +00:00
Author:
2015-08-26 04:11:52 +00:00
Spooner
2015-04-04 14:33:53 +00:00
------------------------------------------- */
#define SCRIPT(NAME) \
2015-08-26 04:11:52 +00:00
scriptName 'PREFIX\COMPONENT\NAME'
2015-04-04 14:33:53 +00:00
/* -------------------------------------------
Macros: EXPLODE_n()
2015-08-26 04:11:52 +00:00
DEPRECATED - Use param/params commands added in Arma 3 1.48
2015-04-04 14:33:53 +00:00
2015-08-26 04:11:52 +00:00
Splitting an ARRAY into a number of variables (A, B, C, etc).
2015-04-04 14:33:53 +00:00
2015-08-26 04:11:52 +00:00
Note that this NOT does make the created variables private.
_PVT variants do.
EXPLODE_1(ARRAY,A,B) - Split a 1-element array into separate variable.
EXPLODE_2(ARRAY,A,B) - Split a 2-element array into separate variables.
EXPLODE_3(ARRAY,A,B,C) - Split a 3-element array into separate variables.
EXPLODE_4(ARRAY,A,B,C,D) - Split a 4-element array into separate variables.
EXPLODE_5(ARRAY,A,B,C,D,E) - Split a 5-element array into separate variables.
EXPLODE_6(ARRAY,A,B,C,D,E,F) - Split a 6-element array into separate variables.
EXPLODE_7(ARRAY,A,B,C,D,E,F,G) - Split a 7-element array into separate variables.
EXPLODE_8(ARRAY,A,B,C,D,E,F,G,H) - Split a 8-element array into separate variables.
EXPLODE_9(ARRAY,A,B,C,D,E,F,G,H,I) - Split a 9-element array into separate variables.
2015-04-04 14:33:53 +00:00
Parameters:
2015-08-26 04:11:52 +00:00
ARRAY - Array to read from [Array]
A..H - Names of variables to set from array [Identifier]
2015-04-04 14:33:53 +00:00
Example:
2015-08-26 04:11:52 +00:00
(begin example)
_array = ["fred", 156.8, 120.9];
EXPLODE_3(_array,_name,_height,_weight);
(end)
2015-04-04 14:33:53 +00:00
Author:
2015-08-26 04:11:52 +00:00
Spooner
2015-04-04 14:33:53 +00:00
------------------------------------------- */
2015-08-26 04:11:52 +00:00
#define EXPLODE_1_SYS(ARRAY,A) A = ARRAY param [0]
2015-04-04 14:33:53 +00:00
#define EXPLODE_1(ARRAY,A) EXPLODE_1_SYS(ARRAY,A); TRACE_1("EXPLODE_1, " + QUOTE(ARRAY),A)
2015-08-26 04:11:52 +00:00
#define EXPLODE_1_PVT(ARRAY,A) ARRAY params [#A]; TRACE_1("EXPLODE_1, " + QUOTE(ARRAY),A)
2015-04-04 14:33:53 +00:00
2015-08-26 04:11:52 +00:00
#define EXPLODE_2_SYS(ARRAY,A,B) EXPLODE_1_SYS(ARRAY,A); B = ARRAY param [1]
2015-04-04 14:33:53 +00:00
#define EXPLODE_2(ARRAY,A,B) EXPLODE_2_SYS(ARRAY,A,B); TRACE_2("EXPLODE_2, " + QUOTE(ARRAY),A,B)
2015-08-26 04:11:52 +00:00
#define EXPLODE_2_PVT(ARRAY,A,B) ARRAY params [#A,#B]; TRACE_2("EXPLODE_2, " + QUOTE(ARRAY),A,B)
2015-04-04 14:33:53 +00:00
2015-08-26 04:11:52 +00:00
#define EXPLODE_3_SYS(ARRAY,A,B,C) EXPLODE_2_SYS(ARRAY,A,B); C = ARRAY param [2]
2015-04-04 14:33:53 +00:00
#define EXPLODE_3(ARRAY,A,B,C) EXPLODE_3_SYS(ARRAY,A,B,C); TRACE_3("EXPLODE_3, " + QUOTE(ARRAY),A,B,C)
2015-08-26 04:11:52 +00:00
#define EXPLODE_3_PVT(ARRAY,A,B,C) ARRAY params [#A,#B,#C]; TRACE_3("EXPLODE_3, " + QUOTE(ARRAY),A,B,C)
#define EXPLODE_4_SYS(ARRAY,A,B,C,D) EXPLODE_3_SYS(ARRAY,A,B,C); D = ARRAY param [3]
2015-04-04 14:33:53 +00:00
#define EXPLODE_4(ARRAY,A,B,C,D) EXPLODE_4_SYS(ARRAY,A,B,C,D); TRACE_4("EXPLODE_4, " + QUOTE(ARRAY),A,B,C,D)
2015-08-26 04:11:52 +00:00
#define EXPLODE_4_PVT(ARRAY,A,B,C,D) ARRAY params [#A,#B,#C,#D]; TRACE_4("EXPLODE_4, " + QUOTE(ARRAY),A,B,C,D)
2015-04-04 14:33:53 +00:00
2015-08-26 04:11:52 +00:00
#define EXPLODE_5_SYS(ARRAY,A,B,C,D,E) EXPLODE_4_SYS(ARRAY,A,B,C,D); E = ARRAY param [4]
2015-04-04 14:33:53 +00:00
#define EXPLODE_5(ARRAY,A,B,C,D,E) EXPLODE_5_SYS(ARRAY,A,B,C,D,E); TRACE_5("EXPLODE_5, " + QUOTE(ARRAY),A,B,C,D,E)
2015-08-26 04:11:52 +00:00
#define EXPLODE_5_PVT(ARRAY,A,B,C,D,E) ARRAY params [#A,#B,#C,#D,#E]; TRACE_5("EXPLODE_5, " + QUOTE(ARRAY),A,B,C,D,E)
2015-04-04 14:33:53 +00:00
2015-08-26 04:11:52 +00:00
#define EXPLODE_6_SYS(ARRAY,A,B,C,D,E,F) EXPLODE_5_SYS(ARRAY,A,B,C,D,E); F = ARRAY param [5]
2015-04-04 14:33:53 +00:00
#define EXPLODE_6(ARRAY,A,B,C,D,E,F) EXPLODE_6_SYS(ARRAY,A,B,C,D,E,F); TRACE_6("EXPLODE_6, " + QUOTE(ARRAY),A,B,C,D,E,F)
2015-08-26 04:11:52 +00:00
#define EXPLODE_6_PVT(ARRAY,A,B,C,D,E,F) ARRAY params [#A,#B,#C,#D,#E,#F]; TRACE_6("EXPLODE_6, " + QUOTE(ARRAY),A,B,C,D,E,F)
2015-04-04 14:33:53 +00:00
2015-08-26 04:11:52 +00:00
#define EXPLODE_7_SYS(ARRAY,A,B,C,D,E,F,G) EXPLODE_6_SYS(ARRAY,A,B,C,D,E,F); G = ARRAY param [6]
2015-04-04 14:33:53 +00:00
#define EXPLODE_7(ARRAY,A,B,C,D,E,F,G) EXPLODE_7_SYS(ARRAY,A,B,C,D,E,F,G); TRACE_7("EXPLODE_7, " + QUOTE(ARRAY),A,B,C,D,E,F,G)
2015-08-26 04:11:52 +00:00
#define EXPLODE_7_PVT(ARRAY,A,B,C,D,E,F,G) ARRAY params [#A,#B,#C,#D,#E,#F,#G]; TRACE_7("EXPLODE_7, " + QUOTE(ARRAY),A,B,C,D,E,F,G)
2015-04-04 14:33:53 +00:00
2015-08-26 04:11:52 +00:00
#define EXPLODE_8_SYS(ARRAY,A,B,C,D,E,F,G,H) EXPLODE_7_SYS(ARRAY,A,B,C,D,E,F,G); H = ARRAY param [7]
2015-04-04 14:33:53 +00:00
#define EXPLODE_8(ARRAY,A,B,C,D,E,F,G,H) EXPLODE_8_SYS(ARRAY,A,B,C,D,E,F,G,H); TRACE_8("EXPLODE_8, " + QUOTE(ARRAY),A,B,C,D,E,F,G,H)
2015-08-26 04:11:52 +00:00
#define EXPLODE_8_PVT(ARRAY,A,B,C,D,E,F,G,H) ARRAY params [#A,#B,#C,#D,#E,#F,#G,#H]; TRACE_8("EXPLODE_8, " + QUOTE(ARRAY),A,B,C,D,E,F,G,H)
2015-04-04 14:33:53 +00:00
2015-08-26 04:11:52 +00:00
#define EXPLODE_9_SYS(ARRAY,A,B,C,D,E,F,G,H,I) EXPLODE_8_SYS(ARRAY,A,B,C,D,E,F,G,H); I = ARRAY param [8]
2015-04-04 14:33:53 +00:00
#define EXPLODE_9(ARRAY,A,B,C,D,E,F,G,H,I) EXPLODE_9_SYS(ARRAY,A,B,C,D,E,F,G,H,I); TRACE_9("EXPLODE_9, " + QUOTE(ARRAY),A,B,C,D,E,F,G,H,I)
2015-08-26 04:11:52 +00:00
#define EXPLODE_9_PVT(ARRAY,A,B,C,D,E,F,G,H,I) ARRAY params [#A,#B,#C,#D,#E,#F,#G,#H,#I]; TRACE_9("EXPLODE_9, " + QUOTE(ARRAY),A,B,C,D,E,F,G,H,I)
/* -------------------------------------------
Macro: xSTRING()
Get full string identifier from a stringtable owned by this component.
Parameters:
VARIABLE - Partial name of global variable owned by this component [Any].
Example:
ADDON is CBA_Balls.
(begin example)
// Localized String (localize command must still be used with it)
LSTRING(Example); // STR_CBA_Balls_Example;
// Config String (note the $)
CSTRING(Example); // $STR_CBA_Balls_Example;
(end)
Author:
Jonpas
------------------------------------------- */
#ifndef STRING_MACROS_GUARD
#define STRING_MACROS_GUARD
#define LSTRING(var1) QUOTE(TRIPLES(STR,ADDON,var1))
#define ELSTRING(var1,var2) QUOTE(TRIPLES(STR,DOUBLES(PREFIX,var1),var2))
#define CSTRING(var1) QUOTE(TRIPLES($STR,ADDON,var1))
#define ECSTRING(var1,var2) QUOTE(TRIPLES($STR,DOUBLES(PREFIX,var1),var2))
#endif
2015-04-04 14:33:53 +00:00
/* -------------------------------------------
Group: Managing Function Parameters
------------------------------------------- */
/* -------------------------------------------
Macros: PARAMS_n()
2015-08-26 04:11:52 +00:00
DEPRECATED - Use param/params commands added in Arma 3 1.48
2015-04-04 14:33:53 +00:00
2015-08-26 04:11:52 +00:00
Setting variables based on parameters passed to a function.
2015-04-04 14:33:53 +00:00
2015-08-26 04:11:52 +00:00
Each parameter is defines as private and set to the appropriate value from _this.
PARAMS_1(A) - Get 1 parameter from the _this array (or _this if it's not an array).
PARAMS_2(A,B) - Get 2 parameters from the _this array.
PARAMS_3(A,B,C) - Get 3 parameters from the _this array.
PARAMS_4(A,B,C,D) - Get 4 parameters from the _this array.
PARAMS_5(A,B,C,D,E) - Get 5 parameters from the _this array.
PARAMS_6(A,B,C,D,E,F) - Get 6 parameters from the _this array.
PARAMS_7(A,B,C,D,E,F,G) - Get 7 parameters from the _this array.
PARAMS_8(A,B,C,D,E,F,G,H) - Get 8 parameters from the _this array.
2015-04-04 14:33:53 +00:00
Parameters:
2015-08-26 04:11:52 +00:00
A..H - Name of variable to read from _this [Identifier]
2015-04-04 14:33:53 +00:00
Example:
2015-08-26 04:11:52 +00:00
A function called like this:
(begin example)
[_name,_address,_telephone] call recordPersonalDetails;
(end)
expects 3 parameters and those variables could be initialised at the start of the function definition with:
(begin example)
recordPersonalDetails = {
PARAMS_3(_name,_address,_telephone);
// Rest of function follows...
};
(end)
2015-04-04 14:33:53 +00:00
Author:
2015-08-26 04:11:52 +00:00
Spooner
2015-04-04 14:33:53 +00:00
------------------------------------------- */
#define PARAMS_1(A) EXPLODE_1_PVT(_this,A)
#define PARAMS_2(A,B) EXPLODE_2_PVT(_this,A,B)
#define PARAMS_3(A,B,C) EXPLODE_3_PVT(_this,A,B,C)
#define PARAMS_4(A,B,C,D) EXPLODE_4_PVT(_this,A,B,C,D)
#define PARAMS_5(A,B,C,D,E) EXPLODE_5_PVT(_this,A,B,C,D,E)
#define PARAMS_6(A,B,C,D,E,F) EXPLODE_6_PVT(_this,A,B,C,D,E,F)
#define PARAMS_7(A,B,C,D,E,F,G) EXPLODE_7_PVT(_this,A,B,C,D,E,F,G)
#define PARAMS_8(A,B,C,D,E,F,G,H) EXPLODE_8_PVT(_this,A,B,C,D,E,F,G,H)
#define PARAMS_9(A,B,C,D,E,F,G,H,I) EXPLODE_9_PVT(_this,A,B,C,D,E,F,G,H,I)
/* -------------------------------------------
Macro: DEFAULT_PARAM()
2015-08-26 04:11:52 +00:00
DEPRECATED - Use param/params commands added in Arma 3 1.48
Getting a default function parameter. This may be used together with <PARAMS_n()> to have a mix of required and
optional parameters.
2015-04-04 14:33:53 +00:00
Parameters:
2015-08-26 04:11:52 +00:00
INDEX - Index of parameter in _this [Integer, 0+]
NAME - Name of the variable to set [Identifier]
DEF_VALUE - Default value to use in case the array is too short or the value at INDEX is nil [Any]
2015-04-04 14:33:53 +00:00
Example:
2015-08-26 04:11:52 +00:00
A function called with optional parameters:
(begin example)
[_name] call myFunction;
[_name, _numberOfLegs] call myFunction;
[_name, _numberOfLegs, _hasAHead] call myFunction;
(end)
1 required parameter and 2 optional parameters. Those variables could be initialised at the start of the function
definition with:
(begin example)
myFunction = {
PARAMS_1(_name);
DEFAULT_PARAM(1,_numberOfLegs,2);
DEFAULT_PARAM(2,_hasAHead,true);
// Rest of function follows...
};
(end)
2015-04-04 14:33:53 +00:00
Author:
2015-08-26 04:11:52 +00:00
Spooner
2015-04-04 14:33:53 +00:00
------------------------------------------- */
#define DEFAULT_PARAM(INDEX,NAME,DEF_VALUE) \
2015-08-26 04:11:52 +00:00
private [#NAME,"_this"]; \
ISNILS(_this,[]); \
NAME = _this param [INDEX, DEF_VALUE]; \
TRACE_3("DEFAULT_PARAM",INDEX,NAME,DEF_VALUE)
2015-04-04 14:33:53 +00:00
/* -------------------------------------------
Macro: KEY_PARAM()
2015-08-26 04:11:52 +00:00
Get value from key in _this list, return default when key is not included in list.
2015-04-04 14:33:53 +00:00
Parameters:
2015-08-26 04:11:52 +00:00
KEY - Key name [String]
NAME - Name of the variable to set [Identifier]
DEF_VALUE - Default value to use in case key not found [ANY]
2015-04-04 14:33:53 +00:00
Example:
Author:
2015-08-26 04:11:52 +00:00
Muzzleflash
2015-04-04 14:33:53 +00:00
------------------------------------------- */
#define KEY_PARAM(KEY,NAME,DEF_VALUE) \
2015-08-26 04:11:52 +00:00
private #NAME; \
NAME = [toLower KEY, toUpper KEY, DEF_VALUE, RETNIL(_this)] call CBA_fnc_getArg; \
TRACE_3("KEY_PARAM",KEY,NAME,DEF_VALUE)
2015-04-04 14:33:53 +00:00
/* -------------------------------------------
Group: Assertions
------------------------------------------- */
#define ASSERTION_ERROR(MESSAGE) ERROR_WITH_TITLE("Assertion failed!",MESSAGE)
/* -------------------------------------------
Macro: ASSERT_TRUE()
2015-08-26 04:11:52 +00:00
Asserts that a CONDITION is true. When an assertion fails, an error is raised with the given MESSAGE.
2015-04-04 14:33:53 +00:00
Parameters:
2015-08-26 04:11:52 +00:00
CONDITION - Condition to assert as true [Boolean]
MESSSAGE - Message to display if (A OPERATOR B) is false [String]
2015-04-04 14:33:53 +00:00
Example:
2015-08-26 04:11:52 +00:00
(begin example)
ASSERT_TRUE(_frogIsDead,"The frog is alive");
(end)
2015-04-04 14:33:53 +00:00
Author:
2015-08-26 04:11:52 +00:00
Spooner
2015-04-04 14:33:53 +00:00
------------------------------------------- */
#define ASSERT_TRUE(CONDITION,MESSAGE) \
2015-08-26 04:11:52 +00:00
if (not (CONDITION)) then \
{ \
ASSERTION_ERROR('Assertion (CONDITION) failed!\n\n' + (MESSAGE)); \
}
2015-04-04 14:33:53 +00:00
/* -------------------------------------------
Macro: ASSERT_FALSE()
2015-08-26 04:11:52 +00:00
Asserts that a CONDITION is false. When an assertion fails, an error is raised with the given MESSAGE.
2015-04-04 14:33:53 +00:00
Parameters:
2015-08-26 04:11:52 +00:00
CONDITION - Condition to assert as false [Boolean]
MESSSAGE - Message to display if (A OPERATOR B) is true [String]
2015-04-04 14:33:53 +00:00
Example:
2015-08-26 04:11:52 +00:00
(begin example)
ASSERT_FALSE(_frogIsDead,"The frog died");
(end)
2015-04-04 14:33:53 +00:00
Author:
2015-08-26 04:11:52 +00:00
Spooner
2015-04-04 14:33:53 +00:00
------------------------------------------- */
#define ASSERT_FALSE(CONDITION,MESSAGE) \
2015-08-26 04:11:52 +00:00
if (CONDITION) then \
{ \
ASSERTION_ERROR('Assertion (not (CONDITION)) failed!\n\n' + (MESSAGE)) \
}
2015-04-04 14:33:53 +00:00
/* -------------------------------------------
Macro: ASSERT_OP()
2015-08-26 04:11:52 +00:00
Asserts that (A OPERATOR B) is true. When an assertion fails, an error is raised with the given MESSAGE.
2015-04-04 14:33:53 +00:00
Parameters:
2015-08-26 04:11:52 +00:00
A - First value [Any]
OPERATOR - Binary operator to use [Operator]
B - Second value [Any]
MESSSAGE - Message to display if (A OPERATOR B) is false. [String]
2015-04-04 14:33:53 +00:00
Example:
2015-08-26 04:11:52 +00:00
(begin example)
ASSERT_OP(_fish,>,5,"Too few fish!");
(end)
2015-04-04 14:33:53 +00:00
Author:
2015-08-26 04:11:52 +00:00
Spooner
2015-04-04 14:33:53 +00:00
------------------------------------------- */
#define ASSERT_OP(A,OPERATOR,B,MESSAGE) \
2015-08-26 04:11:52 +00:00
if (not ((A) OPERATOR (B))) then \
{ \
ASSERTION_ERROR('Assertion (A OPERATOR B) failed!\n' + 'A: ' + (str (A)) + '\n' + 'B: ' + (str (B)) + "\n\n" + (MESSAGE)); \
}
2015-04-04 14:33:53 +00:00
/* -------------------------------------------
Macro: ASSERT_DEFINED()
2015-08-26 04:11:52 +00:00
Asserts that a VARIABLE is defined. When an assertion fails, an error is raised with the given MESSAGE..
2015-04-04 14:33:53 +00:00
Parameters:
2015-08-26 04:11:52 +00:00
VARIABLE - Variable to test if defined [String or Function].
MESSAGE - Message to display if variable is undefined [String].
2015-04-04 14:33:53 +00:00
Examples:
2015-08-26 04:11:52 +00:00
(begin example)
ASSERT_DEFINED("_anUndefinedVar","Too few fish!");
ASSERT_DEFINED({ obj getVariable "anUndefinedVar" },"Too many fish!");
(end)
2015-04-04 14:33:53 +00:00
Author:
2015-08-26 04:11:52 +00:00
Spooner
2015-04-04 14:33:53 +00:00
------------------------------------------- */
#define ASSERT_DEFINED(VARIABLE,MESSAGE) \
2015-08-26 04:11:52 +00:00
if (isNil VARIABLE) then \
{ \
ASSERTION_ERROR('Assertion (VARIABLE is defined) failed!\n\n' + (MESSAGE)); \
}
/* -------------------------------------------
Group: Unit tests
------------------------------------------- */
#define TEST_SUCCESS(MESSAGE) MESSAGE_WITH_TITLE("Test OK",MESSAGE)
#define TEST_FAIL(MESSAGE) ERROR_WITH_TITLE("Test FAIL",MESSAGE)
/* -------------------------------------------
Macro: TEST_TRUE()
Tests that a CONDITION is true.
If the condition is not true, an error is raised with the given MESSAGE.
Parameters:
CONDITION - Condition to assert as true [Boolean]
MESSSAGE - Message to display if (A OPERATOR B) is false [String]
Example:
(begin example)
TEST_TRUE(_frogIsDead,"The frog is alive");
(end)
Author:
Killswitch
------------------------------------------- */
#define TEST_TRUE(CONDITION, MESSAGE) \
if (CONDITION) then \
{ \
TEST_SUCCESS('(CONDITION)'); \
} \
else \
{ \
TEST_FAIL('(CONDITION) ' + (MESSAGE)); \
}
/* -------------------------------------------
Macro: TEST_FALSE()
Tests that a CONDITION is false.
If the condition is not false, an error is raised with the given MESSAGE.
Parameters:
CONDITION - Condition to test as false [Boolean]
MESSSAGE - Message to display if (A OPERATOR B) is true [String]
Example:
(begin example)
TEST_FALSE(_frogIsDead,"The frog died");
(end)
Author:
Killswitch
------------------------------------------- */
#define TEST_FALSE(CONDITION, MESSAGE) \
if (not (CONDITION)) then \
{ \
TEST_SUCCESS('(not (CONDITION))'); \
} \
else \
{ \
TEST_FAIL('(not (CONDITION)) ' + (MESSAGE)); \
}
/* -------------------------------------------
Macro: TEST_OP()
Tests that (A OPERATOR B) is true.
If the test fails, an error is raised with the given MESSAGE.
Parameters:
A - First value [Any]
OPERATOR - Binary operator to use [Operator]
B - Second value [Any]
MESSSAGE - Message to display if (A OPERATOR B) is false. [String]
Example:
(begin example)
TEST_OP(_fish,>,5,"Too few fish!");
(end)
Author:
Killswitch
------------------------------------------- */
#define TEST_OP(A,OPERATOR,B,MESSAGE) \
if ((A) OPERATOR (B)) then \
{ \
TEST_SUCCESS('(A OPERATOR B)') \
} \
else \
{ \
TEST_FAIL('(A OPERATOR B)') \
};
2016-06-24 17:16:12 +00:00
/* -------------------------------------------
Macro: TEST_DEFINED_AND_OP()
Tests that A and B are defined and (A OPERATOR B) is true.
If the test fails, an error is raised with the given MESSAGE.
Parameters:
A - First value [Any]
OPERATOR - Binary operator to use [Operator]
B - Second value [Any]
MESSSAGE - Message to display [String]
Example:
(begin example)
TEST_OP(_fish,>,5,"Too few fish!");
(end)
Author:
Killswitch, PabstMirror
------------------------------------------- */
#define TEST_DEFINED_AND_OP(A,OPERATOR,B,MESSAGE) \
if (isNil #A) then { \
TEST_FAIL('(A is not defined) ' + (MESSAGE)); \
} else { \
if (isNil #B) then { \
TEST_FAIL('(B is not defined) ' + (MESSAGE)); \
} else { \
if ((A) OPERATOR (B)) then { \
TEST_SUCCESS('(A OPERATOR B) ' + (MESSAGE)) \
} else { \
TEST_FAIL('(A OPERATOR B) ' + (MESSAGE)) \
}; }; };
2015-08-26 04:11:52 +00:00
/* -------------------------------------------
Macro: TEST_DEFINED()
Tests that a VARIABLE is defined.
Parameters:
VARIABLE - Variable to test if defined [String or Function].
MESSAGE - Message to display if variable is undefined [String].
Examples:
(begin example)
TEST_DEFINED("_anUndefinedVar","Too few fish!");
TEST_DEFINED({ obj getVariable "anUndefinedVar" },"Too many fish!");
(end)
Author:
Killswitch
------------------------------------------- */
#define TEST_DEFINED(VARIABLE,MESSAGE) \
if (not isNil VARIABLE) then \
{ \
TEST_SUCCESS('(' + VARIABLE + ' is defined)'); \
} \
else \
{ \
TEST_FAIL('(' + VARIABLE + ' is not defined)' + (MESSAGE)); \
}
2015-04-04 14:33:53 +00:00
/* -------------------------------------------
Group: Managing Deprecation
------------------------------------------- */
/* -------------------------------------------
Macro: DEPRECATE_SYS()
2015-08-26 04:11:52 +00:00
Allow deprecation of a function that has been renamed.
2015-04-04 14:33:53 +00:00
2015-08-26 04:11:52 +00:00
Replaces an old OLD_FUNCTION (which will have PREFIX_ prepended) with a NEW_FUNCTION
(PREFIX_ prepended) with the intention that the old function will be disabled in the future.
2015-04-04 14:33:53 +00:00
2015-08-26 04:11:52 +00:00
Shows a warning in RPT each time the deprecated function is used, but runs the new function.
2015-04-04 14:33:53 +00:00
Parameters:
2015-08-26 04:11:52 +00:00
OLD_FUNCTION - Full name of old function [Identifier for function that does not exist any more]
NEW_FUNCTION - Full name of new function [Function]
2015-04-04 14:33:53 +00:00
Example:
2015-08-26 04:11:52 +00:00
(begin example)
// After renaming CBA_fnc_frog as CBA_fnc_fish
DEPRECATE_SYS(CBA_fnc_frog,CBA_fnc_fish);
(end)
2015-04-04 14:33:53 +00:00
Author:
2015-08-26 04:11:52 +00:00
Sickboy
2015-04-04 14:33:53 +00:00
------------------------------------------- */
#define DEPRECATE_SYS(OLD_FUNCTION,NEW_FUNCTION) \
2015-08-26 04:11:52 +00:00
OLD_FUNCTION = { \
WARNING('Deprecated function used: OLD_FUNCTION (new: NEW_FUNCTION) in ADDON'); \
if (isNil "_this") then { call NEW_FUNCTION } else { _this call NEW_FUNCTION }; \
}
2015-04-04 14:33:53 +00:00
/* -------------------------------------------
Macro: DEPRECATE()
2015-08-26 04:11:52 +00:00
Allow deprecation of a function, in the current component, that has been renamed.
2015-04-04 14:33:53 +00:00
2015-08-26 04:11:52 +00:00
Replaces an OLD_FUNCTION (which will have PREFIX_ prepended) with a NEW_FUNCTION
(PREFIX_ prepended) with the intention that the old function will be disabled in the future.
2015-04-04 14:33:53 +00:00
2015-08-26 04:11:52 +00:00
Shows a warning in RPT each time the deprecated function is used, but runs the new function.
2015-04-04 14:33:53 +00:00
Parameters:
2015-08-26 04:11:52 +00:00
OLD_FUNCTION - Name of old function, assuming PREFIX [Identifier for function that does not exist any more]
NEW_FUNCTION - Name of new function, assuming PREFIX [Function]
2015-04-04 14:33:53 +00:00
Example:
2015-08-26 04:11:52 +00:00
(begin example)
// After renaming CBA_fnc_frog as CBA_fnc_fish
DEPRECATE(fnc_frog,fnc_fish);
(end)
2015-04-04 14:33:53 +00:00
Author:
2015-08-26 04:11:52 +00:00
Sickboy
2015-04-04 14:33:53 +00:00
------------------------------------------- */
#define DEPRECATE(OLD_FUNCTION,NEW_FUNCTION) \
2015-08-26 04:11:52 +00:00
DEPRECATE_SYS(DOUBLES(PREFIX,OLD_FUNCTION),DOUBLES(PREFIX,NEW_FUNCTION))
2015-04-04 14:33:53 +00:00
/* -------------------------------------------
Macro: OBSOLETE_SYS()
2015-08-26 04:11:52 +00:00
Replace a function that has become obsolete.
2015-04-04 14:33:53 +00:00
2015-08-26 04:11:52 +00:00
Replace an obsolete OLD_FUNCTION with a simple COMMAND_FUNCTION, with the intention that anyone
using the function should replace it with the simple command, since the function will be disabled in the future.
2015-04-04 14:33:53 +00:00
2015-08-26 04:11:52 +00:00
Shows a warning in RPT each time the deprecated function is used, and runs the command function.
2015-04-04 14:33:53 +00:00
Parameters:
2015-08-26 04:11:52 +00:00
OLD_FUNCTION - Full name of old function [Identifier for function that does not exist any more]
COMMAND_CODE - Code to replace the old function [Function]
2015-04-04 14:33:53 +00:00
Example:
2015-08-26 04:11:52 +00:00
(begin example)
// In Arma2, currentWeapon command made the CBA_fMyWeapon function obsolete:
OBSOLETE_SYS(CBA_fMyWeapon,{ currentWeapon player });
(end)
2015-04-04 14:33:53 +00:00
Author:
2015-08-26 04:11:52 +00:00
Spooner
2015-04-04 14:33:53 +00:00
------------------------------------------- */
#define OBSOLETE_SYS(OLD_FUNCTION,COMMAND_CODE) \
2015-08-26 04:11:52 +00:00
OLD_FUNCTION = { \
WARNING('Obsolete function used: (use: OLD_FUNCTION) in ADDON'); \
if (isNil "_this") then { call COMMAND_CODE } else { _this call COMMAND_CODE }; \
}
2015-04-04 14:33:53 +00:00
/* -------------------------------------------
Macro: OBSOLETE()
2015-08-26 04:11:52 +00:00
Replace a function, in the current component, that has become obsolete.
2015-04-04 14:33:53 +00:00
2015-08-26 04:11:52 +00:00
Replace an obsolete OLD_FUNCTION (which will have PREFIX_ prepended) with a simple
COMMAND_CODE, with the intention that anyone using the function should replace it with the simple
command.
2015-04-04 14:33:53 +00:00
2015-08-26 04:11:52 +00:00
Shows a warning in RPT each time the deprecated function is used.
2015-04-04 14:33:53 +00:00
Parameters:
2015-08-26 04:11:52 +00:00
OLD_FUNCTION - Name of old function, assuming PREFIX [Identifier for function that does not exist any more]
COMMAND_CODE - Code to replace the old function [Function]
2015-04-04 14:33:53 +00:00
Example:
2015-08-26 04:11:52 +00:00
(begin example)
// In Arma2, currentWeapon command made the CBA_fMyWeapon function obsolete:
OBSOLETE(fMyWeapon,{ currentWeapon player });
(end)
2015-04-04 14:33:53 +00:00
Author:
2015-08-26 04:11:52 +00:00
Spooner
2015-04-04 14:33:53 +00:00
------------------------------------------- */
#define OBSOLETE(OLD_FUNCTION,COMMAND_CODE) \
2015-08-26 04:11:52 +00:00
OBSOLETE_SYS(DOUBLES(PREFIX,OLD_FUNCTION),COMMAND_CODE)
2015-04-04 14:33:53 +00:00
#define BWC_CONFIG(NAME) class NAME { \
2015-08-26 04:11:52 +00:00
units[] = {}; \
weapons[] = {}; \
requiredVersion = REQUIRED_VERSION; \
requiredAddons[] = {}; \
version = VERSION; \
2015-04-04 14:33:53 +00:00
}
// XEH Specific
2016-02-06 16:31:41 +00:00
#define XEH_CLASS CBA_Extended_EventHandlers
#define XEH_DISABLED class EventHandlers { class XEH_CLASS {}; }; SLX_XEH_DISABLED = 1
#define XEH_ENABLED class EventHandlers { class XEH_CLASS { EXTENDED_EVENTHANDLERS }; }; SLX_XEH_DISABLED = 0
2015-04-04 14:33:53 +00:00
// TODO: These are actually outdated; _Once ?
#define XEH_PRE_INIT QUOTE(call COMPILE_FILE(XEH_PreInit_Once))
#define XEH_PRE_CINIT QUOTE(call COMPILE_FILE(XEH_PreClientInit_Once))
#define XEH_PRE_SINIT QUOTE(call COMPILE_FILE(XEH_PreServerInit_Once))
#define XEH_POST_INIT QUOTE(call COMPILE_FILE(XEH_PostInit_Once))
#define XEH_POST_CINIT QUOTE(call COMPILE_FILE(XEH_PostClientInit_Once))
#define XEH_POST_SINIT QUOTE(call COMPILE_FILE(XEH_PostServerInit_Once))
2016-06-24 17:16:12 +00:00
#define IS_LINUX (productVersion select 2 <= 154)