Nuclide
Software Development Kit for id Technology
sky_camera Class Reference

About this class

Client-Entity: Skybox Camera Controller.

QUAKED sky_camera (1 0.3 1) (-8 -8 -8) (8 8 8)

OVERVIEW

Defines the position of a skyroom camera.

KEYS

  • "scale" : Scale modifier. Default is "16".

NOTES

You want to put this into a dedicated room that contains a 3D skybox. The scale modifier is more like a divider. You want to keep these divisable by 2 to avoid any precision funkyness.

TRIVIA

This entity was introduced in Half-Life 2 (2004).

Inheritance diagram for sky_camera:
NSEntity

Public Member Functions

void sky_camera (void)
 
virtual void SpawnKey (string, string)
 This method handles entity key/value pairs on map load. More...
 
virtual bool CanSpawn (bool)
 Returns if this entity can spawned from the map file. More...
 

Constructor & Destructor Documentation

◆ sky_camera()

void sky_camera::sky_camera ( void  )

Member Function Documentation

◆ CanSpawn()

bool sky_camera::CanSpawn ( bool  clientSide)
virtual

Returns if this entity can spawned from the map file.

Parameters
clientSideIf it's being spawned on the client-side.

Reimplemented from NSEntity.

◆ SpawnKey()

void sky_camera::SpawnKey ( string  strKey,
string  strValue 
)
virtual

This method handles entity key/value pairs on map load.

You can easily convert the strValue parameter using the ReadFloat etc. methods that are part of NSIO.

Reimplemented from NSEntity.


The documentation for this class was generated from the following file: