This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!

Support Radio Readme

By: _neo_ on Dec 26th, 2011  |  syntax: None  |  size: 8.54 KB  |  views: 111  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. =========================================================================================================================================================================================
  2. Name:           Support Radio
  3. Developer:      _neo_
  4. Version:        1.00
  5. Credits:        Deto for the logo image, Osmo, Mr Ben, Outlander, Igmmig and all other Tour members for the great ideas, suggestions, feedback and testing
  6.  
  7. =========================================================================================================================================================================================
  8. Changelogs:
  9.  
  10. v1.00
  11. - First Public Release
  12.  
  13. v1.00 RC
  14. - Fixed: EmptyH not used anymore on Land task
  15. - Removed: Coordinates on chat (BIS_fnc_posToGrid bugged for OA islands)
  16. - Optimized: Interface loading is now much more efficient and faster
  17. - Added: Possibility to change FlyInHeight/SpeedMode/Roe on-the-fly in Transport support
  18. - Added: Unit List box now shows Unit icon
  19. - Added: Player can now "Talk to Artillery Crew" when near arty guns and control that arty group, does not need itemRadio/itemGps to do so
  20. - Fixed: Talk with Pilot non functional when one or more choppers were combat inefective
  21. - Fixed: Arty D30 units were not working for all factions
  22. - Fixed: When player opens interface in-game GPS is hidden
  23. - Fixed: If more then one unit needs player interaction, interface goes directly to the last unit in list instead of main menu
  24. - Fixed: Operation Arrowhead Arty vehicles were not compatible
  25. - Changed: Arty rounds are now 1, 2, 3, 6, 12, 24
  26. - Changed: ItemRadio and ItemGps are now required to use the Support Radio instead of just ItemRadio
  27. - Removed: OnPlayerDisconnected function because it is not stackable
  28.  
  29. v0.9 RC
  30. - Fixed: Hint interface text size and position for bigger interface sizes
  31. - Added: Notes
  32. - Added: If one support unit is waiting for player interface, when dialog is opened it goes to that unit
  33. - Added: Functions to Add/Remove supports on the fly - (NEO_fnc_radioSupportAdd / NEO_fnc_radioSupportRemove)
  34. - Changed: Support Radio can now be used at same time by multiple players of same side
  35. - Changed: Transport High FlyInHeight is now 500m intead of 150m
  36. - Optimized: Transport precision of Land Tasks sorted by - Near Helipad (< 50) >> Position is safe >> Near Helipad (< 100) >> Near safe position within 250m >> Use clicked position if all else fails
  37.  
  38. v0.8
  39. - Added: Arty batteries keeps asking for move confirmation if no answer from players
  40. - Added: Transport units keeps asking for smoke/smoke confirmation if no answer from players
  41. - Added: New Transport Task "land (eng off)", very similar to "land" task with the difference that unit will shutdown his engine
  42. - Added: Action "Talk with pilot" when inside a Transport unit where player can access directly and only that chopper (Does not need ItemRadio)
  43. - Added: To be able to use radio player no longer needs to be a leader but needs a ItemRadio in his gear
  44. - Added: Physical Radio now appears when a player is using Support Radio (if not inside a vehicle)
  45. - Added: Hint interface for special interactions
  46. - Changed: If only one unit within a support type interface goes directly there
  47. - Changed: If only one support type available interface goes directly there
  48. - Fixed: Arty Ammo System not considering unit out of ammo when it should
  49. - Fixed: Arty Ammo System not registering the ammo used correctly
  50. - Fixed: Possibility for transport to take off right after landing in pickup task
  51.  
  52. v0.7
  53. - Added: Arty Ammunition System
  54. - Added: Arty mobile units can be sent back to base while moving into range of target
  55. - Added: Code is now supported as parameter for each support unit/s
  56. - Optimized: Arty interface optimizations and tweaks
  57.  
  58. v0.6
  59. - Added: Artillery Support
  60. - Fixed: Transport units did not re-arm when at base
  61. - Fixed: Support Radio action not showing up after respawn
  62. - Fixed: GroupId not being broadcasted over the network
  63. - Improved: UI does not close anymore when confirming something
  64. - Improved: UI now refreshes at the last main support selected instead of "home page"
  65.  
  66. v0.5 HotFix
  67. - New: Interface is re-initialized after asking for a support instead of closing
  68. - Fixed: Bug introduced in v0.5 related to re-initialization of interface after support being asked (Reported by Outlander)
  69. - Fixed: Text resource had the debug activated after v0.5
  70.  
  71. v0.5
  72. - Changed: There is no delay between player issuing a task mission and unit starting to move like before until I find a better/more reliable solution
  73. - Fixed: Player group side does not show up anymore in chat between player and units (Reported by Mr. Ben)
  74. - Fixed: Possibility for CAS plane to become unresponsive to new task when sent to RTB before being airborn
  75. - Fixed: Flying Altitude text not showing correctly with bigger Interface Size
  76.  
  77. =========================================================================================================================================================================================
  78. Intallation:
  79. - Copy the folder "scripts" to your mission root folder
  80. - In the "description.ext" (create one if you don't have it) paste:
  81.  
  82.         #include "scripts\NEO_radio\hpp\main.hpp"
  83.        
  84.         class RscTitles
  85.         {                                                                              
  86.                 #include "scripts\NEO_radio\hpp\titles.hpp"
  87.         };
  88.  
  89. - In your "init.sqf" file (create one if you don't have it) is where you'll execute the Support Radio, and the passed array MUST have the following structure:
  90.  
  91. [
  92.         NEO_coreLogic,                                                                                                                  //GAME LOGIC (CAN BE FUNCTIONS MODULE)
  93.         [
  94.                 WEST,                                                                                                                           //WEST SIDE SUPPORTS
  95.                 [                                                                                                                                       //TRANSPORT ARRAY MUST COME FIRST, EMPTY ARRAY IF NO TRANSPORT UNIT TO BE ADDED TO SIDE
  96.                         [                                                                                                                               //Transport Unit 1
  97.                                 getMarkerPos "NEO_mkr_transport_00",                                            //Spawn position
  98.                                 270,                                                                                                            //Spawn direction
  99.                                 "BAF_Merlin_HC3_D",                                                                                     //Class Name of Helicopter
  100.                                 "Eagle-One",                                                                                            //Unit Callsign
  101.                                 ["pickup", "land", "land (eng off)", "move", "circle"],         //Unit available tasks
  102.                                 {}                                                                                                                      //Code to execute, you can access in _this variable [_chopper, _grp, _crew]
  103.                         ],
  104.                         [                                                                                                                               //Transport Unit 2
  105.                                 getMarkerPos "NEO_mkr_transport_00",                                            //Spawn position
  106.                                 270,                                                                                                            //Spawn direction
  107.                                 "BAF_Merlin_HC3_D",                                                                                     //Class Name of Helicopter
  108.                                 "Eagle-One",                                                                                            //Unit Callsign
  109.                                 ["pickup", "land"],                                                                             //Unit available tasks
  110.                                 {}                                                                                                                      //Code to execute, you can access in _this variable [_chopper, _grp, _crew]
  111.                         ]
  112.                 ],
  113.                 [                                                                                                                                       //CAS ARRAY MUST COME IN SECOND, USE EMPTY ARRAY IF NO CAS UNITS SHOULD BE ADDED TO SIDE
  114.                         [                                                                                                                               //CAS Unit 1
  115.                                 getMarkerPos "NEO_mkr_cas_00",                                                          //Spawn position
  116.                                 270,                                                                                                            //Spawn direction
  117.                                 "AH64D",                                                                                                        //Class Name of Aircraft (Plane or Chopper)
  118.                                 "Falcon-One",                                                                                           //Unit Callsign
  119.                                 0,                                                                                                                      //Airport ID - ONLY needed for Planes, if chopper can be any number
  120.                                 {}                                                                                                                      //Code to execute, you can access in _this variable [_aircraft, _grp, _crew]
  121.                         ],
  122.                         [
  123.                                 cas 2......
  124.                         ]
  125.                 ],
  126.                 [                                                                                                                                       //ARTY ARRAY MUST COME IN THIRD, USE EMPTY ARRAY IF NO ARTY UNITS SHOULD BE ADDED TO SIDE
  127.                         [                                                                                                                               //ARTY Battery 1
  128.                                 getMarkerPos "NEO_mkr_arty_00",                                                         //Spawn Position
  129.                                 "MLRS",                                                                                                         //Vehicle Class name
  130.                                 "MLRS FATMAN",                                                                                          //Callsign
  131.                                 2,                                                                                                                      //Number of weapons in the battery group
  132.                                 [["HE", 30]],                                                                                           //Available Rounds/Ammo (Will be checked later if matches the currect vehicle type of ammo)
  133.                                 {}                                                                                                                      //Code to execute, you can access in _this variable [_battery(gamelogic), _grp, _vehicles, _crew]
  134.                         ]
  135.                 ]
  136.         ],
  137.         [
  138.                 EAST,                                                                                                                           //EAST SIDE SUPPORTS
  139.                 etc........
  140.         ];
  141. ] execVM "scripts\NEO_radio\init.sqf";
  142.  
  143. ==========================
  144. //Functions
  145. ==========================
  146. //Add support
  147. [
  148.         WEST,
  149.         "TRANSPORT",
  150.         [
  151.                 getMarkerPos "NEO_mkr_transport_00",                                                            //Spawn position
  152.                 270,                                                                                                                            //Spawn direction
  153.                 "BAF_Merlin_HC3_D",                                                                                                     //Class Name of Helicopter
  154.                 "Eagle-One",                                                                                                            //Unit Callsign
  155.                 ["pickup", "land", "land (eng off)", "move", "circle"],                         //Unit available tasks                         
  156.                 {}                                                                                                                                      //Code to execute, you can access in _this variable [_chopper, _grp, _crew]
  157.         ]
  158. ] call NEO_fnc_radioSupportAdd;
  159.  
  160. //Remove Support
  161. [
  162.         WEST,
  163.         "TRANSPORT",
  164.         "Eagle-One"
  165. ] call NEO_fnc_radioSupportRemove;
  166.  
  167. =========================================================================================================================================================================================
clone this paste RAW Paste Data