Advertisement
Guest User

Untitled

a guest
Jul 9th, 2014
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.92 KB | None | 0 0
  1. // AUTHOR : Terox (terox_@hotmail.com) www.zeus-community.net
  2. // LAST Edited : 7/4/2013
  3. // MP MACHINE : Serverside
  4. // Called from : Zeu_ServerBriefing/init.sqf
  5. // Called using : []execVm
  6. // Time Called : Before Time 0
  7. // Description : Defines AI skills
  8. // (Temporary or permanent fix for the inability to define your precision and skill settings in the .ArmA3profile)
  9. // It also gives you more control over the entire skill settings for AI
  10. //
  11. // COMMENTS skill array elements as follows
  12. //
  13. // select 0: aimingspeed
  14. // select 1: aimingaccuracy
  15. // select 2: aimingshake
  16. // select 3: spotdistance
  17. // select 4: spottime
  18. // select 5: commanding
  19. // select 6: courage
  20. // select 7: endurance
  21. // select 8: reloadSpeed
  22. // select 9: general
  23. //
  24. // Value range is between 0 and 1
  25.  
  26.  
  27. _option = [3,3]; // 1st element selects the skill matrix option
  28. // 2nd element selects the randomisation matrix option
  29. // The randomisation is +/- from the core selected value
  30. // For example if you used the _option = [3,2] then the 0.45 core value will be randomised to a value between 0.35 and 0.55
  31.  
  32. _mode = 2; // 0: Addon module is disabled
  33. // 1: serverside only
  34. // 2: Server & Clientside
  35. // 3: Single player mode
  36.  
  37. _debug = FALSE; // This will output the skill settings to your server .rpt for debugging purposes
  38.  
  39.  
  40.  
  41. // The following is the core skill matrix
  42. _skill = switch(_option select 0)do
  43. {
  44. case 0: {[ 0.35, 0.2, 0.5, 1, 0.15, 1, 0.5, 0.5, 0.5, 1];};
  45. case 1: {[ 0.4, 0.25, 0.5, 1, 0.15, 1, 0.5, 0.6, 0.6, 1];};
  46. case 2: {[ 0.45, 0.3, 0.5, 1, 0.15, 1, 0.6, 0.6, 0.6, 1];};
  47. case 3: {[ 0.5, 0.34, 0.5, 1, 0.2, 1, 0.6, 0.6, 0.6, 1];};
  48. case 4: {[ 0.6, 0.4, 0.5, 1, 0.3, 1, 0.6, 0.7, 0.7, 1];};
  49. case 5: {[ 0.65, 0.45, 0.5, 1, 0.35, 1, 0.6, 0.7, 0.7, 1];};
  50. case 6: {[ 0.6, 0.5, 0.5, 1, 0.4, 1, 0.7, 0.8, 0.8, 1];};
  51. case 7: {[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];};
  52. default {[ 0.5, 0.34, 0.5, 1, 0.2, 1, 0.6, 0.6, 0.6, 1];};
  53. };
  54.  
  55. // The following is the randomisation skill matrix
  56. _rnd = switch(_option select 1)do
  57. {
  58. case 0:{[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ];}; // use this option if you do not want randomisation
  59. case 1:{[ 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0 ];};
  60. case 2:{[ 0.03, 0.03, 0.03, 0.03, 0.03, 0.03, 0.03, 0.03, 0.03, 0 ];};
  61. case 3:{[ 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0 ];};
  62. case 4:{[ 0.08, 0.08, 0.08, 0.08, 0.08, 0.08, 0.08, 0.08, 0.08, 0 ];};
  63. case 5:{[ 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 0 ];};
  64. default{[ 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0 ];};
  65. };
  66.  
  67. // return
  68. [_skill,_rnd,_mode,_debug];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement