Mapping

Weapon System

The weapon system allows mappers to give and remove a players weapons via entity logic.

Weapon Spawner Entity #

The momentum_weapon_spawner entity can be used to give the player a weapon. The entity currently takes a weapon entity name in the WeaponName key. The following weapon names can be used:

"weapon_momentum_pistol"
"weapon_momentum_shotgun"
"weapon_momentum_machinegun"
"weapon_momentum_sniper"
"weapon_momentum_grenade"
"weapon_momentum_concgrenade"
"weapon_knife"
"weapon_momentum_rocketlauncher"
"weapon_momentum_stickylauncher"
"weapon_momentum_df_plasmagun"
"weapon_momentum_df_rocketlauncher"
"weapon_momentum_df_bfg"
"weapon_momentum_df_grenadelauncher"

The entity also has a ResetTime key, which is the amount of time in seconds before a weapon can be picked up again. If this value is negative, then the spawner will only give a weapon once. Once we implement a save state system on map reset, this entity should reset along with that, but right now the only way to reset the spawner when it’s in this state is to reload the map.

...

World Portals

Portal Guide Header

This page covers Momentum Mod’s implementation of world portals, how they work, how to add them into a map, as well as the limitations associated with the technology.

Prerequisites #

In order to easily follow along with this guide it is recommended to have the following:

  • A basic knowledge of the Hammer editor and how to create functional, playable maps using it
  • A version of Momentum Mod from version 0.8.8 or onwards
  • The momentum.fgd file in your Hammer configuration

Introduction #

What Are Portals? #

World portals are placeable entities that emulate a connection between two points, such as the example pictured below. Portals can have many uses for mappers attempting to push their creativity or for those stuck in Hammer-related corners.

...