Home   Help Search Login Register  

Author Topic: Optics view in a cutscene  (Read 1836 times)

0 Members and 1 Guest are viewing this topic.

SimonRussi

  • Guest
Optics view in a cutscene
« on: 11 Sep 2002, 15:28:06 »
i'd like a cutscene in which i see throgh the optics of a sniper's rifle.

How?

thanks
Simon

Gameer_77

  • Guest
Re:Optics view in a cutscene
« Reply #1 on: 11 Sep 2002, 19:58:52 »
So, like that mission in res? Well this example is res only so:

make a Description.ext, and in it put this:

#define FontS "tahomaB24"
#define FontM "tahomaB36"
#define FontHTML "courierNewB64"
#define FontHTMLBold "courierNewB64"
#define FontMAP "courierNewB64"
#define FontMAIN "SteelfishB64"
#define FontMAINCZ "SteelfishB64CE"
#define FontTITLE "SteelfishB128"
#define FontTITLEHalf "SteelfishB64"
#define FontBOOK "garamond64"
#define FontNOTES "AudreysHandI48"


// Control types
#define CT_STATIC   0
#define CT_HTML      9

#define CT_OBJECT      80
//   #define CT_OBJECT_CONTAINER   82

//   #define CT_3DSTATIC      20
//   #define CT_3DHTML      23

// Static styles
#define ST_LEFT         0
#define ST_RIGHT      1
#define ST_CENTER      2
#define ST_UP         3
#define ST_DOWN         4
#define ST_VCENTER      5

#define ST_SINGLE      0
#define ST_MULTI      16
#define ST_PICTURE      48
#define ST_FRAME      64

#define ST_HUD_BACKGROUND   128
#define ST_TILE_PICTURE      144
#define ST_WITH_RECT      160
#define ST_LINE         176

#define ST_SHADOW      256
#define ST_NO_RECT      512

You don't need all of this but you may aswell just put it in.

Then put this below it:

class RscText
{
   type = CT_STATIC;
   idc = -1;
   style = ST_LEFT;
   h = 0.04;
   colorBackground[] = {0, 0, 0, 0};
   colorText[] = {1, 1, 1, 1};
   font = FontS;
   size = 1;
};

class RscBackground
{
   type = CT_STATIC;
   idc = -1;
   style = ST_LEFT;
   colorBackground[] = {0, 1, 0, 1};
   colorText[] = {1, 1, 1, 1};
   font = FontS;
   size = 0;
   text = "";
};

class RscObject
{
   type = CT_OBJECT;
   scale = 1.0;
   direction[] = {0, 0, 1};
   up[] = {0, 1, 0};
};


And this below that:


class RscTitles
{
   
   titles[] =
   {
      Dragunov,
      BISLeader
   };

   class Dragunov
   {
      idd=-1;      // ID ... always -1
      movingEnable = false;   // always false
      duration=100;      // time of the effect (in seconds)
      name = "binocular";

      // max. three arrays - controls, controlsBackground (optional), objects (optional)
      // for now - we will only use "controls"

      objects[]= {binocular};
      
      class binocular : RscObject
      {
         model= "\O\Guns\opt_snip_noflash.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};
      };
   };
};

Save then in the mission editor, save the mission, then put this in a trigger or something:

cutrsc ["Dragunov","plain down",1000]

Not tried and tested but it should work.

 8)PEACE

SimonRussi

  • Guest
Re:Optics view in a cutscene
« Reply #2 on: 12 Sep 2002, 08:52:52 »
well thanks but i don't have resistance...

 i don't know if it is possible with the v1.46 i have.
I saw the CutRSC command but i tried

cutRSC ["binocular", "PLAIN"]

but it doesn't work too. Why?
It's OK if i can have a binocular view instead of optics view...

thanks
Simon

Gameer_77

  • Guest
Re:Optics view in a cutscene
« Reply #3 on: 12 Sep 2002, 10:10:52 »
The binoculars resource is:

cutrsc ["binocular","PLAIN DOWN",0]

The only way i can think of for the sniper view, is for you to make your own resource.  :-\ Sorry.

 8)PEACE

SimonRussi

  • Guest
Re:Optics view in a cutscene
« Reply #4 on: 12 Sep 2002, 10:42:13 »
The binoculars resource is:

cutrsc ["binocular","PLAIN DOWN",0]

but where di you put it?
i tried before the camcommit and after it but nothing happened

Gameer_77

  • Guest
Re:Optics view in a cutscene
« Reply #5 on: 12 Sep 2002, 13:03:05 »
You don't need to camcommit it.  :)

If that still doesn't work then its probably the wrong code. Use the effects bit in a trigger instead. I can't remember the code for the binocs if thats not the right one.  :-\

 8)PEACE
« Last Edit: 12 Sep 2002, 13:05:19 by Gameer_77 »

lilmat

  • Guest
Re:Optics view in a cutscene
« Reply #6 on: 20 Sep 2002, 18:44:57 »


[attachment deleted by admin]