public static bool M_walkmove(edict_t ent, float yaw, float dist) { float[] move = new float[] { 0, 0, 0 }; if ((ent.groundentity == null) && (ent.flags & (Defines.FL_FLY | Defines.FL_SWIM)) == 0) { return(false); } yaw = (float)(yaw * Math.PI * 2 / 360); move[0] = (float)Math.Cos(yaw) * dist; move[1] = (float)Math.Sin(yaw) * dist; move[2] = 0; return(SV.SV_movestep(ent, move, true)); }