OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: johnnyboy on 06 Jun 2007, 07:30:22
-
Does anyone know of a CUTRSC sniper scope object I can use in ARMA?
EDIT: This is now solved. See reply #9 below for solution!!!
I searched the forums, and see discussion in OFP regarding a dragunov scope...but didn't see a link to download that object.
And I would prefer a scope for one of of the US weapons in ARMA if possible.
Thx for any help.
-
Since we now have iron sights, this may not exist anymore, but I am uncertain. The Effects button for Triggers used to reveal all available cutRsc. Is this gone in ArmA?
-
Thanks Peanut. Never new about that trigger feature. There are cutrscs listed there, almost all of them are textual. The only one that looks useful to me is good old "binocular".
So alas, no sniper scope. I'm not ambitious enough to make my own cutrsc right now, so will probably approach my scene a different way.
-
The sniper scopes do not use the weapon model (no 3D scopes, just the regular rsc), this is what is in the M24 config:
modelOptics = "\ca\weapons\optika_sniperw";
-
i one did someting... dont remember how exactly... but it used da player havin a sniper scope... and make him look thro it during da intro... i dont remember how but it worked in OFP :whistle:
LCD OUT
-
helpful... :dry:
you might try the command switchcamera (http://www.ofpec.com/COMREF/index.php?action=list&game=All&letter=s#switchCamera) - not sure how it's applied in arma though.
-
yup dats da 1 :D :clap:
LCD OUT
-
Thanks everybody. For a cutscene, I need the scope to be aimed at a very precise spot to make the scene work.
I'm aware of the switchcamera. I may try placing a small object underground (behind the actual camera target for the cutscene), and have sniper dotarget that object, and use switchcamera. By adjusting location of buried object, I may get sniper to point at exactly the right spot.
@h:
modelOptics = "\ca\weapons\optika_sniperw";
Are you saying I can reference this as a cutrsc object? I'll try it out!
-
It should be possible, I have not used cutrsc stuff in years so I can't remember whether it worked in OFP (which in turn would mean it probably would also work in ArmA).
It might also be that you need to extract that texture from the ca.pbo and place it into your mission folder :dunno:
-
@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.
-
Ack, that sucks to have to make a copy of the p3d to do something like this. Why did you have to use references to binoculars in the description.ext?
-
Why did you have to use references to binoculars in the description.ext?
I was just copying verbatim from the OFP thread. Maybe its not needed. Or maybe binoculars is the higher level class they use for all scope-like optics...
-
Actually I just registered to say thank you! :D
I was searching this one by days now and finally found it!
So -> Thanks!!
I had also tried it with the code from BIS, wich comes from the intro of the Resistance-Intro. But it never worked (with path indicating to the weapons.pbo etc.).
But I think I would never have the idea to copy the p3d to my missions folder :) This really is the point...
Greetings!
-
@Undeceived: Welcome aboard! And glad this helped you out.
You came to the right place. This site has helped me countless times.