Advertisement
Guest User

Untitled

a guest
Jul 20th, 2016
302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.04 KB | None | 0 0
  1.  
  2.  
  3. //yacrosshair
  4.  
  5. event DamagedPlayer
  6. {
  7. Animate Crosshair FgColor "Crosshair" Linear 0.0 0.00001
  8. Animate Crosshair FgColor "Crosshair" Linear 0.10 0.10001
  9. }
  10.  
  11. //===========================================
  12.  
  13. //Fog's Crosshair
  14.  
  15. event DamagedPlayer
  16. {
  17. Animate fogCrosshair FgColor "CrosshairDamage" Linear 0.0 0.00001
  18. Animate fogCrosshair FgColor "Crosshair" Linear 0.10 0.10001
  19.  
  20. // Set the second line ("255 255 255 255") to whatever color you have changed
  21. // your crosshair to be. So if you crosshair is green, the second line should
  22. // also have that same value.
  23. // "255 255 255 255" = White
  24. // "255 255 0 255" = Yellow
  25. // "145 225 25 255" = Green
  26. //
  27. //You can also look into the clientscheme.res file in /resource/,
  28. //there you can find various colors that are already defined for the HUD
  29. //such as "Green", "Red", "Gray" and so on
  30. //
  31. //
  32. }
  33.  
  34. //===========================================
  35.  
  36. //Health Bonus Pulse
  37. event HudHealthBonusPulse
  38. {
  39. Animate PlayerStatusHealthBonusImage Alpha "140" Linear 0.0 0.2
  40. Animate PlayerStatusHealthBonusImage Alpha "220" Linear 0.2 0.4
  41.  
  42. Animate PlayerStatusHealthValue FgColor "Positive" Accel 0.0 0.0
  43. Animate PlayerStatusHealthValueCam FgColor "Positive" Accel 0.0 0.0
  44. Animate PlayerStatusHealthValueSpec FgColor "Positive" Accel 0.0 0.0
  45. Animate PlayerStatusHealthValueTour FgColor "Positive" Accel 0.0 0.0
  46.  
  47. Animate HealthBG BgColor "Blank" Accel 0.0 0.0
  48. Animate HealthBG Alpha "255" Accel 0.0 0.3
  49. Animate HealthBG Alpha "255" Accel 0.3 0.6
  50. Animate TargetHPBG BgColor "Blank" Accel 0.0 0.0
  51. Animate TargetHPBG Alpha "255" Accel 0.0 0.3
  52. Animate TargetHPBG Alpha "255" Accel 0.3 0.6
  53. Animate SpecBG BgColor "DarkGray" Accel 0.0 0.0
  54. Animate SpecBG Alpha "255" Accel 0.0 0.3
  55. Animate SpecBG Alpha "255" Accel 0.3 0.6
  56.  
  57. RunEvent HudHealthBonusPulseLoop 0.6
  58. }
  59.  
  60. // call to loop HudHealthBonusPulse
  61. event HudHealthBonusPulseLoop
  62. {
  63. RunEvent HudHealthBonusPulse 0.0
  64. RunEvent PlayerStatusHealthValue 0.0
  65. RunEvent PlayerStatusHealthValueCam 0.0
  66. RunEvent PlayerStatusHealthValueSpec 0.0
  67. RunEvent PlayerStatusHealthValueTour 0.0
  68. }
  69.  
  70. event HudHealthBonusPulseStop
  71. {
  72. StopEvent HudHealthBonusPulse 0.0
  73. StopEvent HudHealthBonusPulseLoop 0.0
  74. StopEvent PlayerStatusHealthValue 0.0
  75. StopEvent PlayerStatusHealthValueCam 0.0
  76. StopEvent PlayerStatusHealthValueSpec 0.0
  77. StopEvent PlayerStatusHealthValueTour 0.0
  78.  
  79. Animate PlayerStatusHealthValue FgColor "Health" Accel 0.0 0.0
  80. Animate PlayerStatusHealthValueCam FgColor "Health" Accel 0.0 0.0
  81. Animate PlayerStatusHealthValueSpec FgColor "Health" Accel 0.0 0.0
  82. Animate PlayerStatusHealthValueTour FgColor "Health" Accel 0.0 0.0
  83.  
  84. Animate HealthBG BgColor "Blank" Accel 0.0 0.0
  85. Animate HealthBG Alpha "255" Accel 0.0 0.0
  86. Animate TargetHPBG BgColor "Blank" Accel 0.0 0.0
  87. Animate TargetHPBG Alpha "255" Accel 0.0 0.0
  88. Animate SpecBG BgColor "DarkGray" Accel 0.0 0.0
  89. Animate SpecBG Alpha "255" Accel 0.0 0.0
  90.  
  91. }
  92.  
  93. //===========================================
  94.  
  95. //Health Dying Pulse
  96. event HudHealthDyingPulse
  97. {
  98. Animate PlayerStatusHealthBonusImage Alpha "140" Linear 0.0 0.075
  99. Animate PlayerStatusHealthBonusImage Alpha "220" Linear 0.125 0.075
  100.  
  101. Animate PlayerStatusHealthValue FgColor "Negative" Accel 0.0 0.0
  102. Animate PlayerStatusHealthValueCam FgColor "Negative" Accel 0.0 0.0
  103. Animate PlayerStatusHealthValueSpec FgColor "Negative" Accel 0.0 0.0
  104. Animate PlayerStatusHealthValueTour FgColor "Negative" Accel 0.0 0.0
  105.  
  106. Animate HealthBG BgColor "Blank" Accel 0.0 0.0
  107. Animate HealthBG Alpha "255" Accel 0.0 0.3
  108. Animate HealthBG Alpha "255" Accel 0.3 0.6
  109. Animate TargetHPBG BgColor "Blank" Accel 0.0 0.0
  110. Animate TargetHPBG Alpha "255" Accel 0.0 0.3
  111. Animate TargetHPBG Alpha "255" Accel 0.3 0.6
  112. Animate SpecBG BgColor "DarkGray" Accel 0.0 0.0
  113. Animate SpecBG Alpha "255" Accel 0.0 0.3
  114. Animate SpecBG Alpha "255" Accel 0.3 0.6
  115.  
  116. RunEvent HudHealthDyingPulseLoop 0.6
  117. }
  118.  
  119. // call to loop HudHealthDyingPulse
  120. event HudHealthDyingPulseLoop
  121. {
  122. RunEvent HudHealthDyingPulse 0.0
  123. RunEvent PlayerStatusHealthValue 0.0
  124. RunEvent PlayerStatusHealthValueCam 0.0
  125. RunEvent PlayerStatusHealthValueSpec 0.0
  126. RunEvent PlayerStatusHealthValueTour 0.0
  127. }
  128.  
  129. event HudHealthDyingPulseStop
  130. {
  131. StopEvent HudHealthDyingPulse 0.0
  132. StopEvent HudHealthDyingPulseLoop 0.0
  133. StopEvent PlayerStatusHealthValue 0.0
  134. StopEvent PlayerStatusHealthValueCam 0.0
  135. StopEvent PlayerStatusHealthValueSpec 0.0
  136. StopEvent PlayerStatusHealthValueTour 0.0
  137.  
  138.  
  139. Animate PlayerStatusHealthValue FgColor "Health" Accel 0.0 0.0
  140. Animate PlayerStatusHealthValueCam FgColor "Health" Accel 0.0 0.0
  141. Animate PlayerStatusHealthValueSpec FgColor "Health" Accel 0.0 0.0
  142. Animate PlayerStatusHealthValueTour FgColor "Health" Accel 0.0 0.0
  143.  
  144. Animate HealthBG BgColor "Blank" Accel 0.0 0.0
  145. Animate HealthBG Alpha "255" Accel 0.0 0.0
  146. Animate TargetHPBG BgColor "Blank" Accel 0.0 0.0
  147. Animate TargetHPBG Alpha "255" Accel 0.0 0.0
  148. Animate SpecBG BgColor "DarkGray" Accel 0.0 0.0
  149. Animate SpecBG Alpha "255" Accel 0.0 0.0
  150.  
  151. }
  152.  
  153. //===========================================
  154.  
  155.  
  156. event HudLowAmmoPulse {RunEvent LowAmmoPulse 0}
  157. event LowAmmoPulse
  158. {
  159. Animate HudWeaponLowAmmoImage Alpha "255" Linear 0.0 0.075
  160. Animate HudWeaponLowAmmoImage Alpha "0" Linear 0.125 0.075
  161.  
  162. Animate AmmoInClip FgColor "AmmoLow" Accel 0.0 0.0
  163. Animate AmmoInReserve FgColor "AmmoReserve" Accel 0.0 0.0
  164. Animate AmmoNoClip FgColor "AmmoLow" Accel 0.0 0.0
  165.  
  166. Animate AmmoBG BgColor "Blank" linear 0.0 0.0
  167.  
  168. RunEvent HudLowAmmoPulseLoop 0.25
  169. }
  170.  
  171. event HudLowAmmoPulseLoop
  172. {
  173. RunEvent HudLowAmmoPulse 0.0
  174. }
  175.  
  176. event HudLowAmmoPulseStop
  177. {
  178. StopEvent LowAmmoPulse 0.0
  179. StopEvent HudLowAmmoPulseLoop 0.0
  180.  
  181. Animate AmmoInClip FgColor "Ammo" Accel 0.0 0.0
  182. Animate AmmoInReserve FgColor "AmmoReserve" Accel 0.0 0.0
  183. Animate AmmoNoClip FgColor "Ammo" Accel 0.0 0.0
  184.  
  185. Animate AmmoBG BgColor "Blank" linear 0.0 0.0
  186. }
  187.  
  188. //===========================================
  189.  
  190. //====================================
  191.  
  192. // Flash the medic charge hud when we have full charge
  193.  
  194. event HudMedicCharged
  195. {
  196. Animate MedicBG BgColor "Blank" linear 0.0 0.0
  197. Animate ChargeMeter FgColor "Uber" linear 0.0 0.0
  198. Animate ChargeLabel FgColor "Uber" linear 0.0 0.0
  199.  
  200. RunEvent HudMedicChargedLoop 0.6
  201. }
  202.  
  203. // call to loop HudHealthBonusPulse
  204. event HudMedicChargedLoop
  205. {
  206. RunEvent HudMedicCharged 0.0
  207. RunEvent ChargeLabel 0.0
  208. RunEvent ChargeMeter 0.0
  209. }
  210.  
  211. event HudMedicChargedStop
  212. {
  213. StopEvent HudMedicCharged 0.0
  214. StopEvent HudMedicChargedLoop 0.0
  215. StopEvent ChargeLabel 0.0
  216. StopEvent ChargeMeter 0.0
  217.  
  218. Animate MedicBG BgColor "Blank" linear 0.0 0.0
  219. Animate ChargeLabel FgColor "White" linear 0.0 0.0001
  220. Animate ChargeMeter FgColor "White" linear 0.0 0.0001
  221. }
  222.  
  223. //====================================
  224.  
  225. event ControlPointIconShrink
  226. {
  227. Animate HudControlPointIcons icon_expand "0" Linear 0.0 0.2
  228. }
  229.  
  230. event ControlPointIconGrow
  231. {
  232. Animate HudControlPointIcons icon_expand "4" Linear 0.0 0.2
  233. }
  234.  
  235. // Metal Account
  236.  
  237. //activecolor - instantly turn red, fade back to yellow
  238. event AccountMoneyRemoved
  239. {
  240. Animate HudAccount FgColor "HudIcon_Red" Linear 0.0 0.0001
  241. Animate HudAccount FgColor "OrangeDim" Accel 0.0 3.0
  242.  
  243. Animate HudAccount Ammo2Color "HudIcon_Red" Linear 0.0 0.0001
  244. Animate HudAccount Ammo2Color "0 0 0 0" Accel 0.0 3.0
  245. }
  246.  
  247. //activecolor - instantly turn green, fade back to yellow
  248. event AccountMoneyAdded
  249. {
  250. Animate HudAccount FgColor "HudIcon_Green" Linear 0.0 0.0001
  251. Animate HudAccount FgColor "OrangeDim" Accel 0.0 3.0
  252.  
  253. Animate HudAccount Ammo2Color "HudIcon_Green" Accel 0.0 0.0001
  254. Animate HudAccount Ammo2Color "0 0 0 0" Accel 0.0 3.0
  255. }
  256.  
  257. event AccountMoneyInvisible
  258. {
  259. Animate HudAccount FgColor "OrangeDim" Accel 0.0 0.0001
  260. Animate HudAccount Ammo2Color "0 0 0 0" Accel 0.0 0.0001
  261. }
  262.  
  263. //===========================================
  264.  
  265. event FlagOutlineHide
  266. {
  267. Animate OutlineImage Alpha "0" Linear 0.0 0.1
  268. }
  269.  
  270. // Local player flag pickup/drop
  271. event FlagOutline
  272. {
  273. RunEvent FlagOutlineHide 0.0
  274. Animate OutlineImage Alpha "150" Linear 0.1 0.2
  275.  
  276. Animate OutlineImage Position "c-80 300" Linear 0.1 0.2
  277. Animate OutlineImage Size "160 100" Linear 0.1 0.2
  278.  
  279. Animate OutlineImage Position "c-40 388" Linear 0.7 0.2
  280. Animate OutlineImage Size "80 50" Linear 0.7 0.2
  281.  
  282. Animate OutlineImage Alpha "0" Linear 0.9 0.1
  283. }
  284.  
  285. //===========================================
  286.  
  287. // Spy Disguise
  288. event HudSpyDisguiseChanged
  289. {
  290. Animate PlayerStatusSpyOutlineImage Alpha "255" Linear 0.0 0.2
  291.  
  292. Animate PlayerStatusSpyOutlineImage Position "c-200 c-200" Linear 0.0 0.2
  293. Animate PlayerStatusSpyOutlineImage Size "400 400" Linear 0.0 0.2
  294.  
  295. RunEvent HudSpyDisguiseHide 0.7
  296. }
  297.  
  298. event HudSpyDisguiseHide
  299. {
  300. Animate PlayerStatusSpyOutlineImage Position "3 413" Linear 0.0 0.2
  301. Animate PlayerStatusSpyOutlineImage Size "55 55" Linear 0.0 0.2
  302.  
  303. Animate PlayerStatusSpyOutlineImage Alpha "0" Linear 0.2 0.1
  304. }
  305.  
  306. event HudSpyDisguiseFadeIn
  307. {
  308. Animate PlayerStatusSpyImage Alpha "255" Linear 0.9 0.1
  309. Animate PlayerStatusClassImage Alpha "255" Linear 0.0 0.0
  310. }
  311.  
  312. event HudSpyDisguiseFadeOut
  313. {
  314. Animate PlayerStatusSpyImage Alpha "0" Linear 0.9 0.1
  315. Animate PlayerStatusClassImage Alpha "0" Linear 0.0 0.0
  316. }
  317.  
  318. //===========================================
  319.  
  320. // Show the Overtime panel
  321. event OvertimeShow
  322. {
  323. Animate OvertimeLabel Alpha "255" Linear 0.0 0.1
  324. Animate OvertimeBG Alpha "255" Linear 0.0 0.1
  325. }
  326.  
  327.  
  328. event HudSnapShotReminderIn
  329. {
  330. Animate ScreenshotPanel Position "c-83 -50" Linear 0.0 0.001
  331. Animate ScreenshotPanel Position "c-83 13" Spline 0.001 0.2
  332. }
  333.  
  334. event HudReplayReminderIn // Places the replay reminder in the same place as the snapshot reminder
  335. {
  336. Animate ReplayReminder Position "c-83 -50" Linear 0.0 0.001
  337. Animate ReplayReminder Position "c-83 13" Spline 0.001 0.2
  338. }
  339.  
  340. event HudReplayReminderIn2 // Puts the panel below the snapshot panel
  341. {
  342. Animate ReplayReminder Position "c-83 -50" Linear 0.0 0.001
  343. Animate ReplayReminder Position "c-83 53" Spline 0.001 0.2
  344. }
  345.  
  346. event HudReplayTipIn
  347. {
  348. Animate ReplayTip Position "10 -100" Linear 0.0 0.001
  349. Animate ReplayTip Position "10 6" Spline 0.001 0.1
  350. }
  351.  
  352. event HudReplayTipOut
  353. {
  354. Animate ReplayTip Position "10 6" Linear 0.0 0.001
  355. Animate ReplayTip Position "10 -100" Spline 0.001 0.1
  356. }
  357.  
  358. event HudTournamentSetupPanelOpen
  359. {
  360. Animate HudTournamentSetup Position "c-90 -70" Linear 0.0 0.001
  361. Animate HudTournamentSetup Position "c-90 47" Spline 0.001 0.2
  362. }
  363.  
  364. event HudTournamentSetupPanelClose
  365. {
  366. Animate HudTournamentSetup Position "c-90 47" Linear 0.0 0.001
  367. Animate HudTournamentSetup Position "c-90 -70" Spline 0.001 0.2
  368. }
  369.  
  370. event VideoCaptionFadeIn
  371. {
  372. Animate VideoCaption Alpha "255" Linear 0.0 0.1
  373. }
  374.  
  375. event VideoCaptionFadeOut
  376. {
  377. Animate VideoCaption Alpha "0" Linear 0.0 0.1
  378. }
  379.  
  380. event WinPanel_CompPos
  381. {
  382. Animate WinPanel ypos 0 Linear 0 0
  383. }
  384.  
  385. event WinPanel_NormalPos
  386. {
  387. Animate WinPanel ypos 0 Linear 0 0
  388. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement