Advertisement
Guest User

damageLog.xc

a guest
Jan 26th, 2017
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.23 KB | None | 0 0
  1.  
  2. /**
  3. * Macros used in damageLog:
  4. * Макросы используемые в damageLog:
  5.  
  6. {{number}} - line number
  7.  
  8. {{dmg}} - received damage
  9. {{dmg-ratio}} - received damage in percent
  10. {{hit-effects}} - kind of hit
  11. {{dmg-kind}} - received damage kind (attack, fire, ramming, ...)
  12. {{team-dmg}} - source of damage (ally , enemy, self damage)
  13. {{c:hit-effects}} - color depending on hit kind (with damage, ricochet, no penetration, no damage)
  14. {{c:dmg-kind}} - color depending on received damage kind
  15. {{c:team-dmg}} - color depending on damage source (ally , enemy, self)
  16.  
  17. {{critical-hit}} - critical hit
  18. {{splash-hit}} - text when hit by splash damage from shell (HE/HESH)
  19. {{comp-name}} - name part of vehicle that was hit (turret, body, suspension, gun)
  20. {{fire-duration}} - duration of fire ("groupDamagesFromFire" must be enabled to work)
  21.  
  22. {{type-shell}} - shell kind
  23. {{costShell}} - text depending on shell cost (gold, credits)
  24. {{c:type-shell}} - color depending on shell kind
  25. {{c:costShell}} - color depending on shell cost (gold, credits)
  26.  
  27. {{vtype}} - vehicle type
  28. {{vehicle}} - vehicle name
  29. {{level}} - vehicle level
  30. {{nation}} - vehicle nation
  31. {{diff-masses}} - vehicles weights difference during collision
  32. {{c:vtype}} - color depending on vehicle type
  33.  
  34. {{reloadGun}} - reloading time of a gun
  35. {{gun-caliber}} - caliber of a gun
  36.  
  37. {{name}} - nickname player who caused the damage
  38. {{clan}} - clan name with brackets (empty if no clan)
  39. {{clannb}} - clan name without brackets
  40. {{clanicon}} - macro with clan embed image path value
  41. {{squad-num}} - number of squad (1,2,...), empty if not in squad
  42.  
  43. {{my-alive}} - value 'alive' if my vehicle is alive, '' for dead
  44.  
  45. {{wn8}}, {{xwn8}}, {{eff}}, {{xeff}}, {{wgr}}, {{xwgr}}, {{xte}}
  46. {{c:wn8}}, {{c:xwn8}}, {{c:eff}}, {{c:xeff}}, {{c:wgr}}, {{c:xwgr}}, {{c:xte}}
  47. */
  48.  
  49.  
  50. {
  51. "damageLog": {
  52. "disabledDetailStats": true, // true - disable standard detailed damage.
  53. "disabledSummaryStats": true, // true - disable standard summarized damage.
  54. "saveLocationInBattle": false, // true - remember the location of the log in combat.
  55.  
  56. "log": {
  57. "dmg-kind": { // Received damage kind (macro {{dmg-kind}}).
  58. "shot": "<font color='{{c:costShell}}'>{{type-shell}}</font>",
  59. "fire": "<font face='xvm'>&#x51;</font>",
  60. "ramming": "<font face='xvm'>&#x52;</font>",
  61. "world_collision": "<font face='xvm'>&#x53;</font>",
  62. "drowning": "Dr",
  63. "overturn": "<font face='xvm'>&#x112;</font>",
  64. "death_zone": "DZ",
  65. "gas_attack": "GA",
  66. "art_attack": "<font face='xvm'>&#x110;</font>",
  67. "air_strike": "<font face='xvm'>&#x111;</font>"
  68. },
  69. "c:dmg-kind": { // Color depending on received damage kind (macro {{c:dmg-kind}}).
  70. "shot": "{{c:hit-effects}}",
  71. "fire": "#FF6655", // red
  72. "ramming": "#998855", // brown
  73. "world_collision": "#99FF5C", // green
  74. "drowning": "#CCCCCC",
  75. "overturn": "#CCCCCC",
  76. "death_zone": "#CCCCCC",
  77. "gas_attack": "#CCCCCC",
  78. "art_attack": "{{c:hit-effects}}",
  79. "air_strike": "{{c:hit-effects}}"
  80. },
  81. "splash-hit":{
  82. "splash": "<font face='xvm'>&#x2C;</font>",
  83. "no-splash": ""
  84. },
  85. "type-shell": { // Shell kind (macro {{type-shell}}).
  86. "armor_piercing": "AP", // "{{l10n:armor_piercing}}"
  87. "high_explosive": "HE", // "{{l10n:high_explosive}}"
  88. "armor_piercing_cr": "APCR", // "{{l10n:armor_piercing_cr}}"
  89. "armor_piercing_he": "HESH", // "{{l10n:armor_piercing_he}}" Not HESH, but not sure what it is. http://www.koreanrandom.com/forum/topic/35259-damagelog-issues-build-6602/
  90. "hollow_charge": "HEAT", // "{{l10n:hollow_charge}}"
  91. "not_shell": ""
  92. },
  93. "c:type-shell": { // NOT USED // Color depending on shell kind (macro {{type-shell}}).
  94. "armor_piercing": "#CCCCCC", // armor piercing
  95. "high_explosive": "#CCCCCC", // high explosive
  96. "armor_piercing_cr": "#CCCCCC", // armor piercing composite rigid
  97. "armor_piercing_he": "#CCCCCC", // armor piercing high explosive
  98. "hollow_charge": "#CCCCCC", // high explosive anti-tank
  99. "not_shell": "#CCCCCC" // another source of damage
  100. },
  101. "vtype": { // Vehicle type (macro {{vtype}}).
  102. "mediumTank": "<font face='xvm'>&#x3B;</font>",
  103. "lightTank": "<font face='xvm'>&#x3A;</font>",
  104. "heavyTank": "<font face='xvm'>&#x3F;</font>",
  105. "AT-SPG": "<font face='xvm'>&#x2E;</font>",
  106. "SPG": "<font face='xvm'>&#x2D;</font>",
  107. "not_vehicle": ""
  108. },
  109. "c:vtype":{ // Color depending on vehicle type (macro {{c:vtype}}).
  110. "mediumTank": "#CCCCCC", // Default #FFF198
  111. "lightTank": "#CCCCCC", // Default #A2FF9A
  112. "heavyTank": "#CCCCCC", // Default #FFACAC
  113. "AT-SPG": "#CCCCCC", // Default #A0CFFF
  114. "SPG": "#CCCCCC", // Default #EFAEFF
  115. "not_vehicle": "#CCCCCC"
  116. },
  117. "hit-effects": { // Kind of hit
  118. "armor_pierced": "{{dmg}}",
  119. "intermediate_ricochet": "---", // "{{l10n:intermediate_ricochet}}" -> "ricochet"
  120. "final_ricochet": "---", // "{{l10n:final_ricochet}}" -> "ricochet"
  121. "armor_not_pierced": "---", // "{{l10n:armor_not_pierced}}" -> "bounce"
  122. "armor_pierced_no_damage": "---", // "{{l10n:armor_pierced_no_damage}}" -> "blocked"
  123. "unknown": "{{l10n:armor_pierced_no_damage}}"
  124. },
  125. "c:hit-effects": { // Color depending on hit kind (with damage, ricochet, no penetration, no damage) (macro {{c:hit-effects}}).
  126. "armor_pierced": "#CCCCCC", // Default #FF4D3C
  127. "intermediate_ricochet": "#CCCCCC",
  128. "final_ricochet": "#CCCCCC",
  129. "armor_not_pierced": "#CCCCCC",
  130. "armor_pierced_no_damage": "#CCCCCC",
  131. "unknown": "#CCCCCC"
  132. },
  133. "critical-hit":{ // Designation of critical hits (macro {{critical-hit}}).
  134. "critical": "*",
  135. "no-critical": ""
  136. },
  137. "comp-name":{ // NOT USED // Name part of vehicle (macro {{comp-name}}).
  138. "turret": "{{l10n:turret}}",
  139. "hull": "{{l10n:hull}}",
  140. "chassis": "{{l10n:chassis}}",
  141. "gun": "{{l10n:gun}}",
  142. "unknown": ""
  143. },
  144. "team-dmg":{ // NOT USED // Source of damage (ally , enemy, self damage) (macro {{team-dmg}}).
  145. "ally-dmg": "",
  146. "enemy-dmg": "",
  147. "player": "",
  148. "unknown": ""
  149. },
  150. "c:team-dmg":{ // Color depending on damage source (ally , enemy) (macro {{c:team-dmg}}).
  151. "ally-dmg": "#00EAFF", // Blue
  152. "enemy-dmg": "#CCCCCC",
  153. "player": "#99FF5C", // green
  154. "unknown": "#CCCCCC"
  155. },
  156. "costShell":{ // NOT USED // Text depending on shell cost (gold, credits) (macro {{costShell}}).
  157. "gold-shell": "",
  158. "silver-shell": "",
  159. "unknown": ""
  160. },
  161. "c:costShell":{ // Color depending on shell cost (gold, credits) (macro {{c:costShell}}).
  162. "gold-shell": "#FFCC66",
  163. "silver-shell": "#CCCCCC",
  164. "unknown": ""
  165. },
  166. "showHitNoDamage": true, // true - show hits without damage in log
  167. "groupDamagesFromFire": true, // true - to summarize damage from the fire.
  168. "groupDamagesFromRamming_WorldCollision": true, // true - to summarize the damage by ramming, collisions with objects, falling. Damage summarized, if applied more than once a second.
  169. "formatHistory": "<textformat tabstops='[25,75,120,130,215]'><font size='13'>{{number%3d~.}}</font><tab><font color='{{c:dmg-kind}}'>{{hit-effects}}{{critical-hit}}{{splash-hit}}</font><tab>{{dmg-kind}}<tab><font color='{{c:vtype}}'>{{vtype}}</font><tab><font color='{{c:team-dmg}}'>{{vehicle}}</font></textformat>"
  170. // tabstops are - damage / shell type / tank icon / tank name
  171. },
  172. "logBackground": {
  173. "$ref": { "path":"damageLog.log" },
  174. "formatHistory": "<img height='18' width='310' src='xvm://res/icons/damageLog/{{dmg=0?no_dmg|dmg}}.png'>"
  175. },
  176.  
  177. "logAlt": {
  178. "$ref": { "path":"damageLog.log" },
  179. "showHitNoDamage": true,
  180. "formatHistory": "<textformat tabstops='[25,75,120,130,215]'><font size='13'>{{number%3d~.}}</font><tab><font color='{{c:dmg-kind}}'>{{hit-effects}}{{critical-hit}}{{splash-hit}}</font><tab>{{dmg-kind}}<tab><font color='{{c:vtype}}'>{{vtype}}</font><tab><font color='{{c:team-dmg}}'>{{vehicle}}</font><tab><font color='{{c:team-dmg}}'>{{name}}</font></textformat>"
  181. // tabstops are - damage / shell type / tank icon / tank name / player name
  182. },
  183. "logAltBackground": {
  184. "$ref": { "path":"damageLog.logAlt" },
  185. "formatHistory": "<img height='18' width='310' src='xvm://res/icons/damageLog/{{dmg=0?no_dmg|dmg}}.png'>"
  186. },
  187.  
  188. "lastHit": {
  189. "$ref": { "path":"damageLog.log" },
  190. "c:costShell":{ // Color depending on shell kind (gold, credits) (macro {{c:costShell}}).
  191. "gold-shell": "#FFCC66",
  192. "silver-shell": "#FF7163"
  193. },
  194. "showHitNoDamage": true, // true - show hits without damage
  195. "timeDisplayLastHit": 7, // Display time of last attack (seconds).
  196. "formatLastHit": "<font size='24' color='{{c:costShell}}'>{{hit-effects}}{{critical-hit}}{{splash-hit}}</font><br><font size='16' color='{{c:team-dmg}}'>{{vehicle}}</font>" // Last damage format.
  197. }
  198.  
  199. }
  200. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement