Weapon and Ammo Systems

Ammo System

All Defrag weapons, the RJ Rocket Launcher, the Sticky Bomb Launcher, and Concs can be controlled with separate ammo types.
By default players have infinite ammo.
Additionally, an ammo limit can be set that doesn’t allow the player to have more than a certain amount.

By default, the player has a limit of 200 on the maximum amount of ammo they can carry of any type.
This can be changed with the SetAmmoLimit input, where a limit of -1 means no limit.
The ammo limit does not prevent the player from carrying infinite ammo, it only applies when the player’s ammo is finite.

Pickup Entities

In order to create an ammo pickup use momentum_pickup_ammo entity.
The key AmmoName controls the type of ammo. It takes a string which is one of the names in the table below.
The entity also takes a PickupAmmo key which controls how much ammo the player gets.

momentum_weapon_spawner entity can also give ammo on pickup, controlled by the PickupAmmo key.

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.