Monster: Difference between revisions
Jump to navigation
Jump to search
Important:As a general rule of thumb, monsters are usually only available in single-player mode (deathmatch 0). This applies to any monster who runs MonsterInit() as part of its spawn function. Some notable exceptions:
Code:Monsters in GoldSrc use the
SirYodaJedi (talk | contribs) (Source has some residual references to NPCs as monsters) |
SirYodaJedi (talk | contribs) No edit summary |
||
(11 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{stub}} | {{stub}} | ||
All [[NPC]]s are referred to as "'''monsters'''" in {{Quake|3.1}}, {{quake2|3.1}}, and {{gldsrc|3.1}}. This includes both enemy and allied NPCs. Multiplayer [[bots]] are not considered monsters, as they are [[player]]s. | All [[NPC]]s are referred to as "'''monsters'''" in {{Quake|3.1}}, {{quake2|3.1}}, and {{gldsrc|3.1}}. This includes both enemy and allied NPCs. Multiplayer [[bots]] are not considered monsters, as they are [[player]]s. | ||
{{important|As a general rule of thumb, monsters are usually only available in single-player mode ({{cmd|deathmatch|0}}). This applies to any monster who runs {{codelink|MonsterInit()}} as part of its spawn function. Some notable exceptions: | |||
* {{goldsrc}}(most games) {{ent|monster_hevsuit_dead}} | |||
* {{hl1}}{{hlop4}} {{ent|monster_snark}}, {{ent|monster_tripmine}}, {{ent|hornet}} | |||
* {{cs}}{{cscz}} {{ent|monster_scientist}}, {{ent|hostage_entity|engine=goldsrc}} | |||
}} | |||
{{src|3.1}} changes most "monster" terminology to " | {{src|3.1}} changes most "monster" terminology to "NPC", but some remnants exist, such as the [[contents flag]] for NPCs ({{cmd|CONTENTS_MONSTER}}), and the leftover {{ent|monster_generic}} entity. {{hls|2}} also retains the {{code|monster_}} entity classname prefix for backwards compatibility, but uses HL2's "NPC" terminology internally. | ||
{{codenote|Monsters in GoldSrc use the <code>[[CBaseMonster (GoldSrc)|CBaseMonster]]</code> C++ class, found in {{file|basemonster|h}}.}} | |||
[[Category:Glossary]] | [[Category:Glossary]] | ||
[[Category:GoldSrc Glossary]] |
Latest revision as of 11:13, 7 May 2025
All NPCs are referred to as "monsters" in Quake, Quake II, and GoldSrc. This includes both enemy and allied NPCs. Multiplayer bots are not considered monsters, as they are players.

Source changes most "monster" terminology to "NPC", but some remnants exist, such as the contents flag for NPCs (CONTENTS_MONSTER), and the leftover monster_generic entity. Half-Life: Source also retains the monster_ entity classname prefix for backwards compatibility, but uses HL2's "NPC" terminology internally.

CBaseMonster
C++ class, found in 
basemonster.h
.