Added Vexd Compatibility back in.

This commit is contained in:
David Anderson 2004-06-29 03:22:38 +00:00
parent de668db307
commit 67fbc56618
3 changed files with 12 additions and 0 deletions

View File

@ -45,6 +45,8 @@ void OnPluginsLoaded()
SpawnForward = MF_RegisterForward("pfn_spawn", ET_IGNORE, FP_CELL, FP_DONE);
DispatchUseForward = MF_RegisterForward("pfn_use", ET_STOP, FP_CELL, FP_CELL, FP_DONE);
pfnTouchForward = MF_RegisterForward("pfn_touch", ET_STOP, FP_CELL, FP_CELL, FP_DONE);
VexdTouchForward = MF_RegisterForward("vexd_pfntouch", ET_IGNORE, FP_CELL, FP_CELL, FP_DONE);
VexdServerForward = MF_RegisterForward("ServerFrame", ET_IGNORE, FP_DONE);
}
qboolean Voice_SetClientListening(int iReceiver, int iSender, qboolean bListen)

View File

@ -32,6 +32,8 @@ extern int ClientKillForward;
extern int CmdStartForward;
extern int StartFrameForward;
extern int DispatchUseForward;
extern int VexdTouchForward;
extern int VexdServerForward;
#define AMS_OFFSET 0.01

View File

@ -13,6 +13,8 @@ int PlayerPostThinkForward = 0;
int ClientKillForward = 0;
int CmdStartForward = 0;
int StartFrameForward = 0;
int VexdTouchForward = 0;
int VexdServerForward = 0;
std::vector<Impulse *> Impulses;
std::vector<EntClass *> Thinks;
std::vector<EntClass *> Uses;
@ -125,6 +127,8 @@ void StartFrame_Post()
if (StartFrameForward)
MF_ExecuteForward(StartFrameForward);
else if (VexdServerForward)
MF_ExecuteForward(VexdServerForward);
RETURN_META(MRES_IGNORED);
}
@ -269,6 +273,10 @@ void DispatchTouch(edict_t *pToucher, edict_t *pTouched)
retVal = MF_ExecuteForward(pfnTouchForward, ENTINDEX(pToucher), ENTINDEX(pTouched));
if (retVal)
RETURN_META(MRES_SUPERCEDE);
} else if (VexdTouchForward) {
retVal = MF_ExecuteForward(VexdTouchForward, ENTINDEX(pToucher), ENTINDEX(pTouched));
if (retVal)
RETURN_META(MRES_SUPERCEDE);
}
RETURN_META(MRES_IGNORED);