Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_PIPCamera.c
Go to the documentation of this file.
1
[
EntityEditorProps
()]
2
class
SCR_PIPCameraClass
:
CameraBaseClass
3
{
4
}
5
6
class
SCR_PIPCamera
: CameraBase
7
{
8
9
//------------------------------------------------------------------------------------------------
10
// constructor
13
void
SCR_PIPCamera
(
IEntitySource
src,
IEntity
parent)
14
{
18
ClearEventMask(
EntityEvent
.INIT);
19
}
20
21
//------------------------------------------------------------------------------------------------
22
override
void
EOnActivate
(
IEntity
owner)
23
{
24
super.EOnActivate(owner);
25
26
// CameraBase is activate by default, we don't want that here because UpdatePIPCamera is called from sight POSTFRAME event
27
Deactivate
();
28
}
29
30
//------------------------------------------------------------------------------------------------
34
void
ApplyProps
(
int
index
)
35
{
36
BaseWorld
world = GetWorld();
37
world.SetCameraVerticalFOV(
index
,
GetVerticalFOV
());
38
world.SetCameraFarPlane(
index
,
GetFarPlane
());
39
world.SetCameraNearPlane(
index
,
GetNearPlane
());
40
world.SetCameraType(
index
,
CameraType
.PERSPECTIVE);
41
UpdatePIPCamera
(0.0);
42
}
43
44
//------------------------------------------------------------------------------------------------
48
void
UpdatePIPCamera
(
float
timeSlice)
49
{
50
ApplyTransform
(timeSlice);
51
//vector camMat[4];
52
//GetWorldTransform(camMat);
53
//GetWorld().SetCameraEx(index, camMat);
54
}
55
}
Deactivate
void Deactivate()
Definition
SCR_BaseHintCondition.c:115
EntityEditorProps
enum SCR_ECompassType EntityEditorProps(category:"GameScripted/Gadgets", description:"Compass", color:"0 0 255 255")
Prefab data class for compass component.
Definition
SCR_CompassComponent.c:10
index
SCR_DestructionSynchronizationComponentClass ScriptComponentClass int index
Definition
SCR_DestructionSynchronizationComponent.c:17
UpdatePIPCamera
void UpdatePIPCamera(float timeSlice)
Definition
SCR_PIPCamera.c:48
ApplyProps
void ApplyProps(int index)
Definition
SCR_PIPCamera.c:34
SCR_PIPCamera
SCR_PIPCameraClass CameraBaseClass SCR_PIPCamera(IEntitySource src, IEntity parent)
Definition
SCR_PIPCamera.c:13
BaseWorld
Definition
BaseWorld.c:13
CameraBaseClass
Definition
CameraBase.c:13
IEntity
Definition
IEntity.c:13
IEntitySource
Definition
IEntitySource.c:13
SCR_PIPCameraClass
Definition
SCR_PIPCamera.c:3
EOnActivate
override void EOnActivate(IEntity owner)
Definition
SCR_PIPCamera.c:22
ApplyTransform
CameraBaseClass GenericEntityClass ApplyTransform(float timeslice)
Manually applies transformation. This is usually done in EOnPostFrame automatically.
GetFarPlane
proto external float GetFarPlane()
GetVerticalFOV
proto external float GetVerticalFOV()
GetNearPlane
proto external float GetNearPlane()
EntityEvent
EntityEvent
Various entity events.
Definition
EntityEvent.c:14
CameraType
CameraType
Definition
CameraType.c:14
scripts
Game
Camera
Components
SCR_PIPCamera.c
Generated by
1.17.0