-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revised CAS modules #319
Revised CAS modules #319
Conversation
@@ -115,9 +115,10 @@ waituntil { | |||
//--- Fire! | |||
if ((getposasl _plane) distance _pos < 1000 && _fireNull) then { | |||
//--- Create laser target | |||
private _target = ((position _logic nearEntities ["LaserTarget",250])) param [0,objnull]; | |||
private _targetType = if (_planeSide getfriend west > 0.6) then {"LaserTargetW"} else {"LaserTargetE"}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
select
//--- Fire CM | ||
if ({_x == "bomblauncher"} count _weaponTypes == 0) then { | ||
for "_i" from 0 to 1 do { | ||
driver _plane forceweaponfire ["CMFlareLauncher","Burst"]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be a single flare per second, otherwise, you dump all your flares and IR rockets will just go after you have dumped them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested it. It works as intended.
@@ -80,14 +76,14 @@ else | |||
// If the vehicle is an aircraft | |||
if (_isVehicleAir) then | |||
{ | |||
[_vehicle,_CMWeapon] spawn | |||
([_vehicle,_CMWeapon] + _flareParams) spawn |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why +?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not? Splitting it in two lines for the sake of using append
or what?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why don't you just put it inside the array?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding + just makes anybody reading the code wonder why and it's slower anyways.
You are adding _flareParams
to the array anyways with the +
, so why bother?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol, screw micro-optimizations.
@@ -80,14 +76,14 @@ else | |||
// If the vehicle is an aircraft | |||
if (_isVehicleAir) then | |||
{ | |||
[_vehicle,_CMWeapon] spawn | |||
([_vehicle,_CMWeapon] + _flareParams) spawn |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put it in the array.
* Update readme paths * update links in readme (part 2) * Readme: Get rid of Heroku webhooks. * Update README.md * Small fixes (#293) * Remove duplicate IDC * Missing localization * Remote control module still used vanilla function * Rename stringtable key for delta distribution * Hint module is now shown as Advanced Hint (#294) * Hint module is now shown as Advanced Hint * Swapped the category * Add fr/de translations * Reorganize and fix Adv Hint (#308) * use ace_common_fnc_setName (#305) * Fix for the Damage Building Module (#304) * Use remoteExecCall instead of broadcasting the entire function * Specify the target * Fix undefined var error if ace is not installed. (#311) * Added DeliciousJaffa (#317) * Replace nonsensical default value (#320) * Revised CAS modules (#319) * Fix targeting and fire flares * Address review comments + additional launch CM params * Fix launch CM * extraordinary important optimization * Add change log for 1.0.3 * Small features (#321) * Add artillery precision option * Add artillery precision option (resolves #133) * Revise paradrop: Drops below 150 => HALO (resolves #112) * Add spaces for readability * Correct change log (#322) * Reorganize Tools (#323) * move priv key folder to Achilles and ignore it * Reorganize Tools * New mintty-tmux session launcher * Revised AddonBuilder batch script * AchillesConnectToServer * Update gitignore * Rename Tools folder and add bat extension to AchillesAddonBuilder * Fix travis tools path * Reintroduce the faction filter (#326) * Reintroduce the faction filter * Update changlog.md * Fix filter by uncommenting the required parts * HALO (#324) * Fix backpack inventory duplication * Improve paradrop accuracy * Add HALO option for reinforcements * Improved the fitted function for HALO * Fix error in function for HALO parameter * More frequent checking time for height, since 1 sec can make a lot of difference in height * Achilles_fnc_chute: Add default value for delay and reset chute deploy height to 100m * Reinforcement: Set aircraft to carless, restrict HALO for planes only * Add HALO option to teleport module * Address point in review * Address points in review (part 2) * update change log * Reinforcment: Fix CUP planes * Achilles_fnc_chute: change chute deployment height to 120m * Update changelog.md * Use proper syntax for link in changlog * Remove the extra space in the changelog * Change 1.0.3 to 1.1.0 (#327) * Fix locality issue for HALO option in the teleport module (#328) * Broadcast chute function and exec on local machine * Code optimization
* Update readme paths * update links in readme (part 2) * Readme: Get rid of Heroku webhooks. * Update README.md * Small fixes (#293) * Remove duplicate IDC * Missing localization * Remote control module still used vanilla function * Rename stringtable key for delta distribution * Hint module is now shown as Advanced Hint (#294) * Hint module is now shown as Advanced Hint * Swapped the category * Add fr/de translations * Reorganize and fix Adv Hint (#308) * use ace_common_fnc_setName (#305) * Fix for the Damage Building Module (#304) * Use remoteExecCall instead of broadcasting the entire function * Specify the target * Fix undefined var error if ace is not installed. (#311) * Added DeliciousJaffa (#317) * Replace nonsensical default value (#320) * Revised CAS modules (#319) * Fix targeting and fire flares * Address review comments + additional launch CM params * Fix launch CM * extraordinary important optimization * Add change log for 1.0.3 * Small features (#321) * Add artillery precision option * Add artillery precision option (resolves #133) * Revise paradrop: Drops below 150 => HALO (resolves #112) * Add spaces for readability * Correct change log (#322) * Reorganize Tools (#323) * move priv key folder to Achilles and ignore it * Reorganize Tools * New mintty-tmux session launcher * Revised AddonBuilder batch script * AchillesConnectToServer * Update gitignore * Rename Tools folder and add bat extension to AchillesAddonBuilder * Fix travis tools path * Reintroduce the faction filter (#326) * Reintroduce the faction filter * Update changlog.md * Fix filter by uncommenting the required parts * HALO (#324) * Fix backpack inventory duplication * Improve paradrop accuracy * Add HALO option for reinforcements * Improved the fitted function for HALO * Fix error in function for HALO parameter * More frequent checking time for height, since 1 sec can make a lot of difference in height * Achilles_fnc_chute: Add default value for delay and reset chute deploy height to 100m * Reinforcement: Set aircraft to carless, restrict HALO for planes only * Add HALO option to teleport module * Address point in review * Address points in review (part 2) * update change log * Reinforcment: Fix CUP planes * Achilles_fnc_chute: change chute deployment height to 120m * Update changelog.md * Use proper syntax for link in changlog * Remove the extra space in the changelog * Change 1.0.3 to 1.1.0 (#327) * Fix locality issue for HALO option in the teleport module (#328) * Broadcast chute function and exec on local machine * Code optimization
When merged this pull request will: