ACE3/addons
Wanderrful 635b667a74 Fixed viewdistance error while controlling UAV (#5308)
* Fixed viewdistance error while controlling UAV.

When you take control of UAV drones, the view distance does not properly update to your setting because it thinks that you are still the land infantry guy.  So I've experimented a bit in the editor and found a condition that will properly return true when you are in control of a drone aircraft.  I've also adapted this for use with land-based UAV stuff (like the Stomper).

To accomplish this, I created a private *_isControllingDrone* variable that will detect if the player is currently in control of any UAV.  I also edited the _landVehicle and _airVehicle scripts so if and only *_isControllingDrone* returns true, then it will check whether the drone is a subclass of "LandVehicle" or an "Air".

That's all I did.  Please accept my pull request!

* Use ACE_controlledUAV event
2017-09-10 14:42:19 -05:00
..
advanced_ballistics Fix Chinese content & missing string (#5375) 2017-07-19 20:57:20 +02:00
advanced_fatigue Update the Jpn translate fd48c7f (#5381) 2017-07-23 14:27:50 +02:00
advanced_throwing Underwater actions support (#4984) 2017-08-22 13:30:56 -05:00
ai Remove CfgAiSkill config changes (#5091) 2017-04-22 11:18:56 -05:00
aircraft Correct new Chinese stringtable identifiers (#5334) 2017-07-10 16:47:26 +02:00
apl convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
atragmx ATragMX - Fixed AT mode (#5485) 2017-09-08 18:18:17 +02:00
attach Underwater actions support (#4984) 2017-08-22 13:30:56 -05:00
backpacks Conform function headers to coding guidelines (#5255) 2017-06-08 15:31:51 +02:00
ballistics Correct new Chinese stringtable identifiers (#5334) 2017-07-10 16:47:26 +02:00
captives Underwater actions support (#4984) 2017-08-22 13:30:56 -05:00
cargo Added drag and Cargo ability to Orange crates (#5421) 2017-09-07 19:45:37 +02:00
chemlights Underwater actions support (#4984) 2017-08-22 13:30:56 -05:00
common Remove deprecated stringRemoveWhitespace (#5483) 2017-09-07 20:12:47 +02:00
concertina_wire Correct new Chinese stringtable identifiers (#5334) 2017-07-10 16:47:26 +02:00
cookoff Use selectRandomWeighted 1.76 command (#5482) 2017-09-08 16:18:07 +02:00
dagr Fix Chinese content & missing string (#5375) 2017-07-19 20:57:20 +02:00
disarming Underwater actions support (#4984) 2017-08-22 13:30:56 -05:00
disposable Correct new Chinese stringtable identifiers (#5334) 2017-07-10 16:47:26 +02:00
dogtags Dogtags - Fix error with cyrillic names (#5473) 2017-09-04 11:34:15 -05:00
dragging Added drag and Cargo ability to Orange crates (#5421) 2017-09-07 19:45:37 +02:00
explosives Add ace_explosive support for orange dlc mines (#5486) 2017-09-10 09:44:57 -05:00
fastroping Remove cargo from fastrope helper object (#5480) 2017-09-07 11:45:56 -05:00
fcs Common func to run config tests (#5170) 2017-08-22 16:21:41 -05:00
finger Underwater actions support (#4984) 2017-08-22 13:30:56 -05:00
flashlights Fix Chinese content & missing string (#5375) 2017-07-19 20:57:20 +02:00
flashsuppressors Correct new Chinese stringtable identifiers (#5334) 2017-07-10 16:47:26 +02:00
fonts Cleanup (#5463) 2017-08-29 17:47:01 -05:00
frag Correct new Chinese stringtable identifiers (#5334) 2017-07-10 16:47:26 +02:00
gestures Underwater actions support (#4984) 2017-08-22 13:30:56 -05:00
gforces Correct new Chinese stringtable identifiers (#5334) 2017-07-10 16:47:26 +02:00
goggles Compatibility with newest mikro tools (#5442) 2017-08-22 12:53:58 -05:00
grenades Correct new Chinese stringtable identifiers (#5334) 2017-07-10 16:47:26 +02:00
gunbag Correct new Chinese stringtable identifiers (#5334) 2017-07-10 16:47:26 +02:00
hearing Underwater actions support (#4984) 2017-08-22 13:30:56 -05:00
hellfire Add EH for UAV control, Add Hellfire support (#5305) 2017-08-22 16:07:45 -05:00
hitreactions Conform function headers to coding guidelines (#5255) 2017-06-08 15:31:51 +02:00
huntir Jpn translate 2f93c40 (#5476) 2017-09-07 00:06:00 -05:00
interact_menu Add EH for UAV control, Add Hellfire support (#5305) 2017-08-22 16:07:45 -05:00
interaction Added rating settings (#5354) 2017-09-07 19:38:26 +02:00
inventory Correct new Chinese stringtable identifiers (#5334) 2017-07-10 16:47:26 +02:00
javelin Correct new Chinese stringtable identifiers (#5334) 2017-07-10 16:47:26 +02:00
kestrel4500 Kestrel4500 - Fixed head- and crosswind calculation (#5489) 2017-09-10 15:16:17 +02:00
laser Add EH for UAV control, Add Hellfire support (#5305) 2017-08-22 16:07:45 -05:00
laserpointer Correct new Chinese stringtable identifiers (#5334) 2017-07-10 16:47:26 +02:00
logistics_uavbattery Correct new Chinese stringtable identifiers (#5334) 2017-07-10 16:47:26 +02:00
logistics_wirecutter Underwater actions support (#4984) 2017-08-22 13:30:56 -05:00
magazinerepack Underwater actions support (#4984) 2017-08-22 13:30:56 -05:00
main Use selectRandomWeighted 1.76 command (#5482) 2017-09-08 16:18:07 +02:00
map Customized map lighting for vehicle interiors (#5401) 2017-08-22 13:13:03 -05:00
map_gestures Correct new Chinese stringtable identifiers (#5334) 2017-07-10 16:47:26 +02:00
maptools Fix Chinese content & missing string (#5375) 2017-07-19 20:57:20 +02:00
markers added movable markers option (#5397) 2017-09-07 19:26:32 +02:00
medical Added missing semicolon (#5487) 2017-09-10 14:44:26 +02:00
medical_ai Correct new Chinese stringtable identifiers (#5334) 2017-07-10 16:47:26 +02:00
medical_blood Fix Chinese content & missing string (#5375) 2017-07-19 20:57:20 +02:00
medical_menu Underwater actions support (#4984) 2017-08-22 13:30:56 -05:00
microdagr Update the Jpn translate fd48c7f (#5381) 2017-07-23 14:27:50 +02:00
minedetector Correct new Chinese stringtable identifiers (#5334) 2017-07-10 16:47:26 +02:00
missileguidance Add EH for UAV control, Add Hellfire support (#5305) 2017-08-22 16:07:45 -05:00
missionmodules Fix Chinese content & missing string (#5375) 2017-07-19 20:57:20 +02:00
mk6mortar Fix Chinese content & missing string (#5375) 2017-07-19 20:57:20 +02:00
modules Add XEH to ace_module (#5304) 2017-07-10 16:46:02 +02:00
movement Correct new Chinese stringtable identifiers (#5334) 2017-07-10 16:47:26 +02:00
mx2a Correct new Chinese stringtable identifiers (#5334) 2017-07-10 16:47:26 +02:00
nametags Fix Chinese content & missing string (#5375) 2017-07-19 20:57:20 +02:00
nightvision Fix Chinese content & missing string (#5375) 2017-07-19 20:57:20 +02:00
nlaw Merge branch 'release' 2017-07-18 23:00:48 +02:00
noidle Cleanup (#5463) 2017-08-29 17:47:01 -05:00
noradio Cleanup (#5463) 2017-08-29 17:47:01 -05:00
norearm Cleanup (#5463) 2017-08-29 17:47:01 -05:00
optics Cleanup (#5463) 2017-08-29 17:47:01 -05:00
optionsmenu Fix Chinese content & missing string (#5375) 2017-07-19 20:57:20 +02:00
overheating Underwater actions support (#4984) 2017-08-22 13:30:56 -05:00
overpressure Correct new Chinese stringtable identifiers (#5334) 2017-07-10 16:47:26 +02:00
parachute Fix Chinese content & missing string (#5375) 2017-07-19 20:57:20 +02:00
quickmount Fix Chinese content & missing string (#5375) 2017-07-19 20:57:20 +02:00
rangecard Correct new Chinese stringtable identifiers (#5334) 2017-07-10 16:47:26 +02:00
realisticnames Remove srifle_DMR_03_spotter_F (#5477) 2017-09-07 18:39:11 +02:00
realisticweights Update SMG_02 base class for 1.66 (#4718) 2016-12-12 19:31:52 +01:00
rearm Common func to run config tests (#5170) 2017-08-22 16:21:41 -05:00
recoil Conform function headers to coding guidelines (#5255) 2017-06-08 15:31:51 +02:00
refuel Common func to run config tests (#5170) 2017-08-22 16:21:41 -05:00
reload Underwater actions support (#4984) 2017-08-22 13:30:56 -05:00
reloadlaunchers Underwater actions support (#4984) 2017-08-22 13:30:56 -05:00
repair Underwater actions support (#4984) 2017-08-22 13:30:56 -05:00
respawn Don't add fake weapon in restoreGear (#5491) 2017-09-10 14:42:04 -05:00
safemode Underwater actions support (#4984) 2017-08-22 13:30:56 -05:00
sandbag Correct new Chinese stringtable identifiers (#5334) 2017-07-10 16:47:26 +02:00
scopes Underwater actions support (#4984) 2017-08-22 13:30:56 -05:00
slideshow Fix Chinese content & missing string (#5375) 2017-07-19 20:57:20 +02:00
smallarms Update SMG_02 base class for 1.66 (#4718) 2016-12-12 19:31:52 +01:00
spectator Jpn translate 2f93c40 (#5476) 2017-09-07 00:06:00 -05:00
spottingscope Correct new Chinese stringtable identifiers (#5334) 2017-07-10 16:47:26 +02:00
switchunits Fix Chinese content & missing string (#5375) 2017-07-19 20:57:20 +02:00
tacticalladder Correct new Chinese stringtable identifiers (#5334) 2017-07-10 16:47:26 +02:00
tagging Fix Chinese content & missing string (#5375) 2017-07-19 20:57:20 +02:00
thermals Cleanup (#5463) 2017-08-29 17:47:01 -05:00
trenches Correct new Chinese stringtable identifiers (#5334) 2017-07-10 16:47:26 +02:00
tripod Correct new Chinese stringtable identifiers (#5334) 2017-07-10 16:47:26 +02:00
ui Fix Chinese content & missing string (#5375) 2017-07-19 20:57:20 +02:00
vector Correct new Chinese stringtable identifiers (#5334) 2017-07-10 16:47:26 +02:00
vehiclelock Underwater actions support (#4984) 2017-08-22 13:30:56 -05:00
vehicles Underwater actions support (#4984) 2017-08-22 13:30:56 -05:00
viewdistance Fixed viewdistance error while controlling UAV (#5308) 2017-09-10 14:42:19 -05:00
weaponselect Correct new Chinese stringtable identifiers (#5334) 2017-07-10 16:47:26 +02:00
weather Correct new Chinese stringtable identifiers (#5334) 2017-07-10 16:47:26 +02:00
winddeflection Correct new Chinese stringtable identifiers (#5334) 2017-07-10 16:47:26 +02:00
yardage450 Correct new Chinese stringtable identifiers (#5334) 2017-07-10 16:47:26 +02:00
zeus Fix Chinese content & missing string (#5375) 2017-07-19 20:57:20 +02:00