View unanswered posts | View active topics It is currently Thu Mar 28, 2024 9:24 pm



Reply to topic  [ 5 posts ] 
 A simple request 
Author Message

Joined: Sat Feb 02, 2013 2:01 pm
Posts: 3
Reply with quote
Post A simple request
Can anyone make me a scanner that will reveal the whole map for me? A scanner with a great scan distance.
Im not sure if anyone did it before but thanks anyway.
-Domen


Sat May 25, 2013 3:25 pm
Profile

Joined: Sat Feb 02, 2013 2:01 pm
Posts: 3
Reply with quote
Post Re: A simple request
Bump


Sat May 25, 2013 4:56 pm
Profile
User avatar

Joined: Sun Aug 09, 2009 9:26 am
Posts: 1633
Reply with quote
Post Re: A simple request
I made one that should do the trick, but it causes insane slowdown for me. It isn't crashing, though, so use it if you want. Just drop the files in the Scanners folder under base.rte/devices.

If you want to change the range to reduce slowdown, open up the ScannerSuperHeavy.lua file in any text editor, and you'll see these lines at the very top:

Code:
function Create(self)

   self.ScanTimer = Timer();
   self.scanDelay = 100;
   self.maxScanRange = 10000;
   self.scanDisruption = 300;
   self.scanSpacing = 10;

   self.numberOfScans = 6;
   self.scanSpreadAngle = 30; -- Degrees!

end


Changing the maxScanRange will change the range it scans, easy enough. You should poke around the game's code in general. Modding Cortex Command is, for the most part, as easy as reading.


Attachments:
Scanners.rar [2.33 KiB]
Downloaded 326 times
Sat May 25, 2013 7:56 pm
Profile

Joined: Fri Sep 10, 2010 1:48 am
Posts: 666
Location: Halifax, Canada
Reply with quote
Post Re: A simple request
These are the lines you want to reveal the whole map.
You can just paste it into the console (I think), or you can put it as a lua script for something (e.g. if you only want it to run once, which you do, put it on the create function of a bomb or something).
Code:
for i = 0, ToGameActivity(ActivityMan:GetActivity()).TeamCount do
   SceneMan:RevealUnseenBox(0,0,SceneMan.Scene.Width,SceneMan.Scene.Height, i);
end


Sat May 25, 2013 9:01 pm
Profile

Joined: Sat Feb 02, 2013 2:01 pm
Posts: 3
Reply with quote
Post Re: A simple request
I love you guys, I love you so much you two <3


Sun May 26, 2013 1:57 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.180s | 16 Queries | GZIP : Off ]