TheRoDent
10-01-2004, 02:43 AM
[Irrational]pcd, mentioned in this thread (http://www.tribalwar.com/forums/showthread.php?t=328205) that there's a means for a client-side hud extension working off the ClientSideCharacter object (which KP mentioned a while ago too) in T:V. An example of this script interaction has been included with the demo, and is called Speedo.HUDSpeedo. It's not enabled by default.
I'm not good at this gui stuff (location, positioning etc) but I can use a Hex viewer. Thus, here's a Speedo.ini that enables the small speed indicator.
Speedo.ini (save to C:\tv\Content\System)
[ext_Speedo]
;text displayed after the value (eg: KM/h)
UnitsText="kph"
;ratio of these units to unreal units
UnitsRatio=1.000000
;Speed you have to be travelling for the speedo to be visible
VisibleThreshold=30
;range below VisibleThreshold through which the speedo will fade in
VisibleThresholdRange=10
horizontalAlignment=HALIG N_Center
verticalAlignment=VALIGN_ Bottom
OffsetY=-10
Width=100
Height=30
[ext_Speedo_SpeedLabel]
horizontalAlignment=HALIG N_Center
verticalAlignment=VALIGN_ Bottom
Width=50
Height=30
offsetY=-5
offsetX=2
[ext_Speedo_UnitsLabel]
horizontalAlignment=HALIG N_Previous
verticalAlignment=VALIGN_ Bottom
Width=50
Height=30
offsetX=2
Then, you have to edit your c:\tv\Content\System\Trib esHUD.ini and add/uncomment the speedo line at the top.
[default_CharacterHUD]
ExtensionSpecs=(ElementNa me="ext_Speedo",ClassName="Speedo.HUDSpeedo",IniFile="Speedo.ini")
I'm not too clued up on HUD element positioning and cannot be arsed so perhaps someone can fix it so the labels actually match up.
Cheers.
I'm not good at this gui stuff (location, positioning etc) but I can use a Hex viewer. Thus, here's a Speedo.ini that enables the small speed indicator.
Speedo.ini (save to C:\tv\Content\System)
[ext_Speedo]
;text displayed after the value (eg: KM/h)
UnitsText="kph"
;ratio of these units to unreal units
UnitsRatio=1.000000
;Speed you have to be travelling for the speedo to be visible
VisibleThreshold=30
;range below VisibleThreshold through which the speedo will fade in
VisibleThresholdRange=10
horizontalAlignment=HALIG N_Center
verticalAlignment=VALIGN_ Bottom
OffsetY=-10
Width=100
Height=30
[ext_Speedo_SpeedLabel]
horizontalAlignment=HALIG N_Center
verticalAlignment=VALIGN_ Bottom
Width=50
Height=30
offsetY=-5
offsetX=2
[ext_Speedo_UnitsLabel]
horizontalAlignment=HALIG N_Previous
verticalAlignment=VALIGN_ Bottom
Width=50
Height=30
offsetX=2
Then, you have to edit your c:\tv\Content\System\Trib esHUD.ini and add/uncomment the speedo line at the top.
[default_CharacterHUD]
ExtensionSpecs=(ElementNa me="ext_Speedo",ClassName="Speedo.HUDSpeedo",IniFile="Speedo.ini")
I'm not too clued up on HUD element positioning and cannot be arsed so perhaps someone can fix it so the labels actually match up.
Cheers.