-
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
server: restructurized monster_generic source code
- Loading branch information
1 parent
b578f7c
commit 0e10667
Showing
2 changed files
with
48 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/*** | ||
* | ||
* Copyright (c) 1996-2002, Valve LLC. All rights reserved. | ||
* | ||
* This product contains software technology licensed from Id | ||
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. | ||
* All Rights Reserved. | ||
* | ||
* This source code contains proprietary and confidential information of | ||
* Valve LLC and its suppliers. Access to this code is restricted to | ||
* persons who have executed a written SDK license with Valve. Any access, | ||
* use or distribution of this code by or to any unlicensed person is illegal. | ||
* | ||
****/ | ||
//========================================================= | ||
// Generic Monster - purely for scripted sequence work. | ||
//========================================================= | ||
|
||
#pragma once | ||
|
||
#include "extdll.h" | ||
#include "util.h" | ||
#include "cbase.h" | ||
#include "monsters.h" | ||
#include "schedule.h" | ||
#include "talkmonster.h" | ||
|
||
// For holograms, make them not solid so the player can walk through them | ||
#define SF_GENERICMONSTER_NOTSOLID 4 | ||
#define SF_HEAD_CONTROLLER 8 | ||
|
||
//========================================================= | ||
// Monster's Anim Events Go Here | ||
//========================================================= | ||
|
||
class CGenericMonster : public CTalkMonster | ||
{ | ||
DECLARE_CLASS( CGenericMonster, CTalkMonster ); | ||
public: | ||
void Spawn( void ); | ||
void Precache( void ); | ||
void SetYawSpeed( void ); | ||
int Classify ( void ); | ||
void HandleAnimEvent( MonsterEvent_t *pEvent ); | ||
void KeyValue( KeyValueData *pkvd ); | ||
int ISoundMask ( void ); | ||
}; |