Skip to content
Deyan Dobromirov edited this page Sep 4, 2022 · 10 revisions

Description

This wiki is designed to familiarize you with this addon elements and how to use them

Integrated options

I cannot use some of these options for specific various reasons that are given here below:

  1. env_laser Does damage and cannot start in anything solid. When starts inside solid will not do damage as requested. This leaves refraction out of the equation.
  2. env_beam Is limited between two entities point in space. Parenting does not work and needs a workaround that is not preferred with a wire-able entity. Reflection and refraction must create a new dedicated entity and this will hog memory and performance.
  3. env_portal_laser This is the most preferred functionality for the laser emitter and it is as close as possible but available only in Portal2. Currently do not know if it is limited to only laser_emitter_center.mdl and laser_emitter.mdl models. Damage boolean is not preferred and can be lethal that kills the player in one go or non-lethal which pushes them to the side.

Finding the dedicated entities

The dedicated entities are located in Entities tab then select Laser from the list on the left.

entities

Known behavior

I know this must enter the glass medium then travel across the air gap inside, but I cannot update the exit location accurately because the game does not fill up fraction left solid value of the trace for regular props, so currently this is the close it can get. From performance point of view this implementation is chosen as it requires only one trace to update entity exit or internal reflection point using entity's bounding radius as offset. tube

How to install

Just clone this repository in your addons folder or subscribe to it in the workshop here.

Clone this wiki locally