Arma Reforger Explorer
1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_TerrainCollisionManualCameraComponent.c
Go to the documentation of this file.
1
4
[
BaseContainerProps
(), SCR_BaseManualCameraComponentTitle()]
5
class
SCR_TerrainCollisionManualCameraComponent
:
SCR_BaseManualCameraComponent
6
{
7
[
Attribute
(defvalue:
"0.2"
)]
8
private
float
m_fMinHeight;
9
10
//------------------------------------------------------------------------------------------------
11
override
void
EOnCameraFrame(
SCR_ManualCameraParam
param)
12
{
13
vector pos =
CoordFromCamera
(param.transform[3]);
14
pos[1] = Math.Max(pos[1], param.world.GetSurfaceY(pos[0], pos[2]) + m_fMinHeight);
15
param.transform[3] =
CoordToCamera
(pos);
16
}
17
18
//------------------------------------------------------------------------------------------------
19
override
bool
EOnCameraInit()
20
{
21
return
true
;
22
}
23
}
CoordFromCamera
protected vector CoordFromCamera(vector pos)
Definition:
SCR_BaseManualCameraComponent.c:80
SCR_BaseManualCameraComponent
Parent class from which all SCR_ManualCamera components inherit.
Definition:
SCR_BaseManualCameraComponent.c:5
CoordToCamera
protected vector CoordToCamera(vector pos)
Definition:
SCR_BaseManualCameraComponent.c:71
Attribute
typedef Attribute
Post-process effect of scripted camera.
SCR_ManualCameraParam
Parameter for carrying information between individual camera components.
Definition:
SCR_ManualCameraParam.c:5
SCR_TerrainCollisionManualCameraComponent
Camera collides with terrain.
Definition:
SCR_TerrainCollisionManualCameraComponent.c:5
BaseContainerProps
SCR_AIGoalReaction_Follow BaseContainerProps
Handles insects that are supposed to be spawned around selected prefabs defined in prefab names array...
Definition:
SCR_AIGoalReaction.c:468
scripts_Arma_Reforger_v1.1.0.42
scripts
Game
Camera
Components
SCR_TerrainCollisionManualCameraComponent.c
Generated by
1.8.17