public unsafe void OnCreateMove(float flInputSampleTime, UserCmd *cmd, ref bool outBool) { if ((cmd->Buttons & PlayerControls.InJump) == PlayerControls.InJump) { cmd->Buttons |= PlayerControls.InAttack; //Set the IN_ATTACK flag. } }
public void OnCreateMove(float flInputSampleTime, UserCmd *cmd, ref bool outBool) { // Get local viewangles // angle to vector // traceray // if hit then shoot }
void OnProcessCommand(UserCmd *cmd) { Ioc.Get <Hack>().MsgLine("OnProcessCommand"); Ioc.Get <Hack>().MsgLine(Ioc.Get <EngineClient>().ViewAngles.ToString()); foreach (var hook in m_CreateMoveHooks) { hook.With(_ => { bool @out = false; if (_.Condition()) { _.OnCreateMove(0, cmd, ref @out); } }); } }