// sample animation script // // // commands: // Animate // variables: // FgColor // BgColor // Position // Size // Blur (hud panels only) // TextColor (hud panels only) // Ammo2Color (hud panels only) // Alpha (hud weapon selection only) // SelectionAlpha (hud weapon selection only) // TextScan (hud weapon selection only) // // interpolator: // Linear // Accel - starts moving slow, ends fast // Deaccel - starts moving fast, ends slow // // RunEvent // starts another even running at the specified time // // StopEvent // stops another event that is current running at the specified time // // StopAnimation // stops all animations refering to the specified variable in the specified panel // // StopPanelAnimations // stops all active animations operating on the specified panel // // // Useful game console commands: // cl_Animationinfo or // displays all the animatable variables for the hud element // event HintMessageShow { // show the hints Animate HudHintDisplay Alpha "255" Linear 0.0 0.5 // flash text Animate HudHintDisplay FgColor "FgColor" Linear 0.0 0.01 Animate HudHintDisplay FgColor "255 220 0 255" Linear 0.5 0.2 Animate HudHintDisplay FgColor "FgColor" Linear 0.7 0.2 Animate HudHintDisplay FgColor "255 220 0 255" Linear 1.5 0.2 Animate HudHintDisplay FgColor "FgColor" Linear 1.7 0.2 // hide the panel after a while Animate HudHintDisplay Alpha "0" Linear 12.0 1.0 } event HintMessageHide { Animate HudHintDisplay Alpha "0" Linear 0.0 0.5 } event OpenWeaponSelectionMenu { StopEvent CloseWeaponSelectionMenu 0.0 StopEvent WeaponPickup 0.0 StopEvent FadeOutWeaponSelectionMenu 0.0 // make the display visible Animate HudWeaponSelection Alpha "100" Linear 0.0 0.3 Animate HudWeaponSelection SelectionAlpha "255" Linear 0.0 0.3 } event CloseWeaponSelectionMenu { // hide the whole thing near immediately Animate HudWeaponSelection Alpha "0" Linear 0.0 0.3 Animate HudWeaponSelection SelectionAlpha "0" Linear 0.0 0.3 } event FadeOutWeaponSelectionMenu { // slowly hide the whole thing Animate HudWeaponSelection Alpha "0" Linear 0.0 2.0 Animate HudWeaponSelection SelectionAlpha "0" Linear 0.0 2.0 } event DamageSmall { Animate HudDamageIndicator DmgFullscreenColor "200 200 200 40" Accel 0.02 0.1 Animate HudDamageIndicator DmgFullscreenColor "200 200 200 0" Deaccel 0.10 0.1 } event DamageMedium { Animate HudDamageIndicator DmgFullscreenColor "210 210 210 90" Accel 0.04 0.1 Animate HudDamageIndicator DmgFullscreenColor "210 210 210 0" Deaccel 0.20 0.1 } event DamageLarge { Animate HudDamageIndicator DmgFullscreenColor "240 240 240 120" Accel 0.04 0.1 Animate HudDamageIndicator DmgFullscreenColor "240 240 240 0" Deaccel 0.25 0.1 } event GESDeathFadeIn { StopEvent GESDeathFadeOut 0.0 Animate HudBloodScreen FullScreenDeathColor "0 0 0 255" Linear 2.5 2.0 Animate HudBloodScreen RespawnTextColor "0 255 0 255" Linear 4.0 1.0 Animate HudBloodScreen TipAlpha "0" Linear 0.0 0.01 Animate HudBloodScreen TipAlpha "255" Linear 4.0 1.0 } event GESDeathFadeOut { StopEvent GESDeathFadeIn 0.0 Animate HudBloodScreen FullScreenDeathColor "0 0 0 0" Accel 0.1 0.37 Animate HudBloodScreen RespawnTextColor "0 0 0 0" Linear 0.0 0.01 Animate HudBloodScreen TipAlpha "0" Linear 0.0 0.01 } event ShowStatusBar { StopEvent StatusBarFlash 0.0 Animate HudLifebars Alpha "255" Linear 0.0 0.01 } event HideStatusBar { StopEvent StatusBarFlash 0.0 StopEvent ShowStatusBar 0.0 Animate HudLifebars Alpha "0" Linear 0.0 0.01 } event StatusBarFlash { Animate HudLifebars Alpha "255" Linear 0.0 0.1 Animate HudLifebars Alpha "0" Linear 1.8 1.0 } event TeamplayScoreLeader { Animate GEHUDTeamScores TeamBlur "5" Linear 0.1 0.2 Animate GEHUDTeamScores TeamBlur "0" Deaccel 0.5 0.65 } event GameplayHudShow { StopEvent GameplayHudHide 0.0 Animate GEHUDGameplay HeightPercent "1.0" Deaccel 0.0 0.5 } event GameplayHudHide { StopEvent GameplayHudShow 0.0 Animate GEHUDGameplay HeightPercent "0" Linear 0.0 0.5 } event PopupHelpShow { StopPanelAnimations GEHUDPopupHelp 0.0 Animate GEHUDPopupHelp WidthPercent "1.0" Deaccel 0.0 0.5 } event PopupHelpHide { StopPanelAnimations GEHUDPopupHelp 0.0 Animate GEHUDPopupHelp WidthPercent "0" Linear 0.0 0.5 } event RoundTimeExpiring { Animate GERoundTimer FgColor "221 156 33 255" Linear 0.0 1.0 Animate GERoundTimer Blur "2" Linear 0.2 0.15 Animate GERoundTimer Blur "0" Deaccel 0.35 0.6 Animate GERoundTimer FgColor "RoundTimerNorm" Linear 1.0 1.0 } event RoundTimeCritical { Animate GERoundTimer FgColor "186 32 42 255" Linear 0.0 0.5 Animate GERoundTimer Blur "3" Linear 0.2 0.15 Animate GERoundTimer Blur "0" Deaccel 0.35 0.5 Animate GERoundTimer FgColor "RoundTimerNorm" Linear 0.5 0.5 } event RoundTimeDecreased { Animate GERoundTimer FgColor "180 80 20 255" Linear 0.0 0.5 Animate GERoundTimer Blur "1" Linear 0.2 0.15 Animate GERoundTimer Blur "0" Deaccel 0.35 0.5 Animate GERoundTimer FgColor "RoundTimerNorm" Linear 0.5 0.5 } event RoundTimeIncreased { Animate GERoundTimer FgColor "32 186 32 255" Linear 0.0 0.5 Animate GERoundTimer Blur "1" Linear 0.2 0.15 Animate GERoundTimer Blur "0" Deaccel 0.25 0.5 Animate GERoundTimer FgColor "RoundTimerNorm" Linear 0.5 0.5 }