Talk:Authoring your first weapon entity: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "What are the single player includes for a HL2 single player mod.")
 
(response)
 
Line 1: Line 1:
What are the single player includes for a HL2 single player mod.
What are the single player includes for a HL2 single player mod. {{unsigned|Mλtt}}
 
:From [https://github.com/VSES/SourceEngine2007/blob/43a5c90a5ada1e69ca044595383be67f40b33c61/se2007/game/server/hl2/weapon_357.cpp weapon_357.cpp]
:<syntaxhighlight lang="cpp">
#include "cbase.h"
#include "NPCEvent.h"
#include "basehlcombatweapon.h"
#include "basecombatcharacter.h"
#include "AI_BaseNPC.h"
#include "player.h"
#include "gamerules.h"
#include "in_buttons.h"
#include "soundent.h"
#include "game.h"
#include "vstdlib/random.h"
#include "engine/IEngineSound.h"
#include "te_effect_dispatch.h"
#include "gamestats.h"
 
// memdbgon must be the last include file in a .cpp file!!!
#include "tier0/memdbgon.h"
</syntaxhighlight>[[User:Pinsplash|Pinsplash]] ''([[User talk:Pinsplash|talk]])'' 07:34, 16 September 2018 (UTC)

Latest revision as of 00:34, 16 September 2018

What are the single player includes for a HL2 single player mod. Unsigned comment added by Mλtt (talkcontribs) Always sign your posts with four tildes (~~~~)

From weapon_357.cpp
#include "cbase.h"
#include "NPCEvent.h"
#include "basehlcombatweapon.h"
#include "basecombatcharacter.h"
#include "AI_BaseNPC.h"
#include "player.h"
#include "gamerules.h"
#include "in_buttons.h"
#include "soundent.h"
#include "game.h"
#include "vstdlib/random.h"
#include "engine/IEngineSound.h"
#include "te_effect_dispatch.h"
#include "gamestats.h"

// memdbgon must be the last include file in a .cpp file!!!
#include "tier0/memdbgon.h"
Pinsplash (talk) 07:34, 16 September 2018 (UTC)