Weapon flaregun

From Valve Developer Community
Jump to navigation Jump to search

Template:Wrongtitle

This entity is not in the FGD, and its code is not fully developed at all.

Introduction

The flare gun was cut from the final Half-Life 2 release, but the beginnings of its code can be seen in hl2_dll\weapon_flaregun.cpp, which also defines the entity env_flare. The weapon was originally, as its name suggests, intended as a handheld flare-firing device, which fired an env_flare from its barrel that set objects and NPCs on fire. Its code briefly defines basic Precache, PrimaryAttack, and SecondaryAttack methods.

The code and models for the flare gun were completed for use in the Source mod Missing Information. You can find the gun in the Borealis chapter.