Ok, then
This commit is contained in:
parent
2573c9c4d2
commit
4d34270ee9
|
@ -10,10 +10,10 @@ void CPlayer::PreThink()
|
|||
bot=true;
|
||||
}
|
||||
if (olddeadflag && pev->deadflag == 0 && SpawnForward != -1)
|
||||
MF_ExecuteForward(SpawnForward,index);
|
||||
MF_ExecuteForward(SpawnForward,index());
|
||||
|
||||
if (oldteam != pev->team && TeamForward != -1)
|
||||
MF_ExecuteForward(TeamForward,index,pev->team,oldteam);
|
||||
MF_ExecuteForward(TeamForward,index(),pev->team,oldteam);
|
||||
|
||||
int tClass = GetClass();
|
||||
if (tClass != iclass)
|
||||
|
@ -43,7 +43,7 @@ void CPlayer::PostThink_Post()
|
|||
void CPlayer::ChangeClass(int newclass)
|
||||
{
|
||||
if (ChangeclassForward != -1)
|
||||
MF_ExecuteForward(ChangeclassForward, index, newclass, iclass, oldimpulse);
|
||||
MF_ExecuteForward(ChangeclassForward, index(), newclass, iclass, oldimpulse);
|
||||
iclass=newclass;
|
||||
}
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ public:
|
|||
int oldimpulse; // Store the previous impulse.
|
||||
int olddeadflag;
|
||||
int oldteam;
|
||||
int index;
|
||||
int index() { return ENTINDEX(pev->pContainingEntity); };
|
||||
|
||||
bool connected;
|
||||
REAL fov;
|
||||
|
|
|
@ -86,7 +86,7 @@ void ServerActivate(edict_t *pEdictList, int edictCount, int clientMax)
|
|||
player_edicts[i]=pEdictList + i;
|
||||
CPlayer *player = GET_PLAYER_I(i);
|
||||
player->edict=pEdictList + i;
|
||||
player->index=i;
|
||||
//player->index=i;
|
||||
player->pev=&player->edict->v;
|
||||
player->oldimpulse=0;
|
||||
player->Reset();
|
||||
|
|
Loading…
Reference in New Issue
Block a user