hotfix: sniper rifle zoom and guided redeemer should hide crosshair.

This commit is contained in:
Marisa the Magician 2018-06-11 19:38:58 +02:00
commit c60336b950
2 changed files with 14 additions and 0 deletions

View file

@ -59,6 +59,13 @@ Class SniperRifle : UTWeapon
Screen.DrawTexture(reticle,false,320,240,DTA_VirtualWidth,640,DTA_VirtualHeight,480,DTA_RenderStyle,(1|2<<8|1<<16)); Screen.DrawTexture(reticle,false,320,240,DTA_VirtualWidth,640,DTA_VirtualHeight,480,DTA_RenderStyle,(1|2<<8|1<<16));
Screen.DrawText(confont,Font.CR_DARKGREEN,192,160,String.Format("X%.1f",sniperzoom),DTA_Clean,true); Screen.DrawText(confont,Font.CR_DARKGREEN,192,160,String.Format("X%.1f",sniperzoom),DTA_Clean,true);
} }
override void Tick()
{
Super.Tick();
if ( !Owner ) return;
if ( sniperzoom > 1.0 ) crosshair = 99;
else crosshair = 0;
}
action void A_SniperFire( bool zoomed = false ) action void A_SniperFire( bool zoomed = false )
{ {
Weapon weap = Weapon(invoker); Weapon weap = Weapon(invoker);

View file

@ -560,6 +560,13 @@ Class RedeemerHUDHandler : EventHandler
Class WarheadLauncher : UTWeapon replaces BFG9000 Class WarheadLauncher : UTWeapon replaces BFG9000
{ {
Actor guided; Actor guided;
override void Tick()
{
Super.Tick();
if ( !Owner ) return;
if ( guided ) crosshair = 99;
else crosshair = 0;
}
action void A_WarheadFire() action void A_WarheadFire()
{ {
Weapon weap = Weapon(invoker); Weapon weap = Weapon(invoker);