public GetForceCamera_Pre(pObserver) {
if(get_member(pObserver, m_afButtonPressed) == IN_JUMP) {
set_entvar(pObserver, var_iuser1, get_entvar(pObserver, var_iuser1) == OBS_IN_EYE ? OBS_ROAMING : OBS_IN_EYE)
return HC_SUPERCEDE
}
return HC_CONTINUE
}
public GetForceCamera_Pre(pObserver) {
if(get_member(pObserver, m_afButtonPressed) == IN_JUMP) {
switch(get_entvar(pObserver, var_iuser1))
{
case OBS_CHASE_FREE: set_entvar(pObserver, var_iuser1, OBS_ROAMING)
case OBS_ROAMING: set_entvar(pObserver, var_iuser1, OBS_IN_EYE)
case OBS_IN_EYE: set_entvar(pObserver, var_iuser1, OBS_CHASE_FREE)
default: set_entvar(pObserver, var_iuser1, OBS_IN_EYE)
}
SetHookChainReturn(ATYPE_INTEGER, 0)
return HC_SUPERCEDE
}
return HC_CONTINUE
}