okay removed old forward stuff why was this defaulted?!

This commit is contained in:
David Anderson
2005-08-01 03:05:53 +00:00
parent 7605abc929
commit 4fe39dd5cc
10 changed files with 17 additions and 141 deletions

View File

@ -47,20 +47,10 @@ int mPlayerIndex;
int AlliesScore;
int AxisScore;
#ifdef FORWARD_OLD_SYSTEM
Forward g_death_info;
Forward g_damage_info;
Forward g_score_info;
#else
int iFDamage;
int iFDeath;
int iFScore;
#endif
int gmsgCurWeapon;
int gmsgHealth;
int gmsgResetHUD;
@ -173,11 +163,7 @@ void PlayerPreThink_Post( edict_t *pEntity ) {
if (pPlayer->sendScore && pPlayer->sendScore < gpGlobals->time){
pPlayer->sendScore = 0.0f;
#ifdef FORWARD_OLD_SYSTEM
g_score_info.exec( pPlayer->index, pPlayer->lastScore, pPlayer->savedScore );
#else
MF_ExecuteForward( iFScore,pPlayer->index, pPlayer->lastScore, pPlayer->savedScore );
#endif
}
RETURN_META(MRES_IGNORED);
@ -197,14 +183,6 @@ void ServerDeactivate() {
g_rank.saveRank( MF_BuildPathname("%s",get_localinfo("dodstats") ) );
#ifdef FORWARD_OLD_SYSTEM
g_damage_info.clear();
g_death_info.clear();
g_score_info.clear();
#endif
// clear custom weapons info
for ( i=DODMAX_WEAPONS-DODMAX_CUSTOMWPNS;i<DODMAX_WEAPONS;i++)
weaponData[i].needcheck = false;
@ -412,12 +390,9 @@ void OnAmxxDetach() {
g_rank.unloadCalc();
}
#ifndef FORWARD_OLD_SYSTEM
void OnPluginsLoaded(){
iFDeath = MF_RegisterForward("client_death",ET_IGNORE,FP_CELL,FP_CELL,FP_CELL,FP_CELL,FP_CELL,FP_DONE);
iFDamage = MF_RegisterForward("client_damage",ET_IGNORE,FP_CELL,FP_CELL,FP_CELL,FP_CELL,FP_CELL,FP_CELL,FP_DONE);
iFScore = MF_RegisterForward("client_score",ET_IGNORE,FP_CELL,FP_CELL,FP_CELL,FP_DONE);
}
#endif