Das hab ich auskommentiert:
npc_zombie.cpp:
//virtual const char *GetHeadcrabClassname( void );
//virtual const char *GetHeadcrabModel( void );
//-----------------------------------------------------------------------------
// Purpose: Returns the classname (ie "npc_headcrab") to spawn when our headcrab bails.
//-----------------------------------------------------------------------------
//const char *CZombie::GetHeadcrabClassname( void )
//{
// return "npc_headcrab";
//}
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
//const char *CZombie::GetHeadcrabModel( void )
//{
// return "models/headcrabclassic.mdl";
//}
Etwas weiter unten weiss ich dann mit
SetBodygroup( ZOMBIE_BODYGROUP_HEADCRAB, !m_fIsHeadless );
nix anzufangen.
Ich denk das verbindet den Headcrab mit dem Zombie, oder? *mal auskommentier*
Beim Kompilieren kommt allerdings jetzt nen Fehler:
'CZombie': Instanz von abstrakter Klasse kann nicht erstellt werden
Datei: dlls\util.h
da markiert er die Zeile:
newEnt = new T; // this is the only place 'new' should be used!
in
// entity creation
// creates an entity that has not been linked to a classname
template< class T >
T *_CreateEntityTemplate( T *newEnt, const char *className )
{
newEnt = new T; // this is the only place 'new' should be used!
newEnt->PostConstructor( className );
return newEnt;
weiss jmd wo's prob is?
bzw kennt jmd ne Seite wo das ein oder andere erklärt wird?
thx
Edit:
http://developer.valvesoftware.com/wiki/SDK_Docs
aha
Edit: okay habs, musste
SetBodygroup( ZOMBIE_BODYGROUP_HEADCRAB, !m_fIsHeadless );
und den spawn wegmachen