void CScientist::Killed(entvars_t *pAttacker, int iGib)
2
{
3
SetUse( NULL );
4
CTalkMonster::Killed( pAttacker, iGib );
5
6
7
int score = pev->frags += 1;
8
9
MESSAGE_BEGIN( MSG_ALL, gmsgScoreInfo );
10
WRITE_BYTE( pAttacker->edict() );
11
WRITE_SHORT( score );
12
WRITE_SHORT( 1 );
13
WRITE_SHORT( 0 );
14
WRITE_SHORT( 0 );
15
MESSAGE_END();
16
17
18
19
20
21
}
scientist.cpp
E:\Halflife\TESTEANDO MOD!!!\neew mod\HLSDK\Single-Player Source\dlls\scientist.cpp(889) : error C2039: 'edict' : is not a member of 'entvars_s'
..\engine\progdefs.h(59) : see declaration of 'entvars_s'
Error executing cl.exe.