Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
CharacterCameraSet.c
Go to the documentation of this file.
1 class CharacterCameraSet : ScriptedCameraSet
2 {
3  static const int CHARACTERCAMERA_DEBUG = 0;
4  static const int CHARACTERCAMERA_1ST = 1;
5  static const int CHARACTERCAMERA_1ST_BONE_TRANSFORM = 2;
6  static const int CHARACTERCAMERA_1ST_VEHICLE = 3;
7  static const int CHARACTERCAMERA_1ST_VEHICLE_TRANSITION = 4;
8  static const int CHARACTERCAMERA_1ST_TURRET = 5;
9  static const int CHARACTERCAMERA_1ST_READY = 6;
10  static const int CHARACTERCAMERA_1ST_FLOAT = 7;
11 
12  static const int CHARACTERCAMERA_3RD_ERC = 10;
13  static const int CHARACTERCAMERA_3RD_ERC_SPR = 11;
14  static const int CHARACTERCAMERA_3RD_CRO = 12;
15  static const int CHARACTERCAMERA_3RD_PRO = 13;
16  static const int CHARACTERCAMERA_3RD_JUMP = 14;
17  static const int CHARACTERCAMERA_3RD_CLIMB = 15;
18  static const int CHARACTERCAMERA_3RD_VEHICLE = 16;
19  static const int CHARACTERCAMERA_3RD_TURRET = 17;
20  static const int CHARACTERCAMERA_3RD_SITTING = 18;
21  static const int CHARACTERCAMERA_3RD_FLOAT = 19;
22  static const int CHARACTERCAMERA_3RD_UNCONSCIOUS = 20;
23 
24  static const int CHARACTERCAMERA_ADS = 30;
25  static const int CHARACTERCAMERA_OPTICS = 31;
26  static const int CHARACTERCAMERA_BINOCULARS = 32;
27 
28  static const int CHARACTERCAMERA_ADS_VEHICLE = 33;
29 
30  static const int CHARACTERCAMERA_1ST_UNCONSCIOUS = 34;
31 
33  static const int DEBUGVIEW_NONE = 0;
34  static const int DEBUGVIEW_FACE = 1;
35  static const int DEBUGVIEW_WEAPON = 2;
36  static const int DEBUGVIEW_LEFT = 3;
37  static const int DEBUGVIEW_RIGHT = 4;
38  static const int DEBUGVIEW_FRONT = 5;
39  static const int DEBUGVIEW_REAR = 6;
40  static const int DEBUGVIEW_TOP = 7;
41  static const int DEBUGVIEW_BOTTOM = 8;
42 
43  // some times for camera changes
44  static const float TIME_CAMERACHANGE_01 = 0.1;
45  static const float TIME_CAMERACHANGE_02 = 0.2;
46  static const float TIME_CAMERACHANGE_03 = 0.3;
47 
48  //------------------------------------------------------------------------------------------------
50  override void Init()
51  {
52  //
53  // this registers camera ids for camera script class implementation
54  // which camera is used at the time is specified by CameraHandlerComponent.CameraSelector which returns id
55  //
56  RegisterCameraCreator(CHARACTERCAMERA_DEBUG, CharacterCameraDebug);
57 
58  //
59  // 1PV
60  //
61  RegisterCameraCreator(CHARACTERCAMERA_1ST, CharacterCamera1stPerson);
62  RegisterCameraCreator(CHARACTERCAMERA_1ST_BONE_TRANSFORM, CharacterCamera1stPersonBoneTransform);
63  RegisterCameraCreator(CHARACTERCAMERA_1ST_VEHICLE, CharacterCamera1stPersonVehicle);
64  RegisterCameraCreator(CHARACTERCAMERA_1ST_VEHICLE_TRANSITION, CharacterCamera1stPersonVehicleTransition);
65  RegisterCameraCreator(CHARACTERCAMERA_1ST_TURRET, CharacterCamera1stPersonTurret);
66  RegisterCameraCreator(CHARACTERCAMERA_1ST_READY, CharacterCamera1stPersonReady);
67  RegisterCameraCreator(CHARACTERCAMERA_1ST_FLOAT, CharacterCamera1stPersonFloat);
68  RegisterCameraCreator(CHARACTERCAMERA_1ST_UNCONSCIOUS, CharacterCamera1stPersonUnconscious);
69 
70  //
71  // 3PV
72  //
73  RegisterCameraCreator(CHARACTERCAMERA_3RD_ERC, CharacterCamera3rdPersonErc);
74  //RegisterCameraCreator(CHARACTERCAMERA_3RD_ERC_SPR, CharacterCamera3rdPersonErcSpr);
75  RegisterCameraCreator(CHARACTERCAMERA_3RD_CRO, CharacterCamera3rdPersonCrouch);
76  RegisterCameraCreator(CHARACTERCAMERA_3RD_PRO, CharacterCamera3rdPersonProne);
77  //RegisterCameraCreator(CHARACTERCAMERA_3RD_JUMP, CharacterCamera3rdPersonJump);
78  RegisterCameraCreator(CHARACTERCAMERA_3RD_CLIMB, CharacterCamera3rdPersonClimb);
79  RegisterCameraCreator(CHARACTERCAMERA_3RD_VEHICLE, CharacterCamera3rdPersonVehicle);
80  RegisterCameraCreator(CHARACTERCAMERA_3RD_TURRET, CharacterCamera3rdPersonTurret);
81  RegisterCameraCreator(CHARACTERCAMERA_3RD_SITTING, CharacterCamera3rdPersonSitting);
82  RegisterCameraCreator(CHARACTERCAMERA_3RD_FLOAT, CharacterCamera3rdPersonFloat);
83  RegisterCameraCreator(CHARACTERCAMERA_3RD_UNCONSCIOUS, CharacterCamera3rdPersonUnconscious);
84 
85  //
86  // ADS + FOCUS
87  //
88  RegisterCameraCreator(CHARACTERCAMERA_ADS, CharacterCameraADS);
89  //RegisterCameraCreator(CHARACTERCAMERA_OPTICS, CharacterCameraOptics);
90  RegisterCameraCreator(CHARACTERCAMERA_BINOCULARS, CharacterCameraBinoculars);
91  RegisterCameraCreator(CHARACTERCAMERA_ADS_VEHICLE, CharacterCameraADSVehicle);
92 
95  RegisterTransitionTime(CHARACTERCAMERA_3RD_ERC, CHARACTERCAMERA_3RD_CRO, 0.4, true);
96  RegisterTransitionTime(CHARACTERCAMERA_3RD_PRO, CHARACTERCAMERA_3RD_CRO, 0.6, true);
97  RegisterTransitionTime(CHARACTERCAMERA_1ST_VEHICLE, CHARACTERCAMERA_ADS_VEHICLE, 0.0, true);
98  RegisterTransitionTime(CHARACTERCAMERA_3RD_VEHICLE, CHARACTERCAMERA_ADS_VEHICLE, 0.0, true);
99  }
100 }
CharacterCameraDebug
Definition: CharacterCameraDebug.c:4
CharacterCamera1stPersonVehicle
Definition: CharacterCamera1stPersonVehicle.c:163
CharacterCameraADS
Definition: CharacterCameraADSVehicle.c:4
CharacterCameraSet
Definition: CharacterCameraSet.c:1
CharacterCamera3rdPersonErc
Definition: CharacterCamera3rdPersonClimb.c:4
CharacterCamera1stPerson
Definition: CharacterCamera1stPerson.c:106
CharacterCamera3rdPersonCrouch
Definition: CharacterCamera3rdPersonSitting.c:4
CharacterCamera1stPersonReady
Definition: CharacterCamera1stPersonFloat.c:4
CharacterCameraBinoculars
Definition: CharacterCameraBinoculars.c:1