OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Tome4u on 15 May 2003, 18:53:55
-
I dont know if this is possible to do or not but i would like very much to turn off the radar on helicopters as i find that although the maps are very large and easy to hide in the radar ability of the choppers makes anyone in a car or vehicle a sitting duck.hope someone can help *thanks the inet god that OPEC is back online*
-
I think the only way to accomplish that would be by altering the config.cpp of that helicopter....
-
yeah, thats the "UnitIfoType" -part of a cpp file (/vehicles{UnitInfoType=UnitInfoShip;};)
The "ship" class has compass+fuel & armor status bars (and ammo, like soldiers)
to shut it all off, try:
HideUnitInfo=1;
...below the unitInfo... part. :-*
check the addon boards for details matey!
-
I beg to differ Tomby it all has to do with this:
#define CanSeeRadar 1
#define CanSeeEye 2
#define CanSeeOptics 4
#define CanSeeEar 8
#define CanSeeCompass 16
#define CanSeeRadarC CanSeeRadar+CanSeeCompass
#define CanSeeAll 31
so if you scroll a bit further down you see somethin like this:
driverCanSee = CanSeeAll
gunnerCanSee = CanSeeAll
now.. you can make your own combinations ;)
something like:
commanderCanSee = CanSeeAll;
gunnerCanSee = CanSeeOptics+CanSeeEar+CanSeeCompass;
driverCanSee = CanSeeEye+CanSeeEar+CanSeeCompass;
so only the commander has radar
-
A semi related question:
Can you turn on radar for an infrantry unit, using these same lines? That is, can you make it so a foot soldier can see that radar display at the top of the screen like he would if he were in a tank?
Trying to make a sci-fi map where soldiers can see other soldiers as IR targets if they are close enough.
Any ideas?