|
|
|
|
|
|
*BAD-BOYS*
*BAD-BOYS* Explorateurs
*BAD-BOYS* V.I.P
|
|
|
|
Deplace le Radar | Tuto publié par Cleaner, le 2005-12-08
Voici le code des 2 fichiers :
a placer dans : counter-strike sourcecstrikescripts HudLayout.res
Code: |
"Resource/HudLayout.res" { HudHealth { "fieldName" "HudHealth" "xpos" "16" "ypos" "443" "wide" "640" "tall" "480" "visible" "1" "enabled" "1"
"PaintBackgroundType" "2" "icon_xpos" "0" "icon_ypos" "0" "digit_xpos" "23" "digit_ypos" "3"
"LowHealthColor" "HudMinHealthColor" }
TargetID { "fieldName" "TargetID" "visible" "1" "enabled" "1" "wide" "640" "tall" "480" }
HudArmor { "fieldName" "HudArmor" "xpos" "15" "ypos" "426" "wide" "640" "tall" "480" "visible" "1" "enabled" "1"
"PaintBackgroundType" "2" "icon_xpos" "0" "icon_ypos" "0" "digit_xpos" "24" "digit_ypos" "-1" } HudSuit { "fieldName" "HudSuit" "xpos" "140" "ypos" "432" "wide" "108" "tall" "36" "visible" "1" "enabled" "1"
"PaintBackgroundType" "2"
"text_xpos" "8" "text_ypos" "20" "digit_xpos" "50" "digit_ypos" "2" }
HudProgressBar { "fieldName" "HudProgressBar" "xpos" "c-133" "ypos" "333" "wide" "308" "tall" "8" "visible" "1" "enabled" "1"
"BorderThickness" "1"
"PaintBackgroundType" "2" }
HudRoundTimer { "fieldName" "HudRoundTimer" "xpos" "c-228" "ypos" "447" "wide" "640" "tall" "480" "visible" "1" "enabled" "1" "PaintBackgroundType" "2"
"FlashColor" "TimerFlash"
"icon_xpos" "0" "icon_ypos" "0" "digit_xpos" "18" "digit_ypos" "1" }
HudAccount { "fieldName" "HudAccount" "xpos" "r102" "ypos" "377" "wide" "640" "tall" "480" "visible" "1" "enabled" "1"
"PaintBackgroundType" "2"
"icon_xpos" "0" "icon_ypos" "34" "digit_xpos" "81" "digit_ypos" "36" "icon2_xpos" "0" "icon2_ypos" "0" "digit2_xpos" "81" "digit2_ypos" "2" }
HudShoppingCart { "fieldName" "HudShoppingCart" "xpos" "238" "ypos" "410" "wide" "640" "tall" "480" "visible" "1" "enabled" "1"
"PaintBackgroundType" "2" "IconColor" "HudShopColor"
}
HudC4 { "fieldName" "HudC4" "xpos" "425" "ypos" "412" "wide" "640" "tall" "480" "visible" "1" "enabled" "1"
"PaintBackgroundType" "2" "IconColor" "C4Color" "FlashColor" "C4FlashColor"
}
HudDefuser { "fieldName" "HudDefuser" "xpos" "16" "ypos" "249" "wide" "640" "tall" "480" "visible" "1" "enabled" "1"
"PaintBackgroundType" "2"
"IconColor" "DefuseColor"
}
HudHostageRescueZone { "fieldName" "HudHostageRescueZone" "xpos" "16" "ypos" "249" "wide" "640" "tall" "480" "visible" "1" "enabled" "1"
"PaintBackgroundType" "2" "IconColor" "HostagesColor" "FlashColor" "HudIcon_Red" }
HudScenarioIcon { "fieldName" "HudScenarioIcon" "xpos" "c109" "ypos" "444" "wide" "640" "tall" "480" "visible" "1" "enabled" "1"
"PaintBackgroundType" "2"
"IconColor" "ScenarioColor" }
HudAmmo { "fieldName" "HudAmmo" "xpos" "r150" "ypos" "443" "wide" "640" "tall" "480" "visible" "1" "enabled" "1"
"PaintBackgroundType" "2"
"digit_xpos" "0" "digit_ypos" "2" "digit2_xpos" "55" "digit2_ypos" "2" "bar_xpos" "46" "bar_ypos" "7" "bar_height" "20" "bar_width" "2"
"icon_xpos" "103" "icon_ypos" "8" } HudFlashlight { "fieldName" "HudFlashlight" "visible" "1" "enabled" "1" "xpos" "16" "ypos" "370" "wide" "102" "tall" "20" "text_xpos" "8" "text_ypos" "6" "TextColor" "255 170 0 220"
"PaintBackgroundType" "2" } HudDamageIndicator { "fieldName" "HudDamageIndicator" "visible" "1" "enabled" "1" "DmgColorLeft" "255 0 0 0" "DmgColorRight" "255 0 0 0" "dmg_xpos" "30" "dmg_ypos" "100" "dmg_wide" "36" "dmg_tall1" "240" "dmg_tall2" "200" }
HudZoom { "fieldName" "HudZoom" "visible" "1" "enabled" "1" "Circle1Radius" "66" "Circle2Radius" "74" "DashGap" "16" "DashHeight" "4" "BorderThickness" "88" }
HudWeaponSelection { "fieldName" "HudWeaponSelection" "xpos" "r640" "wide" "640" "ypos" "16" "visible" "1" "enabled" "1" "SmallBoxSize" "60" "LargeBoxWide" "108" "LargeBoxTall" "80" "BoxGap" "8" "SelectionNumberXPos" "4" "SelectionNumberYPos" "4" "SelectionGrowTime" "0.4" "IconXPos" "8" "IconYPos" "0" "TextYPos" "68" "TextColor" "SelectionTextFg" "MaxSlots" "5" "PlaySelectSounds" "0" }
HudCrosshair { "fieldName" "HudCrosshair" "visible" "1" "enabled" "1" "wide" "640" "tall" "480" }
HudDeathNotice { "fieldName" "HudDeathNotice" "visible" "1" "enabled" "1" "xpos" "r640" "ypos" "12" "wide" "640" "tall" "480"
"MaxDeathNotices" "4" "LineHeight" "22" "RightJustify" "1" // If 1, draw notices from the right "TextFont" "Default" "CTTextColor" "CTColor" "TerroristTextColor" "TerroColor" }
HudVehicle { "fieldName" "HudVehicle" "visible" "1" "enabled" "1" "wide" "640" "tall" "480" }
CVProfPanel { "fieldName" "CVProfPanel" "visible" "1" "enabled" "1" "wide" "640" "tall" "480" }
ScorePanel { "fieldName" "ScorePanel" "visible" "1" "enabled" "1" "wide" "640" "tall" "480" }
HudTrain { "fieldName" "HudTrain" "visible" "1" "enabled" "1" "wide" "640" "tall" "480" }
HudMOTD { "fieldName" "HudMOTD" "visible" "1" "enabled" "1" "wide" "640" "tall" "480" }
HudMessage { "fieldName" "HudMessage" "visible" "1" "enabled" "1" "wide" "640" "tall" "480" }
HudMenu { "fieldName" "HudMenu" "visible" "1" "enabled" "1" "wide" "640" "tall" "480" "zpos" "1"
"TextFont" "Default" "ItemFont" "Default" "ItemFontPulsing" "Default"
}
HudCloseCaption { "fieldName" "HudCloseCaption" "visible" "1" "enabled" "1" "wide" "640" "tall" "480" }
HudChat { "fieldName" "HudChat" "visible" "1" "enabled" "1" "xpos" "10" "ypos" "300" "wide" "400" "tall" "100" }
HudHistoryResource { "fieldName" "HudHistoryResource" "visible" "1" "enabled" "1" "xpos" "r640" "wide" "640" "tall" "330" "history_gap" "55" }
HudGeiger { "fieldName" "HudGeiger" "visible" "1" "enabled" "1" "wide" "640" "tall" "480" }
HUDQuickInfo { "fieldName" "HUDQuickInfo" "visible" "1" "enabled" "1" "wide" "640" "tall" "480" }
HudWeapon { "fieldName" "HudWeapon" "visible" "1" "enabled" "1" "wide" "640" "tall" "480" } HudAnimationInfo { "fieldName" "HudAnimationInfo" "visible" "1" "enabled" "1" "wide" "640" "tall" "480" } CBudgetPanel { "fieldName" "CBudgetPanel" "visible" "1" "enabled" "1" "wide" "640" "tall" "480" } CTextureBudgetPanel { "fieldName" "CTextureBudgetPanel" "visible" "1" "enabled" "1" "wide" "640" "tall" "480" }
HudPredictionDump { "fieldName" "HudPredictionDump" "visible" "1" "enabled" "1" "wide" "640" "tall" "480" }
HudRadar { "fieldName" "HudRadar" "visible" "1" "enabled" "1" "xpos" "296" "ypos" "376" "wide" "94" "tall" "94" }
HudLocation { "fieldName" "HudLocation" "visible" "1" "enabled" "1" "xpos" "293" "ypos" "369" "wide" "96" "tall" "16" "textAlignment" "north" }
HudScope { "fieldName" "HudZoom" "visible" "1" "enabled" "1" "wide" "640" "tall" "480" }
HudVoiceSelfStatus { "fieldName" "HudVoiceSelfStatus" "visible" "1" "enabled" "1" "xpos" "r34" "ypos" "355" "wide" "24" "tall" "24" }
HudVoiceStatus { "fieldName" "HudVoiceStatus" "visible" "1" "enabled" "1" "xpos" "r130" "ypos" "0" "wide" "150" "tall" "400"
"item_tall" "16" "item_wide" "120"
"item_spacing" "2"
"icon_ypos" "0" "icon_xpos" "0" "icon_tall" "16" "icon_wide" "16"
"text_xpos" "18" }
HudFlashbang { } HudHintDisplay { "fieldName" "HudHintDisplay" "visible" "0" "enabled" "1" "xpos" "220" "ypos" "r105" "wide" "200" "tall" "50" "text_xpos" "8" "text_ypos" "8" "center_x" "0" // center text horizontally "center_y" "-1" // align text on the bottom } }
|
HudAnimations.txt
Code: |
// sample animation script // // // commands: // Animate <panel name> <variable> <target value> <interpolator> <start time> <duration> // 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 // Spline - simple ease in/out curve // Pulse - < freq > over the duration, the value is pulsed (cosine) freq times ending at the dest value (assuming freq is integral) // Flicker - < randomness factor 0.0 to 1.0 > over duration, each frame if random # is less than factor, use end value, otherwise use prev value // // RunEvent <event name> <start time> // starts another even running at the specified time // // StopEvent <event name> <start time> // stops another event that is current running at the specified time // // StopAnimation <panel name> <variable> <start time> // stops all animations refering to the specified variable in the specified panel // // StopPanelAnimations <panel name> <start time> // stops all active animations operating on the specified panel // // SetFont <panel name> <fontparameter> <fontname from scheme> <set time> // // SetTexture <panel name> <textureidname> <texturefilename> <set time> // // SetString <panel name> <string varname> <stringvalue> <set time>
event LevelInit { }
event OpenWeaponSelectionMenu { StopEvent CloseWeaponSelectionMenu 0.0 StopEvent WeaponPickup 0.0
// make the display visible Animate HudWeaponSelection Alpha "128" Linear 0.0 0.1 Animate HudWeaponSelection SelectionAlpha "255" Linear 0.0 0.1 Animate HudWeaponSelection FgColor "FgColor" Linear 0.0 0.1 //Animate HudWeaponSelection TextColor "BrightFg" Linear 0.0 0.1 Animate HudWeaponSelection TextScan "1" Linear 0.0 0.1 }
event CloseWeaponSelectionMenu { StopEvent CloseWeaponSelectionMenu 0.0 StopEvent WeaponPickup 0.0
// make the display visible Animate HudWeaponSelection Alpha "128" Linear 0.0 0.1 Animate HudWeaponSelection SelectionAlpha "255" Linear 0.0 0.1 Animate HudWeaponSelection FgColor "FgColor" Linear 0.0 0.1 //Animate HudWeaponSelection TextColor "BrightFg" Linear 0.0 0.1 Animate HudWeaponSelection TextScan "1" Linear 0.0 0.1 }
event MenuOpen { StopEvent MenuClose 0.0
// fade in Animate HudMenu Alpha "255" Linear 0.0 0.1 Animate HudMenu SelectionAlpha "255" Linear 0.0 0.1 Animate HudMenu FgColor "FgColor" Linear 0.0 0.1 Animate HudMenu MenuColor "MenuColor" Linear 0.0 0.1 Animate HudMenu ItemColor "ItemColor" Linear 0.0 0.1 Animate HudMenu TextScan "1" Linear 0.0 0.1
// Undo any blur Animate HudMenu Blur "1" Linear 0.0 0.01 }
event MenuClose { // Hide it Animate HudMenu Alpha "0" Linear 0.0 1 Animate HudMenu SelectionAlpha "0" Linear 0.0 1 Animate HudMenu FgColor "0 0 0 0" Linear 0.0 1 Animate HudMenu MenuColor "0 0 0 0" Linear 0.0 1 Animate HudMenu ItemColor "0 0 0 0" Linear 0.0 1 }
event MenuPulse { Animate HudMenu Blur "7" Linear 0.0 0.1 Animate HudMenu Blur "2" Deaccel 0.1 0.1 Animate HudMenu Blur "7" Linear 0.2 0.1 Animate HudMenu Blur "2" Deaccel 0.3 0.1 Animate HudMenu Blur "7" Linear 0.4 0.1 Animate HudMenu Blur "2" Deaccel 0.5 0.1 Animate HudMenu Blur "1" Deaccel 0.6 0.4 }
event TimerIncrement { Animate HudTimer Blur "7" Linear 0.0 0.1 Animate HudTimer Blur "2" Deaccel 0.1 0.8 Animate HudTimer Blur "0" Deaccel 1.1 1.5 }
event TimerDecrement { Animate HudTimer Blur "7" Linear 0.0 0.1 Animate HudTimer Blur "2" Deaccel 0.1 0.8 Animate HudTimer Blur "0" Deaccel 1.1 1.5 }
event ResourceIncrement { Animate HudResources Blur "3" Linear 0.0 0.0 Animate HudResources PulseAmount "0" Linear 0.0 0.01 Animate HudResources Blur "1" Deaccel 0.1 1.5 Animate HudResources PulseAmount "1" Linear 0.1 2
Animate HudResources PulseAmount "0" Linear 2 2 }
event ResourceDecrement { Animate HudResources Blur "7" Linear 0.0 0.0 Animate HudResources PulseAmount "0" Linear 0.0 0.01 Animate HudResources Blur "1" Deaccel 0.1 1.5 Animate HudResources PulseAmount "1" Linear 0.1 2
Animate HudResources PulseAmount "0" Linear 2 2 }
event ResourcePickup { Animate HudResourcesPickup Alpha "255" Linear 0 0 Animate HudResourcesPickup Position "80 r40" Linear 0 0 Animate HudResourcesPickup Position "80 r120" Deaccel 0 1 Animate HudResourcesPickup Blur "7" Deaccel 0 0.2 Animate HudResourcesPickup Alpha "0" Deaccel .8 0.2 Animate HudResourcesPickup Blur "1" Deaccel 0.2 0.3 }
event PrimaryAmmoIncrement { }
event PrimaryAmmoDecrement { Animate HudAmmoPrimary FgColor "HudIcon_Red" Linear 0.0 0.0001 Animate HudAmmoPrimary FgColor "FgColor" Accel 0.0 3.0 }
event PrimaryAmmoEmpty { }
event SecondaryAmmoIncrement { }
event SecondaryAmmoDecrement { Animate HudAmmoPrimary FgColor "HudIcon_Red" Linear 0.0 0.0001 Animate HudAmmoPrimary FgColor "FgColor" Accel 0.0 3.0 }
event SecondaryAmmoEmpty { }
event ShowPrimaryAmmoClipShowSecondaryAmmo { // Turn on secondary Animate HudAmmoSecondary Alpha "255" Linear 0.0 0.4 // Turn on secondary Animate HudAmmoPrimaryClip Alpha "255" Linear 0.0 0.4
// Move primary to left // Animate HudAmmoPrimary Position "r125 400" Deaccel 0.0 0.4 // Animate HudAmmoPrimaryClip Position "r55 400" Deaccel 0.0 0.4
}
event ShowPrimaryAmmoClipHideSecondaryAmmo { // Turn off secondary Animate HudAmmoSecondary Alpha "0" Linear 0.0 0.4 // Turn on secondary Animate HudAmmoPrimaryClip Alpha "255" Linear 0.0 0.4
// Move primary to left // Animate HudAmmoPrimary Position "r100 400" Deaccel 0.0 0.4 // Animate HudAmmoPrimaryClip Position "r30 400" Deaccel 0.0 0.4 }
event HidePrimaryAmmoClipShowSecondaryAmmo { // Turn on secondary Animate HudAmmoSecondary Alpha "255" Linear 0.0 0.4 // Turn off secondary Animate HudAmmoPrimaryClip Alpha "0" Linear 0.0 0.4
// Move primary to left // Animate HudAmmoPrimary Position "100 400" Deaccel 0.0 0.4 // Animate HudAmmoPrimaryClip Position "r30 400" Deaccel 0.0 0.4 }
event HidePrimaryAmmoClipHideSecondaryAmmo { // Turn off secondary Animate HudAmmoSecondary Alpha "0" Linear 0.0 0.4 // Turn off secondary Animate HudAmmoPrimaryClip Alpha "0" Linear 0.0 0.4
// Move primary to left // Animate HudAmmoPrimary Position "r70 400" Deaccel 0.0 0.4 // Animate HudAmmoPrimaryClip Position "r30 400" Deaccel 0.0 0.4 }
//activecolor - instantly turn red, fade back to yellow event AccountMoneyRemoved { Animate HudAccount FgColor "HudMoneyMinus" Linear 0.0 0.0001 Animate HudAccount FgColor "HudColor" Accel 0.0 3.0
Animate HudAccount Ammo2Color "HudMoneyMinus" Linear 0.0 0.0001 Animate HudAccount Ammo2Color "0 0 0 0" Accel 0.0 3.0 }
//activecolor - instantly turn green, fade back to yellow event AccountMoneyAdded { Animate HudAccount FgColor "HudMoneyPlus" Linear 0.0 0.0001 Animate HudAccount FgColor "HudColor" Accel 0.0 3.0
Animate HudAccount Ammo2Color "HudMoneyPlus" Accel 0.0 0.0001 Animate HudAccount Ammo2Color "0 0 0 0" Accel 0.0 3.0 }
event AccountMoneyInvisible { Animate HudAccount FgColor "HudColor" Accel 0.0 0.0001 Animate HudAccount Ammo2Color "0 0 0 0" Accel 0.0 0.0001 }
event HealthLow { Animate HudHealth FgColor "HudMinHealthColor" Linear 0.0 0.01 }
event HealthTookDamage { Animate HudHealth FgColor "HudHealthFlash" Linear 0.0 0.01 Animate HudHealth FgColor "HudHealthNormal" Pulse 8 0.0 1.0 }
event HealthRestored { Animate HudHealth FgColor "HudMaxHealthColor" Linear 0.0 0.01 }
event HintMessageShow { // show the hints Animate HudHintDisplay Alpha 255 Linear 0.0 0.5 Animate HudHintDisplay FgColor "HintMessageFg" Linear 0.0 0.01
// hide the panel after a while Animate HudHintDisplay Alpha 0 Linear 6.0 1.0 }
event HintMessageHide { Animate HudHintDisplay Alpha 0 Linear 0.0 0.5 }
| |
_________________ Moins on Pedal Vite Moins on Avance VITE |
| 1174 lectures | 0 Commentaires | Evaluation : 0 (0 votes) | Version imprimable |
|
|
|
|
|
|
|
|
|
Vous n'avez pas encore de compte? Enregistrez vous ! En tant que membre enregistré, vous bénéficierez de privilèges tels que: changer le thème de l'interface, modifier la disposition des commentaires, signer vos interventions, ...
Adhésion:
Dernier: Cloumz
Aujourd'hui: 0
Hier: 0
Tous: 754
Public en ligne:
Visiteurs: 4
Membres: 0
Total: 4
|
|
|
|
Nous avons reçu 4918861 pages vues depuis Mai 2003 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|