UFO: Alien Invasion
Loading...
Searching...
No Matches
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"
Include dependency graph for g_morale.cpp:

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.
static void G_MoraleRage (Actor *actor)
static void G_MoraleStopRage (Actor *actor)
 Stops the rage state of an actor.
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.
void G_MoraleBehaviour (int team)
 Applies morale behaviour on actors.

Function Documentation

◆ G_IsMoraleEnabled()

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, sv_enablemorale, and TEAM_CIVILIAN.

Referenced by G_MoraleBehaviour().

◆ G_MoraleBehaviour()

◆ G_MoralePanic()

◆ G_MoraleRage()

◆ G_MoraleStopPanic()

void G_MoraleStopPanic ( Actor * actor)
static

◆ G_MoraleStopRage()

void G_MoraleStopRage ( Actor * actor)
static