DAZZLE'S UPGRADE PACK

If you haven't already done so, upgrade your game by downloading Dazzle's all-in-one upgrade pack. It comes with everything you need for today's servers. Does your blue bar freeze when joining servers? Do you lag in games? Do you get an annoying siren in Phobik's Servers? This is what you need. CLICK HERE TO DOWNLOAD.

Zoom Radar Stays in the Middle of the Screen

Admin Scripts, Radars, All Think Tanks Extras found here.

Moderator: Moderator

Post Reply
User avatar
Speedo
Veteran Light
Veteran Light
Posts: 916
Joined: Sat Jan 20, 2007 11:24 pm
Location: In the pool

Zoom Radar Stays in the Middle of the Screen

Post by Speedo »

I've recently changed to a macbook. great machine. I noticed that I needed to upgrade my radar to a zoom radar. So, without knowing any better, I downloaded the windows (lonewolf) version of the script. I right click, like I'm supposed to, but I can't toggle back out of the radar. It just stays right in the middle of my screen. I would like to maybe be able to hit another button other than right click so the radar doesn't stay in the middle. Heck, I'd love it if I could use right click.
Gimmie the scrum!
User avatar
TMG Leader
Veteran Light
Veteran Light
Posts: 962
Joined: Mon Jun 25, 2007 10:31 am
Location: In my refrigerator....

Re: Zoom Radar Stays in the Middle of the Screen

Post by TMG Leader »

Strange, I use a MacBookPro, but then again I use a mouse. Even if I use the trackpad it works fine. Did you edit the script at all before using it? If you did or did not post is here so I can take a look at it.
First to fall, last man standing.
User avatar
Speedo
Veteran Light
Veteran Light
Posts: 916
Joined: Sat Jan 20, 2007 11:24 pm
Location: In the pool

Re: Zoom Radar Stays in the Middle of the Screen

Post by Speedo »

okay. maybe my problem is that I don't know how to use it. Just right click, am I correct? And the script is designed to go away when you right click again? Is there another button other than that I can press?
Gimmie the scrum!
User avatar
TMG Leader
Veteran Light
Veteran Light
Posts: 962
Joined: Mon Jun 25, 2007 10:31 am
Location: In my refrigerator....

Re: Zoom Radar Stays in the Middle of the Screen

Post by TMG Leader »

Yes, you can press a button on the keyboard. But you cannot use the button when you type in the chat box. Tell me if you want this. And btw the zoom radar is made to go larger and then smaller, so I'll always be in the middle unless if you make a separate bind and set the settings for that radar to disappear or go back to normal.
First to fall, last man standing.
User avatar
LONEWOLF
Popped Bot Head
Popped Bot Head
Posts: 308
Joined: Sun Dec 31, 2006 3:36 am
Location: Sun Prairie,Wisconsin
Contact:

Re: Zoom Radar Stays in the Middle of the Screen

Post by LONEWOLF »

Instructions for Zoom Radar - WINDOWS & Macs!!!

1. Open Main.cs and remove any radar tweaks you installed
2. Then locate this section (its at or near the bottom)

// Display an error message for unused arguments
for ($i = 1; $i < $Game::argc; $i++) {
if (!$argUsed[$i])
error("Error: Unkown command line argument: " @ $Game::argv[$i]);
}

3. Now copy and paste the Zoom Radar.txt into the main.cs
after the }
BUT BEFORE MODWIZARD AND/OR DASH CODES IF YOU HAVE THEM

Script

Code: Select all

if (!$server::dedicated)
{
   GlobalActionMap.bindCmd( mouse, button1, "", "radarZoom();");
}
$radarZoom = False;
function radarZoom()
{
   echo("Radar Zoom");
   if (isObject(RadarHud))
   {

      $radarZoom = !$radarZoom;
      if ($radarZoom == True)
      {
         RadarHud.dotWidth = RadarHud.dotWidth + RadarHud.dotWidth;
         RadarHud.dotHeight = RadarHud.dotHeight + RadarHud.dotHeight;

      RadarHud.horizSizing = "left";
      RadarHud.vertSizing = "top";
      %rw = getWord($pref::Video::resolution ,0) - 400;
      %rh = getWord($pref::Video::resolution ,1) - 400;
      RadarHud.position = %rw SPC %rh; // "500 340";
      RadarHud.extent = "400 400"; // "128 128";
      RadarHud.dotOffsetX = "-1"; //"-2";
      RadarHud.dotOffsetY = "0"; //"-1";
      RadarHud.radius = "400"; // "260";
      RadarHud.minExtent = "0 0";
      RadarHud.setFirstResponder = "0";

 
      }
      else
      {
         RadarHud.dotWidth = RadarHud.dotWidth / 2;
         RadarHud.dotHeight = RadarHud.dotHeight / 2;

      RadarHud.horizSizing = "left";
      RadarHud.vertSizing = "top";
      %rw = getWord($pref::Video::resolution ,0) - 382;
      %rh = getWord($pref::Video::resolution ,1) - 362;
      RadarHud.position = %rw SPC %rh;
      RadarHud.extent = "350 350";
      RadarHud.dotOffsetX = "-1";
      RadarHud.dotOffsetY = "0";
      RadarHud.radius = "350";
      RadarHud.minExtent = "0 0";
      RadarHud.setFirstResponder = "0";
      return;

 
      }
   }
}

RadarHud.dotWidth = RadarHud.dotWidth + RadarHud.dotWidth;
RadarHud.dotHeight = RadarHud.dotHeight + RadarHud.dotHeight;

4. Save main.cs and fire up TT
To toggle between use right click on mouse

Enjoy!
LONEWOLF :peace:
Don't Tread On Me!!!
Post Reply