@h: Thanks dude, you put me on the right track. Thanks to you, and this old OFP thread...
http://www.ofpec.com/forum/index.php?topic=9783.0...I now have sniper scope cutrsc working.
Here's the exact steps for the next guy who needs to do this:
1. Extract the desired .p3d file from the arma weapons.pbo (or get the .p3d from attached sample mission), and put in your mission folder.
2. Create entry in your description.ext file that looks like this:
#define CT_OBJECT 80
class RscObject
{
type = CT_OBJECT;
scale = 1.0;
direction[] = {0, 0, 1};
up[] = {0, 1, 0};
};
class RscTitles {
titles[] = {M24};
class M24 {
idd=-1;
movingEnable = false;
duration=100;
name = "binocular";
objects[]= {binocular};
class binocular : RscObject {
model= "optika_sniperw.p3d";
idc= -1;
position[] = {0,0,0.063};
direction[] = {sin 0, sin 180 * cos 0, cos 180 * cos 0};
up[] = {0, cos 180, -sin 180};
};
};
};
3. You can now use the cutrsc with this command:
cutrsc ["M24","PLAIN"]
Note1: "M24" is what I chose to name the resource in the description.ext. You could name it anything.
Note2: I tried editing my description.ext entry to reference the optika_sniper3.p3d directly using the correct arma pbo directory prefixes, but arma would crash when trying to access the cutrsc object. Making a local copy of the .p3d file works though.
See attached sample mission.