Workshop.codes
Create

Yet another simple, somewhat modular, freecam/noclip mode. This is the one I usually use when I need to fly around/test stuff.

Features

  • A hero icon and nameplate for other players in freecam
  • A small HUD showing whether the freecam is on or off, and the current position and facing direction of the camera/player.
  • A quick shortcut to hero switch while in freecam
  • Paused match timer so the match never ends

source code?

How does it work?

When entering freecam, your hero gets teleported to (0, 500, 0), where they stay until you bring them back.
Deattaching the player position from the camera has the benefit of not dying when crossing death planes, but may make voice lines sound far away for other people.

When leaving freecam, your hero gets teleported back to the current position of the camera.

The camera position is controlled by a chased variable, which is evaluated with a bunch of <direction vector> * Is Button Held(...) summed together, plus the current value of the variable. This way additional inputs are added on top of the previous position, moving the camera.

The camera facing direction is simply the same as your character's facing direction.

Credits

Special thanks to Xerxes#21917 for the original version from 2019. The basics of what makes the freecam work is pretty much the same as his version.


Sources

This post utilizes other codes either in part or in full. This could be because they remixed them, used parts of them, were inspired by them, or other reasons.

Players | 1 - 12
Categories: Tools
Heroes: D.va, Doomfist, Junker Queen, Orisa, Ramattra, and 32 more...
Created at:
Last updated:
Current version: 1.0.1

Controls

Interact
Toggle freecam
Crouch + Jump
(In freecam, hold 1s) Change hero
Toggle freecam
+
(In freecam, hold 1s) Change hero
Toggle freecam
+
(In freecam, hold 1s) Change hero
Toggle freecam
+
(In freecam, hold 1s) Change hero
Toggle freecam
+
(In freecam, hold 1s) Change hero

Snippet

Loading...

Users Also Like

Similar Codes

Workshop.codes
Join the Workshop.codes Discord