• New Horizons on Maelstrom
    Maelstrom New Horizons


    Visit our website www.piratehorizons.com to quickly find download links for the newest versions of our New Horizons mods Beyond New Horizons and Maelstrom New Horizons!

Spyglass Value's reset To Vanilla For CMV3

Luke159

Buccaneer
Storm Modder
I expect not everyone is happy with the new spyglass value's and would rather have the ability to see what the enemy has in terms of amount of troops, calibure and cannon type mounted, hull and sail damage etc etc. Well i have just uploaded that for you and here it is. Standard Spy Glass Settings For CMV3
 
I expect not everyone is happy with the new spyglass value's and would rather have the ability to see what the enemy has in terms of amount of troops, calibure and cannon type mounted, hull and sail damage etc etc. Well i have just uploaded that for you and here it is. Standard Spy Glass Settings For CMV3

:bow

Thanks! As much as I love realism, not having this little feature has been driving me mad. I was going to try to fix it myself, but I hadn't found the responsible file yet. Now if only the notes in these .c files were in English. :facepalm
 
My recommendation: Put a toggle on this and any other mods that require it in the next version.

As for as searching for things in the files, feel free to ask us anything you like.
Usually we've got a fair idea where to find things or otherwise we can figure out where it might be...
In my case, this is more related to PotC, but my PotC knowledge applies largely to CoAS as well.
 
Would it be easier to and make it so it looks like this. the vanilla value's for each spyglass and an added section for the realistic spyglass.

Code:
//SPYGLASSES

makeref(itm,Items[n]);
itm.id = "spyglass1";
itm.groupID = SPYGLASS_ITEM_TYPE;
itm.name = "itmname_spyglass1";
itm.describe = "itmdescr_spyglass1";
itm.picIndex = 14;
itm.picTexture = "ITEMS_6";
// boal 19.01.2004 -->
itm.price = 50;
itm.Weight = 1;

itm.Solder.rare = 0.1;
itm.Solder.min = 1;
itm.Solder.max = 1;

itm.Warrior.rare = 0.15;
itm.Warrior.min = 1;
itm.Warrior.max = 1;
// boal 19.01.2004 <--
itm.folder = "items";
itm.model = "spyglass4";
itm.scope.texture = "eye_BadTub.tga";
itm.scope.zoom = 2.5;
itm.scope.time_activate = 500;
itm.scope.time_update = 150;
itm.scope.show.nation = 1;
itm.scope.show.cannons = 0;
itm.scope.show.ship_name = 1;
itm.scope.show.ship_type = 1;
itm.scope.show.hull = 0;
itm.scope.show.sail = 0;
itm.scope.show.crew = 0;
itm.scope.show.speed = 1;
itm.scope.show.charge = 0;
itm.scope.show.cannontype = 0;
itm.scope.show.captain_skills = 0;
itm.minlevel = 1;
itm.rare = 0.1;
itm.ItemType = "SUPPORT";
n++;

makeref(itm,Items[n]);
itm.id = "spyglass2";
itm.groupID = SPYGLASS_ITEM_TYPE;
itm.name = "itmname_spyglass2";
itm.describe = "itmdescr_spyglass2";
itm.picIndex = 15;
itm.picTexture = "ITEMS_6";
// boal 19.01.2004 -->
itm.price = 300;
itm.Weight = 1.5;

itm.Solder.rare = 0.05;
itm.Solder.min = 1;
itm.Solder.max = 1;

itm.Warrior.rare = 0.1;
itm.Warrior.min = 1;
itm.Warrior.max = 1;
// boal 19.01.2004 <--
itm.folder = "items";
itm.model = "spyglass4";
itm.scope.texture = "eye_CommonTub.tga";
itm.scope.zoom = 4.0;
itm.scope.time_activate = 500;
itm.scope.time_update = 150;
itm.scope.show.nation = 1;
itm.scope.show.cannons = 0;
itm.scope.show.ship_name = 1;
itm.scope.show.ship_type = 1;
itm.scope.show.hull = 0;
itm.scope.show.sail = 1;
itm.scope.show.crew = 0;
itm.scope.show.speed = 1;
itm.scope.show.charge = 0;
itm.scope.show.cannontype = 0;
itm.scope.show.captain_skills = 0;
itm.minlevel = 1;
itm.rare = 0.07;
itm.ItemType = "SUPPORT";
n++;

makeref(itm,Items[n]);
itm.id = "spyglass3";
itm.groupID = SPYGLASS_ITEM_TYPE;
itm.name = "itmname_spyglass3";
itm.describe = "itmdescr_spyglass3";
itm.picIndex = 16;
itm.picTexture = "ITEMS_6";
itm.price = 900;
// boal 19.01.2004 -->
itm.Weight = 2;

itm.Solder_o.rare = 0.15;
itm.Solder_o.min = 1;
itm.Solder_o.max = 1;
// boal 19.01.2004 <--
itm.folder = "items";
itm.model = "spyglass4";
itm.scope.texture = "eye_GoodTub.tga";
itm.scope.zoom = 7.0;
itm.scope.time_activate = 500;
itm.scope.time_update = 150;
itm.scope.show.nation = 1;
itm.scope.show.cannons = 1;
itm.scope.show.ship_name = 1;
itm.scope.show.ship_type = 1;
itm.scope.show.hull = 1;
itm.scope.show.sail = 1;
itm.scope.show.crew = 0;
itm.scope.show.speed = 1;
itm.scope.show.charge = 0;
itm.scope.show.cannontype = 0;
itm.scope.show.captain_skills = 0;
itm.minlevel = 1;
itm.rare = 0.05;
itm.ItemType = "SUPPORT";
n++;

makeref(itm,Items[n]);
itm.id = "spyglass4";
itm.groupID = SPYGLASS_ITEM_TYPE;
itm.name = "itmname_spyglass4";
itm.describe = "itmdescr_spyglass4";
itm.picIndex = 14;
itm.picTexture = "ITEMS_1";
itm.folder = "items";
itm.model = "spyglass4";
itm.price = 2500;
// boal 19.01.2004 -->
itm.Weight = 4;

itm.Solder_o.rare = 0.05;
itm.Solder_o.min = 1;
itm.Solder_o.max = 1;
// boal 19.01.2004 <--
itm.scope.texture = "eye_BestTub.tga";
itm.scope.zoom = 10.0;
itm.scope.time_activate = 500;
itm.scope.time_update = 150;
itm.scope.show.nation = 1;
itm.scope.show.cannons = 1;
itm.scope.show.ship_name = 1;
itm.scope.show.ship_type = 1;
itm.scope.show.hull = 1;
itm.scope.show.sail = 1;
itm.scope.show.crew = 1;
itm.scope.show.speed = 1;
itm.scope.show.charge = 1;
itm.scope.show.cannontype = 0;
itm.scope.show.captain_skills = 1;
itm.minlevel = 1;
itm.rare = 0.01;
itm.ItemType = "SUPPORT";
n++;

makeref(itm,Items[n]);
itm.id = "spyglass5";
itm.groupID = SPYGLASS_ITEM_TYPE;
itm.name = "itmname_spyglass5";
itm.describe = "itmdescr_spyglass5";
itm.picIndex = 13;
itm.picTexture = "ITEMS_1";
itm.folder = "items";
itm.model = "spyglass4";
itm.price = 42500;
// boal 19.01.2004 -->
itm.Weight = 7;

itm.Solder_o.rare = 0.0001;
itm.Solder_o.min = 1;
itm.Solder_o.max = 1;
// boal 19.01.2004 <--
itm.scope.texture = "eye_BestTub.tga";
itm.scope.zoom = 15.0;
itm.scope.time_activate = 500;
itm.scope.time_update = 150;
itm.scope.show.nation = 1;
itm.scope.show.cannons = 1;
itm.scope.show.ship_name = 1;
itm.scope.show.ship_type = 1;
itm.scope.show.hull = 1;
itm.scope.show.sail = 1;
itm.scope.show.crew = 1;
itm.scope.show.speed = 1;
itm.scope.show.charge = 1;
itm.scope.show.cannontype = 1;
itm.scope.show.captain_skills = 1;
itm.minlevel = 1;
itm.rare = 0.0001;
itm.ItemType = "SUPPORT";
n++;
Code:
 }
else
{
Code:
 //REALISTIC SPYGLASSES

makeref(itm,Items[n]);
itm.id = "spyglass1";
itm.groupID = SPYGLASS_ITEM_TYPE;
itm.name = "itmname_spyglass1";
itm.describe = "itmdescr_spyglass1";
itm.picIndex = 14;
itm.picTexture = "ITEMS_6";
// boal 19.01.2004 -->
itm.price = 50;
itm.Weight = 1;

itm.Solder.rare = 0.1;
itm.Solder.min = 1;
itm.Solder.max = 1;

itm.Warrior.rare = 0.15;
itm.Warrior.min = 1;
itm.Warrior.max = 1;
// boal 19.01.2004 <--
itm.folder = "items";
itm.model = "spyglass4";
itm.scope.texture = "eye_BadTub.tga";
itm.scope.zoom = 2.5;
itm.scope.time_activate = 500;
itm.scope.time_update = 150;
itm.scope.show.nation = 1;
itm.scope.show.cannons = 0;
itm.scope.show.ship_name = 0;
itm.scope.show.ship_type = 1;
itm.scope.show.hull = 0;
itm.scope.show.sail = 0;
itm.scope.show.crew = 0;
itm.scope.show.speed = 0;
itm.scope.show.charge = 0;
itm.scope.show.cannontype = 0;
itm.scope.show.captain_skills = 0;
itm.minlevel = 1;
itm.rare = 0.1;
itm.ItemType = "SUPPORT";
n++;

makeref(itm,Items[n]);
itm.id = "spyglass2";
itm.groupID = SPYGLASS_ITEM_TYPE;
itm.name = "itmname_spyglass2";
itm.describe = "itmdescr_spyglass2";
itm.picIndex = 15;
itm.picTexture = "ITEMS_6";
// boal 19.01.2004 -->
itm.price = 300;
itm.Weight = 1.5;

itm.Solder.rare = 0.05;
itm.Solder.min = 1;
itm.Solder.max = 1;

itm.Warrior.rare = 0.1;
itm.Warrior.min = 1;
itm.Warrior.max = 1;
// boal 19.01.2004 <--
itm.folder = "items";
itm.model = "spyglass4";
itm.scope.texture = "eye_CommonTub.tga";
itm.scope.zoom = 4.0;
itm.scope.time_activate = 500;
itm.scope.time_update = 150;
itm.scope.show.nation = 1;
itm.scope.show.cannons = 0;
itm.scope.show.ship_name = 1;
itm.scope.show.ship_type = 1;
itm.scope.show.hull = 0;
itm.scope.show.sail = 0;
itm.scope.show.crew = 0;
itm.scope.show.speed = 0;
itm.scope.show.charge = 0;
itm.scope.show.cannontype = 0;
itm.scope.show.captain_skills = 0;
itm.minlevel = 1;
itm.rare = 0.07;
itm.ItemType = "SUPPORT";
n++;

makeref(itm,Items[n]);
itm.id = "spyglass3";
itm.groupID = SPYGLASS_ITEM_TYPE;
itm.name = "itmname_spyglass3";
itm.describe = "itmdescr_spyglass3";
itm.picIndex = 16;
itm.picTexture = "ITEMS_6";
itm.price = 900;
// boal 19.01.2004 -->
itm.Weight = 2;

itm.Solder_o.rare = 0.15;
itm.Solder_o.min = 1;
itm.Solder_o.max = 1;
// boal 19.01.2004 <--
itm.folder = "items";
itm.model = "spyglass4";
itm.scope.texture = "eye_GoodTub.tga";
itm.scope.zoom = 7.0;
itm.scope.time_activate = 500;
itm.scope.time_update = 150;
itm.scope.show.nation = 1;
itm.scope.show.cannons = 1;
itm.scope.show.ship_name = 1;
itm.scope.show.ship_type = 1;
itm.scope.show.hull = 0;
itm.scope.show.sail = 1;
itm.scope.show.crew = 0;
itm.scope.show.speed = 0;
itm.scope.show.charge = 0;
itm.scope.show.cannontype = 0;
itm.scope.show.captain_skills = 0;
itm.minlevel = 1;
itm.rare = 0.05;
itm.ItemType = "SUPPORT";
n++;

makeref(itm,Items[n]);
itm.id = "spyglass4";
itm.groupID = SPYGLASS_ITEM_TYPE;
itm.name = "itmname_spyglass4";
itm.describe = "itmdescr_spyglass4";
itm.picIndex = 14;
itm.picTexture = "ITEMS_1";
itm.folder = "items";
itm.model = "spyglass4";
itm.price = 2500;
// boal 19.01.2004 -->
itm.Weight = 4;

itm.Solder_o.rare = 0.05;
itm.Solder_o.min = 1;
itm.Solder_o.max = 1;
// boal 19.01.2004 <--
itm.scope.texture = "eye_BestTub.tga";
itm.scope.zoom = 10.0;
itm.scope.time_activate = 500;
itm.scope.time_update = 150;
itm.scope.show.nation = 1;
itm.scope.show.cannons = 1;
itm.scope.show.ship_name = 1;
itm.scope.show.ship_type = 1;
itm.scope.show.hull = 1;
itm.scope.show.sail = 1;
itm.scope.show.crew = 0;
itm.scope.show.speed = 0;
itm.scope.show.charge = 0;
itm.scope.show.cannontype = 0;
itm.scope.show.captain_skills = 0;
itm.minlevel = 1;
itm.rare = 0.01;
itm.ItemType = "SUPPORT";
n++;

makeref(itm,Items[n]);
itm.id = "spyglass5";
itm.groupID = SPYGLASS_ITEM_TYPE;
itm.name = "itmname_spyglass5";
itm.describe = "itmdescr_spyglass5";
itm.picIndex = 13;
itm.picTexture = "ITEMS_1";
itm.folder = "items";
itm.model = "spyglass4";
itm.price = 42500;
// boal 19.01.2004 -->
itm.Weight = 7;

itm.Solder_o.rare = 0.0001;
itm.Solder_o.min = 1;
itm.Solder_o.max = 1;
// boal 19.01.2004 <--
itm.scope.texture = "eye_BestTub.tga";
itm.scope.zoom = 15.0;
itm.scope.time_activate = 500;
itm.scope.time_update = 150;
itm.scope.show.nation = 1;
itm.scope.show.cannons = 1;
itm.scope.show.ship_name = 1;
itm.scope.show.ship_type = 1;
itm.scope.show.hull = 1;
itm.scope.show.sail = 1;
itm.scope.show.crew = 0;
itm.scope.show.speed = 0;
itm.scope.show.charge = 0;
itm.scope.show.cannontype = 1;
itm.scope.show.captain_skills = 0;
itm.minlevel = 1;
itm.rare = 0.0001;
itm.ItemType = "SUPPORT";
n++;

Would that work?
 
Almost, yes. You'll need to add the actual if-statements too though:
Code:
if(!REALISTIC_SPYGLASSES) // = If Realistic Spyglasses is NOT enabled
{
//SPYGLASSES

makeref(itm,Items[n]);
itm.id = "spyglass1";
itm.groupID = SPYGLASS_ITEM_TYPE;
itm.name = "itmname_spyglass1";
itm.describe = "itmdescr_spyglass1";
itm.picIndex = 14;
itm.picTexture = "ITEMS_6";
// boal 19.01.2004 -->
itm.price = 50;
itm.Weight = 1;

itm.Solder.rare = 0.1;
itm.Solder.min = 1;
itm.Solder.max = 1;

itm.Warrior.rare = 0.15;
itm.Warrior.min = 1;
itm.Warrior.max = 1;
// boal 19.01.2004 <--
itm.folder = "items";
itm.model = "spyglass4";
itm.scope.texture = "eye_BadTub.tga";
itm.scope.zoom = 2.5;
itm.scope.time_activate = 500;
itm.scope.time_update = 150;
itm.scope.show.nation = 1;
itm.scope.show.cannons = 0;
itm.scope.show.ship_name = 1;
itm.scope.show.ship_type = 1;
itm.scope.show.hull = 0;
itm.scope.show.sail = 0;
itm.scope.show.crew = 0;
itm.scope.show.speed = 1;
itm.scope.show.charge = 0;
itm.scope.show.cannontype = 0;
itm.scope.show.captain_skills = 0;
itm.minlevel = 1;
itm.rare = 0.1;
itm.ItemType = "SUPPORT";
n++;

makeref(itm,Items[n]);
itm.id = "spyglass2";
itm.groupID = SPYGLASS_ITEM_TYPE;
itm.name = "itmname_spyglass2";
itm.describe = "itmdescr_spyglass2";
itm.picIndex = 15;
itm.picTexture = "ITEMS_6";
// boal 19.01.2004 -->
itm.price = 300;
itm.Weight = 1.5;

itm.Solder.rare = 0.05;
itm.Solder.min = 1;
itm.Solder.max = 1;

itm.Warrior.rare = 0.1;
itm.Warrior.min = 1;
itm.Warrior.max = 1;
// boal 19.01.2004 <--
itm.folder = "items";
itm.model = "spyglass4";
itm.scope.texture = "eye_CommonTub.tga";
itm.scope.zoom = 4.0;
itm.scope.time_activate = 500;
itm.scope.time_update = 150;
itm.scope.show.nation = 1;
itm.scope.show.cannons = 0;
itm.scope.show.ship_name = 1;
itm.scope.show.ship_type = 1;
itm.scope.show.hull = 0;
itm.scope.show.sail = 1;
itm.scope.show.crew = 0;
itm.scope.show.speed = 1;
itm.scope.show.charge = 0;
itm.scope.show.cannontype = 0;
itm.scope.show.captain_skills = 0;
itm.minlevel = 1;
itm.rare = 0.07;
itm.ItemType = "SUPPORT";
n++;

makeref(itm,Items[n]);
itm.id = "spyglass3";
itm.groupID = SPYGLASS_ITEM_TYPE;
itm.name = "itmname_spyglass3";
itm.describe = "itmdescr_spyglass3";
itm.picIndex = 16;
itm.picTexture = "ITEMS_6";
itm.price = 900;
// boal 19.01.2004 -->
itm.Weight = 2;

itm.Solder_o.rare = 0.15;
itm.Solder_o.min = 1;
itm.Solder_o.max = 1;
// boal 19.01.2004 <--
itm.folder = "items";
itm.model = "spyglass4";
itm.scope.texture = "eye_GoodTub.tga";
itm.scope.zoom = 7.0;
itm.scope.time_activate = 500;
itm.scope.time_update = 150;
itm.scope.show.nation = 1;
itm.scope.show.cannons = 1;
itm.scope.show.ship_name = 1;
itm.scope.show.ship_type = 1;
itm.scope.show.hull = 1;
itm.scope.show.sail = 1;
itm.scope.show.crew = 0;
itm.scope.show.speed = 1;
itm.scope.show.charge = 0;
itm.scope.show.cannontype = 0;
itm.scope.show.captain_skills = 0;
itm.minlevel = 1;
itm.rare = 0.05;
itm.ItemType = "SUPPORT";
n++;

makeref(itm,Items[n]);
itm.id = "spyglass4";
itm.groupID = SPYGLASS_ITEM_TYPE;
itm.name = "itmname_spyglass4";
itm.describe = "itmdescr_spyglass4";
itm.picIndex = 14;
itm.picTexture = "ITEMS_1";
itm.folder = "items";
itm.model = "spyglass4";
itm.price = 2500;
// boal 19.01.2004 -->
itm.Weight = 4;

itm.Solder_o.rare = 0.05;
itm.Solder_o.min = 1;
itm.Solder_o.max = 1;
// boal 19.01.2004 <--
itm.scope.texture = "eye_BestTub.tga";
itm.scope.zoom = 10.0;
itm.scope.time_activate = 500;
itm.scope.time_update = 150;
itm.scope.show.nation = 1;
itm.scope.show.cannons = 1;
itm.scope.show.ship_name = 1;
itm.scope.show.ship_type = 1;
itm.scope.show.hull = 1;
itm.scope.show.sail = 1;
itm.scope.show.crew = 1;
itm.scope.show.speed = 1;
itm.scope.show.charge = 1;
itm.scope.show.cannontype = 0;
itm.scope.show.captain_skills = 1;
itm.minlevel = 1;
itm.rare = 0.01;
itm.ItemType = "SUPPORT";
n++;

makeref(itm,Items[n]);
itm.id = "spyglass5";
itm.groupID = SPYGLASS_ITEM_TYPE;
itm.name = "itmname_spyglass5";
itm.describe = "itmdescr_spyglass5";
itm.picIndex = 13;
itm.picTexture = "ITEMS_1";
itm.folder = "items";
itm.model = "spyglass4";
itm.price = 42500;
// boal 19.01.2004 -->
itm.Weight = 7;

itm.Solder_o.rare = 0.0001;
itm.Solder_o.min = 1;
itm.Solder_o.max = 1;
// boal 19.01.2004 <--
itm.scope.texture = "eye_BestTub.tga";
itm.scope.zoom = 15.0;
itm.scope.time_activate = 500;
itm.scope.time_update = 150;
itm.scope.show.nation = 1;
itm.scope.show.cannons = 1;
itm.scope.show.ship_name = 1;
itm.scope.show.ship_type = 1;
itm.scope.show.hull = 1;
itm.scope.show.sail = 1;
itm.scope.show.crew = 1;
itm.scope.show.speed = 1;
itm.scope.show.charge = 1;
itm.scope.show.cannontype = 1;
itm.scope.show.captain_skills = 1;
itm.minlevel = 1;
itm.rare = 0.0001;
itm.ItemType = "SUPPORT";
n++;
}
else // = If Realistic Spyglasses IS enabled
{
//REALISTIC SPYGLASSES

makeref(itm,Items[n]);
itm.id = "spyglass1";
itm.groupID = SPYGLASS_ITEM_TYPE;
itm.name = "itmname_spyglass1";
itm.describe = "itmdescr_spyglass1";
itm.picIndex = 14;
itm.picTexture = "ITEMS_6";
// boal 19.01.2004 -->
itm.price = 50;
itm.Weight = 1;

itm.Solder.rare = 0.1;
itm.Solder.min = 1;
itm.Solder.max = 1;

itm.Warrior.rare = 0.15;
itm.Warrior.min = 1;
itm.Warrior.max = 1;
// boal 19.01.2004 <--
itm.folder = "items";
itm.model = "spyglass4";
itm.scope.texture = "eye_BadTub.tga";
itm.scope.zoom = 2.5;
itm.scope.time_activate = 500;
itm.scope.time_update = 150;
itm.scope.show.nation = 1;
itm.scope.show.cannons = 0;
itm.scope.show.ship_name = 0;
itm.scope.show.ship_type = 1;
itm.scope.show.hull = 0;
itm.scope.show.sail = 0;
itm.scope.show.crew = 0;
itm.scope.show.speed = 0;
itm.scope.show.charge = 0;
itm.scope.show.cannontype = 0;
itm.scope.show.captain_skills = 0;
itm.minlevel = 1;
itm.rare = 0.1;
itm.ItemType = "SUPPORT";
n++;

makeref(itm,Items[n]);
itm.id = "spyglass2";
itm.groupID = SPYGLASS_ITEM_TYPE;
itm.name = "itmname_spyglass2";
itm.describe = "itmdescr_spyglass2";
itm.picIndex = 15;
itm.picTexture = "ITEMS_6";
// boal 19.01.2004 -->
itm.price = 300;
itm.Weight = 1.5;

itm.Solder.rare = 0.05;
itm.Solder.min = 1;
itm.Solder.max = 1;

itm.Warrior.rare = 0.1;
itm.Warrior.min = 1;
itm.Warrior.max = 1;
// boal 19.01.2004 <--
itm.folder = "items";
itm.model = "spyglass4";
itm.scope.texture = "eye_CommonTub.tga";
itm.scope.zoom = 4.0;
itm.scope.time_activate = 500;
itm.scope.time_update = 150;
itm.scope.show.nation = 1;
itm.scope.show.cannons = 0;
itm.scope.show.ship_name = 1;
itm.scope.show.ship_type = 1;
itm.scope.show.hull = 0;
itm.scope.show.sail = 0;
itm.scope.show.crew = 0;
itm.scope.show.speed = 0;
itm.scope.show.charge = 0;
itm.scope.show.cannontype = 0;
itm.scope.show.captain_skills = 0;
itm.minlevel = 1;
itm.rare = 0.07;
itm.ItemType = "SUPPORT";
n++;

makeref(itm,Items[n]);
itm.id = "spyglass3";
itm.groupID = SPYGLASS_ITEM_TYPE;
itm.name = "itmname_spyglass3";
itm.describe = "itmdescr_spyglass3";
itm.picIndex = 16;
itm.picTexture = "ITEMS_6";
itm.price = 900;
// boal 19.01.2004 -->
itm.Weight = 2;

itm.Solder_o.rare = 0.15;
itm.Solder_o.min = 1;
itm.Solder_o.max = 1;
// boal 19.01.2004 <--
itm.folder = "items";
itm.model = "spyglass4";
itm.scope.texture = "eye_GoodTub.tga";
itm.scope.zoom = 7.0;
itm.scope.time_activate = 500;
itm.scope.time_update = 150;
itm.scope.show.nation = 1;
itm.scope.show.cannons = 1;
itm.scope.show.ship_name = 1;
itm.scope.show.ship_type = 1;
itm.scope.show.hull = 0;
itm.scope.show.sail = 1;
itm.scope.show.crew = 0;
itm.scope.show.speed = 0;
itm.scope.show.charge = 0;
itm.scope.show.cannontype = 0;
itm.scope.show.captain_skills = 0;
itm.minlevel = 1;
itm.rare = 0.05;
itm.ItemType = "SUPPORT";
n++;

makeref(itm,Items[n]);
itm.id = "spyglass4";
itm.groupID = SPYGLASS_ITEM_TYPE;
itm.name = "itmname_spyglass4";
itm.describe = "itmdescr_spyglass4";
itm.picIndex = 14;
itm.picTexture = "ITEMS_1";
itm.folder = "items";
itm.model = "spyglass4";
itm.price = 2500;
// boal 19.01.2004 -->
itm.Weight = 4;

itm.Solder_o.rare = 0.05;
itm.Solder_o.min = 1;
itm.Solder_o.max = 1;
// boal 19.01.2004 <--
itm.scope.texture = "eye_BestTub.tga";
itm.scope.zoom = 10.0;
itm.scope.time_activate = 500;
itm.scope.time_update = 150;
itm.scope.show.nation = 1;
itm.scope.show.cannons = 1;
itm.scope.show.ship_name = 1;
itm.scope.show.ship_type = 1;
itm.scope.show.hull = 1;
itm.scope.show.sail = 1;
itm.scope.show.crew = 0;
itm.scope.show.speed = 0;
itm.scope.show.charge = 0;
itm.scope.show.cannontype = 0;
itm.scope.show.captain_skills = 0;
itm.minlevel = 1;
itm.rare = 0.01;
itm.ItemType = "SUPPORT";
n++;

makeref(itm,Items[n]);
itm.id = "spyglass5";
itm.groupID = SPYGLASS_ITEM_TYPE;
itm.name = "itmname_spyglass5";
itm.describe = "itmdescr_spyglass5";
itm.picIndex = 13;
itm.picTexture = "ITEMS_1";
itm.folder = "items";
itm.model = "spyglass4";
itm.price = 42500;
// boal 19.01.2004 -->
itm.Weight = 7;

itm.Solder_o.rare = 0.0001;
itm.Solder_o.min = 1;
itm.Solder_o.max = 1;
// boal 19.01.2004 <--
itm.scope.texture = "eye_BestTub.tga";
itm.scope.zoom = 15.0;
itm.scope.time_activate = 500;
itm.scope.time_update = 150;
itm.scope.show.nation = 1;
itm.scope.show.cannons = 1;
itm.scope.show.ship_name = 1;
itm.scope.show.ship_type = 1;
itm.scope.show.hull = 1;
itm.scope.show.sail = 1;
itm.scope.show.crew = 0;
itm.scope.show.speed = 0;
itm.scope.show.charge = 0;
itm.scope.show.cannontype = 1;
itm.scope.show.captain_skills = 0;
itm.minlevel = 1;
itm.rare = 0.0001;
itm.ItemType = "SUPPORT";
n++;
}
Then you'll also need this in, for example, _mod_on_off.c
(that's the name of the CoAS file, right?):
Code:
#define REALISTIC_SPYGLASSES	1
// Set to 0 to reset spyglasses to stock settings (new game required)
 
Back
Top