UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
g_morale.cpp File Reference
#include "g_local.h"
#include "g_actor.h"
#include "g_ai.h"
#include "g_client.h"
#include "g_edicts.h"
#include "g_utils.h"

Go to the source code of this file.

Functions

static void G_MoralePanic (Actor *actor)
 
static void G_MoraleStopPanic (Actor *actor)
 Stops the panic state of an actor. More...
 
static void G_MoraleRage (Actor *actor)
 
static void G_MoraleStopRage (Actor *actor)
 Stops the rage state of an actor. More...
 
static bool G_IsMoraleEnabled (int team)
 Checks whether the morale handling is activated for this game. This is always the case in singleplayer matches, and might be disabled for multiplayer matches. More...
 
void G_MoraleBehaviour (int team)
 Applies morale behaviour on actors. More...
 

Function Documentation

static bool G_IsMoraleEnabled ( int  team)
static

Checks whether the morale handling is activated for this game. This is always the case in singleplayer matches, and might be disabled for multiplayer matches.

Returns
true if the morale is activated for this game.

Definition at line 136 of file g_morale.cpp.

References G_IsSinglePlayer, cvar_s::integer, sv_enablemorale, and TEAM_CIVILIAN.

Referenced by G_MoraleBehaviour().

static void G_MoraleStopPanic ( Actor actor)
static
static void G_MoraleStopRage ( Actor actor)
static