MonsterInit(): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{stub}} {{code|MonsterInit()}} is a C++ function available for the CBaseMonster (GoldSrc) class in all {{GoldSrc|4}} games. Category:GoldSrc Programming Category:C++ Category:Functions")
 
No edit summary
 
Line 1: Line 1:
{{stub}}
{{stub}}
{{code|MonsterInit()}} is a C++ [[function]] available for the [[CBaseMonster (GoldSrc)|CBaseMonster]] class in all {{GoldSrc|4}} games.
{{code|MonsterInit()}} is a C++ [[function]] available for the [[CBaseMonster (GoldSrc)|CBaseMonster]] class in all {{GoldSrc|4}} games.
Description from {{file|monsters|cpp}}:
{{quote|1=after a monster is spawned, it needs to  be dropped into the world, checked for mobility problems, and put on the proper path, if any. This function does all of those things after the monster spawns. Any initialization that should take place for all monsters goes here.}}
== External links ==
* [https://github.com/ValveSoftware/halflife/blob/b1b5cf5892918535619b2937bb927e46cb097ba1/dlls/monsters.cpp#L2008 Function definition]


[[Category:GoldSrc Programming]]
[[Category:GoldSrc Programming]]
[[Category:C++]]
[[Category:C++]]
[[Category:Functions]]
[[Category:Functions]]

Latest revision as of 11:39, 7 May 2025

Stub

This article or section is a stub. You can help by expanding it.

MonsterInit() is a C++ function available for the CBaseMonster class in all GoldSrc GoldSrc games.

Description from 🖿monsters.cpp:

after a monster is spawned, it needs to be dropped into the world, checked for mobility problems, and put on the proper path, if any. This function does all of those things after the monster spawns. Any initialization that should take place for all monsters goes here.

External links