General > User modifications

Where are the radar specs hiding?

(1/2) > >>

Sniper_Bait:
Not necessarily "specs" as in "spectacles," but if you can point me to a pair of those, that would work, too.  I'm looking for the files that control installation radar range, and then for the ones that control the radar of aircraft and SAM sites.  I had this crazy idea that once the improved radar kicks in and increases the range of the old radar, aircraft and SAM installations would eventually get a similar upgrade.  Where, then, might they be stored and what are their names?  Are they in "base" or "src?" 
Thanks, all.  Your help is appreciated.

geever:
You cannot change the range of the radar tower installations without modifying the source code in src, but you can create an "Advanced Radar Tower" building with scripts.

For this,
1. add an entry to base/ufos/installations.ufo (based on radartower)

--- Code: ---installation advradartower {
    ...
}

--- End code ---

2. add a technology to base/ufos/research.ufo which have "provides" flag points to the scripted id of your installation and requires advanced radar technology. If you set the research time to 0 it will be automatically researched along with the advanced radar building.

--- Code: ---tech rs_adv_radartower {
    ...
    require_AND rs_building_radar_adv
    provides advradartower
    time       0
}

--- End code ---

Haven't tested it myself, but Should Work (TM).

Edit: Should mention that max number of installation types are limited to 6 and number of batteries of a samsite to 5 in the code now.

-geever

Wolls:
AFAIK in 2.5-Dev.. you can simply change the installation.ufo (in the ...\base\0ufos.pk3) to change the radar value.. like from 8 to 18

Also in the 0ufos.pk3, aircraftmanagement.ufo has the craft and SAM radar values..

Sniper_Bait:
Aha!  Much gratitude to you both!  Should have specified I'm only on 2.4 for now, but now at least I know what to look for.  Thank you again.

geever:

--- Quote from: Sniper_Bait on January 11, 2013, 12:11:09 am ---Aha!  Much gratitude to you both!  Should have specified I'm only on 2.4 for now, but now at least I know what to look for.  Thank you again.

--- End quote ---

I'm not sure if the tech & research for installations works in 2.4.

About changing the numbers of existing installation/aircraft: I belive it is a cheat. That's why I suggested a new (more expensive) installation available after the radar research.

Aircraft radar: I hoped it is possible with a new electronics slot equipment, but currently their radar ranges are hardcoded. Possibly I'll make it scriptable later because is sounds reasonable for me.

-geever

Navigation

[0] Message Index

[#] Next page

Go to full version