This article relates to the game "Dota 2". Click here for more information.
This article relates to the SDK/Workshop Tools for "Dota 2 Workshop Tools". Click here for more information.
This article's documentation is for Source 2. Click here for more information.

Dota 2 Workshop Tools/Dota Camera: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Removed protection from "Dota 2 Workshop Tools/Dota Camera")
(Added top icons)
 
Line 1: Line 1:
{{Dota 2Tools topicons}}
== Endgame Camera ==
== Endgame Camera ==
At the end of the game, all player views can be interpolated to a shared ending camera (In Dota, this is to show the Ancient destruction.)
At the end of the game, all player views can be interpolated to a shared ending camera (In Dota, this is to show the Ancient destruction.)

Latest revision as of 18:36, 15 May 2020

Endgame Camera

At the end of the game, all player views can be interpolated to a shared ending camera (In Dota, this is to show the Ancient destruction.)

To get this behavior, add an 'prop_dynamic' entity named '@end_camera' to your map. (The '@' prefix prevents it from being renamed if it's in a prefab.)

If your model has an attachment point called "camera_attach" the camera will follow it, otherwise it will follow the position and orientation of the camera entity.

To more easily position your camera, consider the Hammer menu commands View > Align Active Camera to Selection (moves the Hammer camera to the selection) and View > Align Selection to Active Camera (moves the selected object to the Hammer camera). Note that the exact field of view may be different in Hammer from game, and different between players running with different video settings.